Commit 0e751120 authored by Krisztián Kende's avatar Krisztián Kende

Include lib32 and libx32 dirs

parent 9d198918
......@@ -3,7 +3,7 @@
# System backup and restore script for Debian-based distributions
# Tested only on Ubuntu
#
# 2018, Krisztián Kende <krisztiankende@gmail.com>
# 2018-2019, Krisztián Kende <krisztiankende@gmail.com>
#
# This script can be used freely at your own risk.
# I will not take any responsibility!
......@@ -56,7 +56,7 @@ exclude="\
# End of configuration settings
################################################################################
vers=1.7 # 2018.11.24
vers=1.8 # 2019.04.06
################################################################################
......@@ -240,7 +240,7 @@ restore()
printf "\n\n"
smount $1
rsync -ah --progress --delete --include=/{bin,boot,cdrom,dev,etc,home,lib,lib64,media,mnt,opt,proc,run,sbin,snap,srv,sys,tmp,usr,var,initrd.img,initrd.img.old,vmlinuz,vmlinuz.old} --exclude=/{*,etc/mtab} --exclude=/{home,media,mnt,root,run,tmp,var/cache/fontconfig,var/lib/udisks2,var/run,var/tmp}/* --exclude={SB[0-9][0-9]_*,lost+found} "$rp"/ $sdir || error 12 $LINENO $rtype
rsync -ah --progress --delete --include=/{bin,boot,cdrom,dev,etc,home,lib,lib32,lib64,libx32,media,mnt,opt,proc,run,sbin,snap,srv,sys,tmp,usr,var,initrd.img,initrd.img.old,vmlinuz,vmlinuz.old} --exclude=/{*,etc/mtab} --exclude=/{home,media,mnt,root,run,tmp,var/cache/fontconfig,var/lib/udisks2,var/run,var/tmp}/* --exclude={SB[0-9][0-9]_*,lost+found} "$rp"/ $sdir || error 12 $LINENO $rtype
}
printf "\n ${bold1}Press ENTER to start the user's configuration files $rtype, or any other\n key to $([ "$sdir" ] && printf skip || printf exit).$norm1 "
......@@ -362,7 +362,7 @@ case $1 in
do ldest[$((cnt++))]="--link-dest=${l:15:-5}"
done
rsync -ah --progress --include=/{bin,boot,cdrom,dev,etc,home,lib,lib64,media,mnt,opt,proc,root,run,sbin,snap,srv,sys,tmp,usr,var,initrd.img,initrd.img.old,vmlinuz,vmlinuz.old} --exclude=/{*,etc/mtab,etc/*.dpkg-old} --exclude=/{home,media,mnt,root,run,tmp,var/cache/apt/archives/partial,var/cache/fontconfig,var/lib/udisks2,var/lib/ureadahead,var/run,var/tmp}/* --exclude=/var/cache/apt/{*.bin,*.bin.*,archives/*.deb} --exclude={SB[0-9][0-9]_*,lost+found,*~} "${ldest[@]}" $sdir/ $rp || error 10 $LINENO
rsync -ah --progress --include=/{bin,boot,cdrom,dev,etc,home,lib,lib32,lib64,libx32,media,mnt,opt,proc,root,run,sbin,snap,srv,sys,tmp,usr,var,initrd.img,initrd.img.old,vmlinuz,vmlinuz.old} --exclude=/{*,etc/mtab,etc/*.dpkg-old} --exclude=/{home,media,mnt,root,run,tmp,var/cache/apt/archives/partial,var/cache/fontconfig,var/lib/udisks2,var/lib/ureadahead,var/run,var/tmp}/* --exclude=/var/cache/apt/{*.bin,*.bin.*,archives/*.deb} --exclude={SB[0-9][0-9]_*,lost+found,*~} "${ldest[@]}" $sdir/ $rp || error 10 $LINENO
printf "max_size=$max_size\n\nexclude=\"\\\\\n$exclude\"\n" >$rp/.config
for r in SB[0-9][0-9]_*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment