Guest User

Untitled

a guest
Mar 13th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2. # Install:
  3. # remove file extension
  4. # move to /bin/ or /usr/bin/ directory
  5. # add `export BACKUP_LOCATION=[backup drive mount location]` to .bashrc
  6. # Usage:
  7. # `backup [folder]`
  8. # e.g. `backup Documents`
  9. # [folder] is a folder in your home directory. Use
  10. # links for folders ouside of home directory.
  11. rm -r -f $BACKUP_LOCATION/$1/
  12. cp -r ~/$1/ $BACKUP_LOCATION/$1
Add Comment
Please, Sign In to add comment