Re: Full system backup with rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, 17 Oct 2016 19:29:13 +0100, niya levi via arch-general wrote:
>hi everyone
>
>i am trying to replace my laptop drive with another,
>
>to clone the laptop drive to a second drive i followed 'Full system
>backup with rsync' from the wiki
>
>1 create a partition table and filesystem on the second drive
>
>2 mount the drive to /mnt
>
>3 rsync -aAXv
>--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"}
>/ /mnt

I would simply sudo cp -r everything.

>before i swap the drive in the laptop with the second drive 
>
>do i chroot and run the following commands to configure the bootloader
>and do i need to do this from installation cd ?
>
># grub-install --target=i386-pc /dev/sdx
># grub-mkconfig -o /boot/grub/grub.cfg

you could simply

sudo systemd-nspawn -bqD /mnt/

from the existing install and run the commands required for your
bootloader of choice, assuming this grub auto thingy does generate UUID
based entries and your fstab (if you still should use fstab at all) does
contain those, too, since sdx would change from x=b to x=a, if you
remove the old drive.

Regards,
Ralf



-- 
Death of ROXTerm
https://sourceforge.net/p/roxterm/discussion/422638/thread/60da6975/



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux