12 lines
652 B
Bash
Executable File
12 lines
652 B
Bash
Executable File
#!/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"
|
|
|