-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2020-10-14 at 20:22 +0100, Dave Howorth wrote:
On Wed, 14 Oct 2020 17:48:24 +0200 "Carlos E. R." <> wrote:
On 14/10/2020 16.27, Dave Howorth wrote:
On Wed, 14 Oct 2020 11:50:43 +0200 "Carlos E. R." <> wrote:
On 14/10/2020 11.38, Dave Howorth wrote:
On Wed, 14 Oct 2020 10:48:20 +0200 (CEST) "Carlos E. R." <> wrote:
...
I also know that rsync can create hard-links on the fly in the destination even when there's no such concept on the source side. I know because that's how my incremental full backup works. But I don't remember the full set of flags at the mo. But if you can figure out the flags, that would presumably also correct your problem. I'll look it up if you get stuck.
Actually, the source tree was created that way, they are an incremental backup :-) That's why the number of hard links is significant, not copying them meant disk full on the destination.
(Ie, I'm copying an incremental backup set that was done with rsync initially)
Ah well, I'm glad you got it sorted and I'm glad it was you that found this little wrinkle rather than me :) I'll try to remember to copy the whole incremental backup in one shot if/when I need to.
Yep. I'm happy now :-D But I wasn't 5 minutes ago. I was doing the backup on this migrated backup disk, had been running for an hour, I saw hard disk free space disapearing, and I noticed that hardlinks were not being made (rsync - --link-dest=... stuff). cer@Erebor:~> l /data/Portatil_entero_?/minas-tirith/home/cer/w - -rw------- 2 cer users 24119460 May 7 2015 /data/Portatil_entero_6/minas-tirith/home/cer/w - -rw------- 2 cer users 24119460 May 7 2015 /data/Portatil_entero_7/minas-tirith/home/cer/w - -rw------- 1 cer users 24119460 May 7 2015 /data/Portatil_entero_8/minas-tirith/home/cer/w You see, #6 and #7 are the old backups (migrated to new hd), showing a hardlinked file. But on the new incremental backup, #8, the file was a new file. This was wrong. I was doing: # PREVIO=/data/Portatil_entero_7 # DESTINO=/data/Portatil_entero_8 # source: /mnt/minas-tirith # previous: /data/Portatil_entero_7/minas-tirith # destination: /data/Portatil_entero_8/minas-tirith time rsync $OPTIONS --link-dest=$PREVIO/minas-tirith \ --exclude=/mnt/minas-tirith/run/media/linux/Home/_var_spool_news \ --exclude=/_var_spool_news \ --exclude=_var_spool_news \ --exclude=/mnt/minas-tirith/run/media/linux/Home/_var_spool_news.cpy \ --exclude=/_var_spool_news.cpy \ --exclude=_var_spool_news.cpy \ /mnt/minas-tirith /$DESTINO I corrected to: # fuente: /mnt/minas-tirith # previo: /data/Portatil_entero_7/minas-tirith # destino: /data/Portatil_entero_8/minas-tirith time rsync $OPTIONS --link-dest=$PREVIO/minas-tirith \ --exclude=/mnt/minas-tirith/run/media/linux/Home/_var_spool_news \ --exclude=/_var_spool_news \ --exclude=_var_spool_news \ --exclude=/mnt/minas-tirith/run/media/linux/Home/_var_spool_news.cpy \ --exclude=/_var_spool_news.cpy \ --exclude=_var_spool_news.cpy \ /mnt/minas-tirith/ $DESTINO/minas-tirith changed..............^.........^^^^^^^^^^^^^ And: cer@Erebor:~> ls -l --inode /data/Portatil_entero_?/minas-tirith/captura-thomson 1959625 -rw------- 3 root root 54944 Jul 7 2013 /data/Portatil_entero_6/minas-tirith/captura-thomson 1959625 -rw------- 3 root root 54944 Jul 7 2013 /data/Portatil_entero_7/minas-tirith/captura-thomson 1959625 -rw------- 3 root root 54944 Jul 7 2013 /data/Portatil_entero_8/minas-tirith/captura-thomson cer@Erebor:~> cer@Erebor:~> l --inode /data/Portatil_entero_?/minas-tirith/home/cer/w 1778507 -rw------- 3 cer users 24119460 May 7 2015 /data/Portatil_entero_6/minas-tirith/home/cer/w 1778507 -rw------- 3 cer users 24119460 May 7 2015 /data/Portatil_entero_7/minas-tirith/home/cer/w 1778507 -rw------- 3 cer users 24119460 May 7 2015 /data/Portatil_entero_8/minas-tirith/home/cer/w cer@Erebor:~> 3 backup sets, 3 hard links. I'm happy :-D (wow, rsync syntax _is_ critical) (And I have just discovered an error in the --exclude section, but it is working anyway) - -- Cheers, Carlos E. R. (from openSUSE 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCX4ePzhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVjR8An26mzzczV07FgrXCJYA2 Sd59vW/vAJ9pauww95LIN4ZiVjNMygGAe8DjRw== =ayk4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org