Re: [arch-general] Full system backup with rsync

2016-10-18 Thread niya levi via arch-general
ackup with rsync (Ralf Mardorf) > > > -- > > Message: 1 > > > -- > > Message: 2 > Date: Mon, 17 Oct 2016 21:11:23 +0200 > From: Ralf Mardorf <silver.bul...@zoho.com> > To: arch-general@archlinux.org > Subject: Re: [arch-genera

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
On Mon, 17 Oct 2016 21:51:20 +0200, Merlin Büge wrote: >Here is it: http://www.halfgaar.net/backing-up-unix https://www.lesbonscomptes.com/pages/extattrs.html

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
Ok, hard links aren't links anymore. [rocketmouse@archlinux ~]$ cd /tmp/ [rocketmouse@archlinux tmp]$ mkdir test [rocketmouse@archlinux tmp]$ echo hello > test/test.txt [rocketmouse@archlinux tmp]$ ln test/test.txt test/hardlink.txt [rocketmouse@archlinux tmp]$ ls -i test/ 2906732 hardlink.txt

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
On Mon, 17 Oct 2016 22:24:39 +0200, Ralf Mardorf wrote: >On Mon, 17 Oct 2016 21:42:03 +0200, Merlin Büge wrote: >>Also cp -pr does not preserve links or xattrs for example. Maybe cp >>-ar would be more appropriate. > >Ok, actually I regularly backup to a tar archive and at least links are

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
On Mon, 17 Oct 2016 21:42:03 +0200, Merlin Büge wrote: >Also cp -pr does not preserve links or xattrs for example. Maybe cp >-ar would be more appropriate. Ok, actually I regularly backup to a tar archive and at least links are preserved. I seemingly missed to use the --xattrs switch, fortunately

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Merlin Büge
Sorry for the spam. > If you are willing to spend some time reading, here is a good article which > mentions some pitfalls regarding backups. Here is it: http://www.halfgaar.net/backing-up-unix Should go to bed now... Regards, mearon Merlin Büge

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Merlin Büge
Typo fix: > -xattrs > -hard-links > -acls Should be of course: --xattrs --hard-links --acls Regards, mearon -- Merlin Büge

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Merlin Büge
On Mon, 17 Oct 2016 21:20:53 +0200 Ralf Mardorf <silver.bul...@zoho.com> wrote: > Begin forwarded message: > > Date: Mon, 17 Oct 2016 21:12:51 +0200 > From: Ralf Mardorf <ralf.mard...@rocketmail.com> > To: Arch general <arch-general@archlinux.org> > Subject: R

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
On Mon, 17 Oct 2016 21:11:23 +0200, Ralf Mardorf wrote: >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

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
Begin forwarded message: Date: Mon, 17 Oct 2016 21:12:51 +0200 From: Ralf Mardorf <ralf.mard...@rocketmail.com> To: Arch general <arch-general@archlinux.org> Subject: Re: [arch-general] Full system backup with rsync On Mon, 17 Oct 2016 21:11:23 +0200, Ralf Mardorf wrote: >I would

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
On Mon, 17 Oct 2016 21:11:23 +0200, Ralf Mardorf wrote: >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

Re: [arch-general] Full system backup with rsync

2016-10-17 Thread Ralf Mardorf
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

[arch-general] Full system backup with rsync

2016-10-17 Thread niya levi via arch-general
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