Restic : Ligne de commandes
Backing Up
restic --repo {{ URL RESTIC }}/my-backup backup ~/directory-to-backup --pack-size=60
restic -r rest:https://${USER_PROJECT}:${USER_MDP}@${SRV_RESTIC}:${PORT_EXPOSED} --insecure-tls backup ~/directory-to-backup --pack-size=60
Cleanup
With every backup, Restic is creating a new snapshot with contents of a directory at the moment. To remove old and unused snapshots we need to execute the forget command:
restic -r rest:https://${USER_PROJECT}:${USER_MDP}@${SRV_RESTIC}:${PORT_EXPOSED} -repo rclone:storj:bucket/my-backup-insecure-tls forget --keep-last 2 --prune
Check
If you want to verify the consistency of your backup, run the check command:
restic -r rest:https://${USER_PROJECT}:${USER_MDP}@${SRV_RESTIC}:${PORT_EXPOSED} -repo rclone:storj:bucket/my-backup-insecure-tls check
Restore
To restore the latest snapshot of your backup:
restic -r rest:https://${USER_PROJECT}:${USER_MDP}@${SRV_RESTIC}:${PORT_EXPOSED} -repo rclone:storj:bucket/my-backup-insecure-tls restore latest --target ~/restore