To start our set up, we'll need to have all files in our home directory with wget.
After that, you'll need to create the /etc/restic directory:
$ mkdir /etc/resticThen, move .ignore and .restic_keys (with all your settings in place) to the newly generated directory:
$ mv .ignore .restic_keys -t /etc/resticAnd that's it! You may manually run the restic_backup.sh script for your first snapshot to see if everything is properly done.
$ sudo sh restic_backup.shExecute sudo crontab -e (NEEDS TO BE RUN AS ROOT!) and add a reference to the back up script:
Beware you may need to change the directory of the script depending on where you have it!
0 12 * * * /home/<username>/restic_backup.sh
Now your script will be executed each day exactly at 12:00.
(check https://crontab.guru/examples.html for a super convenient table)