From 586ee6afa0c7a731829ea4bf58e9e3dcbcd4060a Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 20 Jan 2023 19:19:49 -0700 Subject: [PATCH] fix --- debian.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian.sh b/debian.sh index 5e54ef6..68ce113 100755 --- a/debian.sh +++ b/debian.sh @@ -66,7 +66,7 @@ auto_login(){ create-smb-snapshots(){ echo;echo "[Creating new snapshots.....]";echo - time tar cvpf $TARGET/$ROOT_NAME-$1.tgz --exclude=/volumes/* --exclude=/mnt/* --exclude=/var/tmp/* --exclude=/tmp/* --exclude=/raid/* --exclude=/root/* --exclude=/var/cache/apt/archives/* --exclude=/proc/* --exclude=/.snapshots/* --exclude=$TARGET/* --exclude=/var/lib/libvirt/* --exclude=/dev/* --exclude=/sys/* --exclude=/home/* --exclude=/var/lib/postgresql --exclude=/var/lib/containers / + time tar cvpzf $TARGET/$1.tgz --exclude=/volumes/* --exclude=/mnt/* --exclude=/var/tmp/* --exclude=/tmp/* --exclude=/raid/* --exclude=/root/* --exclude=/var/cache/apt/archives/* --exclude=/proc/* --exclude=/.snapshots/* --exclude=$TARGET/* --exclude=/var/lib/libvirt/* --exclude=/dev/* --exclude=/sys/* --exclude=/home/* --exclude=/var/lib/postgresql --exclude=/var/lib/containers / } homeBackup() { @@ -93,7 +93,7 @@ net-backup() { net-restore() { partitions 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/ + tar xfpv $2.tgz -C $TARGET/ if [ "$3" = "home" ]; then rsync -av --progress --delete home/ $TARGET/home/