| 1 | #!/usr/bin/env sh |
| 2 | |
| 3 | sudo echo "sudo priveliges granted" |
| 4 | sudo tar cz -C /opt/backup . | age -p > backup_tasks_$(date +%Y-%m-%d-%H%M%S).tgz.age |
| 5 | |
| 6 | # Then use https://github.com/schollz/croc to send file to target machine. |
mxsr / zip.sh backupscript
Last active 4 months ago
Create an encrypted archive of our backup script directory
Revision 9144679f687cc83d1b2ea35fb7a1c1d52abdd1a4