a guest Mar 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Install:
- # remove file extension
- # move to /bin/ or /usr/bin/ directory
- # add `export BACKUP_LOCATION=[backup drive mount location]` to .bashrc
- # Usage:
- # `backup [folder]`
- # e.g. `backup Documents`
- # [folder] is a folder in your home directory. Use
- # links for folders ouside of home directory.
- rm -r -f $BACKUP_LOCATION/$1/
- cp -r ~/$1/ $BACKUP_LOCATION/$1
RAW Paste Data