Restic is a fast and secure backup program. In the following sections, we will present typical workflows, starting with installing, preparing a new repository, and making the first backup.
To get started with a local repository, first define some environment variables:
Initialize the repository (first time only):
Create your first backup:
restic backup ~/work
You can list all the snapshots you created with:
You can restore a backup by noting the snapshot ID you want and running:
restic restore --target /tmp/restore-work your-snapshot-ID
It is a good idea to periodically check your repository’s metadata:
# or full data:
restic check --read-data
For more details continue reading the next sections.