Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # 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
Add Comment
Please, Sign In to add comment