This commit is contained in:
Your Name 2022-12-26 10:59:45 -07:00
parent 3bc88b0aa2
commit c248bce558

View File

@ -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