| 1 | #!/usr/bin/env sh |
| 2 | |
| 3 | sudo echo "sudo priveliges granted" |
| 4 | sudo tar cz -C /opt/backup . | age -p > backup_tasks_$(date -Is).tgz.age |
| 5 | |
| 6 | # Then use https://github.com/schollz/croc to send file to target machine. |
Last active 1 month ago
Create an encrypted archive of our backup script directory
| 1 | #!/usr/bin/env sh |
| 2 | |
| 3 | sudo echo "sudo priveliges granted" |
| 4 | sudo tar cz -C /opt/backup . | age -p > backup_tasks_$(date -Is).tgz.age |
| 5 | |
| 6 | # Then use https://github.com/schollz/croc to send file to target machine. |