Skip to content

Services broken after rsync backup

Not downloaded yet

I'm transferring my install to another hard disk and ran this rsync command:

rsync -aAXHh --info=progress2 --delete --exclude boot --exclude dev --exclude home --exclude proc --exclude sys --exclude tmp --exclude run --exclude mnt --exclude media --exclude lost+found /mnt/sdX/root/ /mnt/sdY/root

I have an LVM-on-LUKS setup with separate partitions for / and /home. /boot is not in the LVM and is a separate /dev/sda1 partition. After booting I can enter the password and decrypt the disk fine. However, once the services start loading, they all fail. Here is a screenshot.

I made sure my root volume is correct in the bootloader (systemd-boot) entry. I also ran mkinitcpio -p linux-ck after chrooting and there were some lib files missing so I reinstalled the kernel and there were no more errors. I also had to copy /usr/lib/systemd/boot/efi manually when I tried to run bootctl update from the chroot environment.

From what I've read most people don't seem to have issues after using rsync, but I was clearly missing some files. Can anyone help please?

0 points11 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Image
ID
54ll0r

Author

5
posts
23
comments
1
media
View profile

11 comments

Either take both machines offline, boot from a live-cd and rsync the offline system (make sure the target is cleaned before), or chroot in and take a look at the logs.

2 points

I synced first from my system and then resynced after booting from a livecd. Which logs in particular do I need to look at?

1 points

And now try what I said in the first post: Completely remove the second system, set it up again, rsync the original system from a live-cd and see if it boots.

If that doesn't work, post the output of journalctl -S $(date "+%Y-%m-%d")

1 points

Probably synlinks and alike are not correctly updated. Did you use a test folder without the delete option to ensure everything gets copied/moved correctly?

1 points

I did not use a test folder without the delete option. I just synced from my system and then resynced after booting from a livecd. How would I even be able to check if the symlinks etc were updated using a test folder?

1 points

Did you seriously copy an entire hard drive with a complex configuration without running a single test before?

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.