summaryrefslogtreecommitdiff
path: root/bin/byo
diff options
context:
space:
mode:
Diffstat (limited to 'bin/byo')
-rwxr-xr-xbin/byo5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/byo b/bin/byo
index 71b7578..ecaba23 100755
--- a/bin/byo
+++ b/bin/byo
@@ -24,9 +24,10 @@ yoda_uuid='8c463221-6bb7-414e-9060-c9570bb3a6bb'
dest=/mnt/backup/$(hostname)
[ -b /dev/mapper/yoda ] && noclose=1 || cryptsetup open "$(blkid --uuid "$yoda_uuid")" yoda
findmnt /dev/mapper/yoda /mnt >/dev/null && noumount=1 || mount /dev/mapper/yoda /mnt
-time backup -v "$dest"
-backup-clean -v "$dest"
+time backup -v -d "$dest"
+backup -v -d "$dest" clean
[ ! "$optd" ] || time duperemove -drh --hashfile="$dest/.hashfile" "$dest"
+df -h / "$dest"
[ ! "$optk" ] || noumount=1 noclose=1
[ ! "$optc" ] || noumount='' noclose=''
[ "$noumount" ] || umount /mnt