Simple Arch Linux backup & restore

By on 25 mars 2015, in ArchLinux, Boulot, Documentation, Informatique, Journal, Libre Software, System administration, Work

The backup/restore procedure involves only a few steps:

Full backup

rsync -av --delete \
    /etc /var /home /bin /boot /lib /lib64 /opt /root /sbin /run /tmp /usr \
    --exclude /run/media --exclude /var/lib/docker --exclude /var/lib/mongodb/journal \
    /run/media/…/save_path/

Booting from an USB key

Restoring and preparing the reboot

  • partition (cfdisk) / format (mkfs.ext4 -m 0 -r 0 / mkswap) / mount you storage drive once booted.
  • restore the backup with rsync again.
  • Check your new root/swap UUIDs with blkid and replace them in ${TARGET}/etc/fstab.
  • chroot into target and run grub-mkconfig -o /boot/grub/grub.cfg to update the GRUB configuration.

Reboot, and you’re done.

I still can’t handle how Arch is SIMPLE. Not easy. SIMPLE. Wow. Thanks.

1
  • zubi

    Bonjour, dès le lancement de la commande, je retrouve l’erreur citée en titre. Pouvez-vous m’aider sur le pourquoi du comment de cette erreur. D’avance je vous en remercie. L’erreur viendrait de symlink…

Trackbacks and Pingbacks

Reply