diff --git a/restic-restore-wrapper b/restic-restore-wrapper new file mode 100755 index 0000000..634a57f --- /dev/null +++ b/restic-restore-wrapper @@ -0,0 +1,11 @@ +#!/bin/bash + +echo "This is ddp's quick and dirty restic restore wrapper - it is more just in case you need to restore and there is no wiki to refer to" + +echo "Usage of restic:" +echo " to find a file to restore:" +echo " sudo RESTIC_PASSWORD=backups-are-important restic -r /backup/restic-repo --tag home find '/home/ddp/*.csv' +echo " to restore a file:" +echo " sudo -u restic RESTIC_PASSWORD=backups-are-important ~restic/bin/restic -r /backup/restic-repo restore 47226c00 --tag home --verify -i '/home/ddp/adobe_students_by_email.csv' -t /tmp/ +echo " to note with the above, you dont need the --tag if you don't know where the file is" +