Backing Up With Restic
ℹ️
Use
--dry-run to see what files would be restored without actually restoring them.Backing Up With Restic
Create a restic repository.
restic init --repo /path/to/repoOR
restic -r init /path/to/repoThis command will ask for a password to encrypt the repository. You can copy and paste the password in the console. Save the password in a secure place, as you will need it to access the repository later. Losing password means losing access to the backups.
Backup files to the repository
restic backup /path/to/files --repo /path/to/repoOR
restic -r /path/to/repo backup /path/to/filesℹ️
The bigger the directory, the longer it will take to backup. Restic will only backup the files that have changed since the last backup, so subsequent backups will be faster.
Optional - add tags
You can add tags to the backup command to help identify the backup later. Tags are useful for organizing backups and making it easier to find specific backups.
restic -r /path/to/repo backup /path/to/files --tag tag1,tag2