2 [ -f "$CONF" ] && eval "$(cat "$CONF")" ||
{ echo no
"$CONF"; exit 23; }
3 export PASSPHRASE
="$DUPLICITY_PASSPHRASE";
7 #BACKUP_TARGET="file:///tmp/bkp"
11 "$DUPLICITY" $DFLAGS "$DUPLICITY_SOURCE" "$DUPLICITY_TARGET";;
13 "$DUPLICITY" full
$DUPLICITY_FLAGS "$DUPLICITY_SOURCE" "$DUPLICITY_TARGET";;
15 "$DUPLICITY" verify
$DUPLICITY_FLAGS "$DUPLICITY_TARGET" "$DUPLICITY_SOURCE";;
17 "$DUPLICITY" list-current-files
"$DUPLICITY_TARGET";;
19 "$DUPLICITY" collection-status
"$DUPLICITY_TARGET";;
21 "$DUPLICITY" cleanup
--force "$DUPLICITY_TARGET";;
23 echo you can restore your files using this
command:
24 echo "PASSPHRASE='$PASSPHRASE' '$DUPLICITY' restore '$DUPLICITY_TARGET' /tmp/restored";;
29 ###################################################################
31 # $0 for backing-up using duplicity
32 # --> http://duplicity.nongnu.org/
34 # $0 - same as '$0 help'
35 # $0 backup - backup (full or incremental)
36 # $0 full - full backup
37 # $0 verify - compare local files with backup
38 # $0 list - list files on backup
39 # $0 status - print backup status
40 # $0 cleanup - remove extraneous files from backup
41 # $0 restore - print command to restore files
42 # $0 help - print this help
43 # $0 man - show duplicity manpage