2023/6/6
Assuming an offline backup
From https://wiki.archlinux.org/title/rsync
-a
= archive mode, -rlptgoD
(recursive, links, perms, times, group, owner, devices)
-A
= ACL attrs
-H
= hard links
-S
= sparse
When it is offline your /proc
and /media
are normally empty. I also backup the /tmp
because the disk space is almost free nowadays.
Some tricks:
--info=progress2
to show a rough progress.--delete
to delete bogus files at destination. Useful when restoring to an existing system but is potentially destructive.You can also edit the target system's /etc/fstab
to point to new ones.
tune2fs
)From https://www.tecmint.com/change-uuid-of-partition-in-linux/
tune2fs -U UUID_HERE /dev/sdbX
This operation requires a freshly checked filesystem. Please run
e2fsck -f
on the filesystem.
mtools
)https://superuser.com/a/1744103
mlabel -N abcd1234 -i /dev/sdbX ::NEWEFI
Assume systemd-boot+GPT+UEFI on a Debian-like system. Excerpted from https://support.system76.com/articles/bootloader/:
You can review/modify the current boot order with efibootmgr
.