a bitmoji of Dre Wilson.

Automatic Backups & Retention With Restic

In this video, I’ll show you how to create a backup service that will automatically run backups with Restic. Then I show you how to create a retention policy so that your backups stay lean. Then we look at creating a backup cleaning service that will free up space from older, deleted backup snapshots. Lastly, I show you how to start the automatic backup services when your PC starts.


00:00 Intro
00:21 Creating Backup Service Conf
03:09 Creating The Backup Service
05:53 Running The Backup Service Manually
07:27 Testing The Auto Backup
09:51 Setting Retention Policy
13:02 Creating The Cleaning Service
16:13 Running Backup Service At Startup


Formatting timer file OnCalendar 👉🏾 https://www.freedesktop.org/software/systemd/man/systemd.time.html#

Restic Download 👉🏾 https://github.com/restic/restic/releases
Restic Website 👉🏾 https://restic.net/
Restic Documentation 👉🏾 https://restic.readthedocs.io/en/stable/010_introduction.html
Restic on GitHub 👉🏾 https://github.com/restic/restic
Restic commands 👉🏾 https://www.mankier.com/package/restic

Supported Cloud Services:
Amazon S3 👉🏾 https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#amazon-s3
BackBlaze B2 👉🏾 https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#backblaze-b2
Google Cloud Storage 👉🏾 https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#google-cloud-storage
Microsoft Azure 👉🏾 https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#microsoft-azure-blob-storage
Wasabi 👉🏾 https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#wasabi
and many more.

Original article that inspired me to make this video 👉🏾 https://fedoramagazine.org/automate-backups-with-restic-and-systemd/