backup in unix fs
IMPORTANT: Be sure to add your mounting path to
exclude-list
before going any further!
Usage :
sudo rsync -aAXv --exclude-from=exclude-list.txt / <distant-path>
Restore backup by inverting /
and <distant-path>
Tip: distant path can be accessed through ssh or it can also be a local path.
You’ll have to re-generate your Grub/EFISTUB according to your hardware.
Nowadays you’re more probably about to install it on a GPT SSD bootable in UEFI mode.
Be sure to format partitions accordingly
Be sure to have dosfstools
, grub
, efibootmgr
and something to fake root like arch-chroot
from arch-install-scripts
.
mkfs.fat -F32 /dev/..
/boot/{vm-linuz,initramfs*}
insideswapon /dev/xxx
(to have it found by genfstab)fstab
: genfstab -U /mnt/ >> /mnt/etc/fstab
(let’s assume root is mounted on /mnt
)If you want grub to be installed (recommended for dualboot) follow these steps:
pacstrap /mnt grub os-prober
(assuming root is mounted at /mnt
)mkfs.vfat -F32 /dev/xxx
diskpart
then assign letter=G:
. Exit diskpart and run bcdboot C:\Windows /s G: /f UEFI
)/
and install grub this way: grub-install --target=x86_64-efi --efi-directory=EFI_MOUNTED_DIR --bootloader-id=GRUB
os-prober
to detect other OS thus add it as a grub entrygrub-mkconfig -o /boot/grub/grub.cfg
Otherwise you can boot through UEFI directly by generating a new entry: efibootmgr --disk /dev/sdX --part Y --create --label "Arch Linux" --loader /vmlinuz-linux --unicode 'root=PARTUUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX rw initrd=\initramfs-linux.img' --verbose
PARTUUID
by looking into /dev/disk
: ls -l /dev/disk/by-partuuid/
Finally, do not forget to re-order your boot order wisely!