This commit is contained in:
Your Name 2023-01-20 19:03:30 -07:00
parent 87b787a1fa
commit be6d80969c

View File

@ -79,14 +79,13 @@ net-backup() {
echo;echo "[Mounting.....]";echo
mount $NET_BACKUP $TARGET
mkdir $TARGET/$1
if [ "$2" = "home" ]; then
homeBackup
fi
create-smb-snapshots "$1"
cp -f debian.sh $TARGET/$1/
cp -f debian.sh $TARGET/
ls $TARGET/
umount $TARGET
}
@ -94,10 +93,10 @@ 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 $ROOT_NAME-$2.tgz -C $TARGET/
if [ "$3" = "home" ]; then
rsync -av --progress --delete ../home/ $TARGET/home/
rsync -av --progress --delete home/ $TARGET/home/
fi
fstab