Created
January 14, 2018 01:13
-
-
Save J3RN/a230c94febb5068ec82de911bb0ebeb4 to your computer and use it in GitHub Desktop.
A simple script I use to backup my flashdrive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./backup.sh <path to directory to archive> <GPG user> | |
tar -C $1 -c . | gpg --recipient $2 -e > $(date -Iminutes | tr -d ':').tar.gz.gpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment