diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-09-25 15:57:37 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-09-25 15:57:37 +0200 |
| commit | 04746767a400dbdc03943b872f829732c4335e5f (patch) | |
| tree | 1abca1a064cd05e653dfa20ee0d1e8fc4d07f5d9 /bin/byo | |
| parent | 7bac050e12201c40194d9df7bf711159f4acfa89 (diff) | |
update
Diffstat (limited to 'bin/byo')
| -rwxr-xr-x | bin/byo | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -11,9 +11,9 @@ Options: -k do not umount and close yoda ' -while getopts :cdk opt; do +while getopts :Ccdk opt; do case $opt in - (c|d|k) eval "opt$opt=$opt" ;; + (C|c|d|k) eval "opt$opt=$opt" ;; (*) printf %s "$usage"; exit 1 ;; esac done @@ -25,9 +25,10 @@ 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 -d "$dest" -backup -v -d "$dest" clean +[ ! "$optC" ] || backup -v -d "$dest" clean [ ! "$optd" ] || time duperemove -drh --hashfile="$dest/.hashfile" "$dest" df -h / "$dest" +ls -v "$dest" [ ! "$optk" ] || noumount=1 noclose=1 [ ! "$optc" ] || noumount='' noclose='' [ "$noumount" ] || umount /mnt |
