Command for copy cron.d to crontab

This commit is contained in:
Erik Westrup
2022-02-24 11:16:45 +01:00
parent 9797543231
commit 5ed72bb87f

View File

@@ -268,6 +268,9 @@ Any system that has a cron-like system can easily setup restic backups as well.
$ sudo make install-cron
```
* This assumes that your cron supports dropping files into `/etc/cron.d/`. If that is not the case, simply copy the relevant contents of the installed `/etc/cron.d/restic` in to your `/etc/crontab`.
```console
# grep "^@.*restic_" /etc/cron.d/restic >> /etc/crontab
```
1. Fill out [configuration values](#2-configure-b2-credentials-locally) in `/etc/restic`.
1. [Initialize](#3-initialize-remote-repo) the remote repo.
Source the profile to make all needed configuration available to `restic(1)`. All commands after this assumes the profile is sourced in the current shell.