You are not logged in.
Pages: 1
I want to make a backup of my whole arch linux system and then restore It.
To make a backup I have used the rsync tool:
# rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/boot"} /* /mnt/HDD/backups/mnt/HDD/backups is ext4 as well as /
To restore backup I have loaded from arch linux installation environment (from USB stick) and done this:
# mount /dev/sdb2 HDD
# mount /dev/sda7 /mnt/
# mount /dev/sda6 /mnt/home
# rm -rf /mnt/*
# rsync -aAXv HDD/backups/* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*,"/boot"}
# arch-chroot /mnt
# mount /dev/sda2 /boot
# grub-mkconfig -o /boot/grub/grub.cfgI also commented all lines from fstab except of /boot, / and /home (anyway I use UUID)
After booting in restored system I can not mount any device:
# mount /dev/sdb1 /mnt/
fuse device not found try 'modprobe fuse' first"modprobe fuse" command has not helped.
Also I have lost all my network adapters:
# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs System Reserved 680C95E60C95B014
├─sda2 ext4 973a4738-ca8e-433a-bf0e-c8286f47a6e0 /boot
├─sda3
├─sda5 ntfs Win7 A0F49B38F49B1020
├─sda6 ext4 7d4c1e2e-d23f-47d4-95a6-323f6f3d9b5a /home
├─sda7 ext4 180b8a8f-8135-425f-ab40-c67fd7e464af /
└─sda8 ntfs SSD 76A786CE7AEB6961
sdb
├─sdb1 ntfs HDD 4C5BA4056FEC7E02
└─sdb2 ext4 ext4, backup 3e1a4925-1bb1-4847-91f0-ed70012fa6de
sdc
└─sdc1 vfat ARCH_201508 9C54-A7FF
sdd
├─sdd1 ntfs USBHDD 16EB69E67EB05A76
└─sdd2 vfat PartedMagic 67D8-70E2
sr0 dmesg
http://pastebin.com/wQwKLDCL
Last edited by RasAlhague (2015-08-20 04:26:33)
Offline
# rm -rf /mnt/*
# rsync -aAXv /mnt/HDD/backups/* /mnt/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*,"/boot"}You delete everything under /mnt and then you copy from /mnt/HDD/backups ? Additionally you mounted your partition to /mnt before the delete so all that was remaining was deleted too.
And that still was able to boot?
Last edited by dice (2015-08-19 21:33:39)
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
dice, sorry, Its just fail in my main post. I do not delete my backup before I copy it. Main post is fixed.
Offline
I have partially fixed my problem through installing new system and then copy backup data over new.
Offline
Pages: 1