Commits

Radu Potop committed 2b8ed7b

bak mount

Comments (0)

Files changed (1)

 # Full System Backup with rsync
 # https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync
 
-DEST=$1
+DEST=/media/backup
 LIST=/home/wooptoo/bin/bak_list
 
 if [ -z $DEST ]; then
 fi
 
 sudo sh -c "
+    mount $DEST
     rsync -av --delete-excluded --exclude-from=$LIST / $DEST
     date -R > $DEST/BACKUP
+    umount $DEST
 "