![]() #This rsyncs Restic backup to Google Cloud Storage I also run a second cron job to backup my repo directory to Google Cloud Storage: #!/bin/bash Restic check | tee -a /Users/matt/Documents/logs/restic.logĮcho "$(timestamp): restic.sh finished" | tee -a /Users/matt/Documents/logs/restic.log # Remove unneeded data from the repository ![]() Restic forget -keep-daily 7 -keep-weekly 4 -keep-monthly 12 -keep-yearly 7 | tee -a /Users/matt/Documents/logs/restic.log # If run cron more frequently, might add -keep-hourly 24 ![]() Restic backup /Users/matt/Documents -exclude /Users/matt/Documents/Exclude #This will run Restic backups and remove snapshots according to a policyĮxport RESTIC_REPOSITORY=/Users/matt/backup/restic/Įcho "-" | tee -a /Users/matt/Documents/logs/restic.logĮcho "$(timestamp): restic.sh started" | tee -a /Users/matt/Documents/logs/restic.log You’ll need to manually check the log or write another script to watch for restic check results. I run something like the following script via cron.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |