Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- VOLUME=Tigh
- function die {
- echo "`basename -- "$0"`:" "$@" 1>&2
- exit 1
- }
- if [[ ! -d "/Volumes/$VOLUME" ]]; then
- die "volume \`$VOLUME' not mounted"
- fi
- if ! command -v "bup" &>/dev/null; then
- die "command \`bup' not found"
- fi
- export BUP_DIR="/Volumes/$VOLUME/.bup"
- bup index -u "$HOME"
- bup save -n "`id -un`" "$HOME"
Add Comment
Please, Sign In to add comment