還原備份
這裡會提供或簡述各種服務的資料還原方式。
資料庫
PostgreSQL
參見 PostgreSQL 服務模板頁面 的〈還原備份〉章節。
MySQL 和 MariaDB
參見 MySQL 服務模板頁面 和 MariaDB 服務模板頁面 的〈還原備份〉章節。
Redis
可以使用 Redis 的 RESTORE 指令 來還原備份。
展開 Redis 服務「Command to connect to your Redis」的字串,您會看到類似這種內容:
redis-cli -h <host> -p <port> -a <password>將上面的 <host>、<port> 和 <password> 放入以下的指令當中即可:
cat /path/to/backup.rdb | redis-cli -h <host> -p <port> -a <password> -x RESTORE <key> 0MongoDB
展開 MongoDB 服務「Command to connect to your MongoDB」的字串,您會看到類似這種內容:
mongosh "<連線字串>"將 <連線字串> 複製到終端機中,然後執行 mongorestore 命令來還原備份:
mongorestore "<連線字串>" "<備份目錄>"