diff --git a/debian.sh b/debian.sh index 3067117..e4a4dc6 100755 --- a/debian.sh +++ b/debian.sh @@ -70,7 +70,7 @@ create-smb-snapshots(){ homeBackup() { echo;echo "[Copying USER data....]";echo - rsync --progress -avz --delete /home/ --exclude=.cache --exclude=.local/share/containers $HOME_BACKUP + rsync --progress -avz --delete /home/ --exclude=.cache --exclude=.local/share/containers $HOME_BACKUP/ } net-backup() { @@ -95,8 +95,8 @@ net-restore() { rm -rf $TARGET/usr $TARGET/sbin $TARGET/lib32 $TARGET/libx32 $TARGET/lib $TARGET/vmlinuz* $TARGET/initrd* $TARGET/bin $TARGET/var $TARGET/root $TARGET/opt $TARGET/etc $TARGET/run tar xfpv ../$ROOT_NAME-$2.tgz -C $TARGET/ - if [ "$2" = "home" ]; then - rsync -av --progress --delete $HOME_BACKUP $TARGET/home/ + if [ "$3" = "home" ]; then + rsync -av --progress --delete $HOME_BACKUP/ $TARGET/home/ fi fstab @@ -425,7 +425,7 @@ elif [ "$1" = "grub-snapshots" ]; then elif [ "$1" = "btrfs-tweaks" ]; then btrfs-tweaks elif [ "$1" = "restore" ]; then - net-restore "$2" "$3" + net-restore "$2" "$3" "$4" elif [ "$1" = "remove-snapshot" ]; then remove-snapshots elif [ "$1" = "help" ]; then