diff --git a/README.md b/README.md index bc61514..125c03f 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Copy the `config_example` to `config`, verify permissions, and then edit using y sudo su cp config_example config chown root:root config -chmod 700 config +chmod 600 config nano config ``` Next, you'll need to run initial setup on the S3 repository: @@ -44,6 +44,20 @@ And finally, set your crontab file with `sudo crontab -e`: 0 * * * * /backups/backup.sh > /backups/logfile.log ``` +# Testing: +Make sure that everything works by running the backup script atleast once by hand: +```bash +sudo su +cd /backups/ +./backup.sh +``` +Once complete, check that a snapshot exists in the backup: +```bash +set -a +source config +restic -r "$S3_BUCKET" snapshots +``` +I also recommend doing a test restore as discussed in the next section. # Restoring: You'll need to grab your config variables before restoring: ```bash