quick wrapper/echo script that helps me remember how to do a restic restore
This commit is contained in:
11
restic-restore-wrapper
Executable file
11
restic-restore-wrapper
Executable file
@@ -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"
|
||||||
|
|
||||||
Reference in New Issue
Block a user