rsync restore backup to new drive.
by toxine from LinuxQuestions.org on (#53B64)
Hello,
I have made a backup copy of my centos 7 using:
Code:rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/
all folders restores fine except when restoring etc folder I start having issues after reboot. I have edited /etc/fstab so the new disc can be mounted and everything is smooth. the only issue I'm currently having is that I cannot login using root password if I restore all content of /mnt/etc/ to /etc/
how could I fix this? any folders to avoid?
Please note I have done a fresh install then restoring files from rsync.
.


I have made a backup copy of my centos 7 using:
Code:rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/
all folders restores fine except when restoring etc folder I start having issues after reboot. I have edited /etc/fstab so the new disc can be mounted and everything is smooth. the only issue I'm currently having is that I cannot login using root password if I restore all content of /mnt/etc/ to /etc/
how could I fix this? any folders to avoid?
Please note I have done a fresh install then restoring files from rsync.
.