初始化与备份
初始化与备份
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic -r /backup/restic init
restic -r /backup/restic backup /data /etc --exclude=/var/cache
restic -r /backup/restic snapshots恢复与校验
恢复与校验
restic -r /backup/restic restore latest --target /restore --include /data/conf
restic -r /backup/restic check --read-data-subset=10%对象存储后端(S3 兼容)可直接作为仓库位置,异地副本无需额外同步工具。