Guest User

Untitled

a guest
May 20th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -e
  4.  
  5. VOLUME=Tigh
  6.  
  7. function die {
  8. echo "`basename -- "$0"`:" "$@" 1>&2
  9. exit 1
  10. }
  11.  
  12. if [[ ! -d "/Volumes/$VOLUME" ]]; then
  13. die "volume \`$VOLUME' not mounted"
  14. fi
  15.  
  16. if ! command -v "bup" &>/dev/null; then
  17. die "command \`bup' not found"
  18. fi
  19.  
  20. export BUP_DIR="/Volumes/$VOLUME/.bup"
  21. bup index -u "$HOME"
  22. bup save -n "`id -un`" "$HOME"
Add Comment
Please, Sign In to add comment