Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #178850
| From | David Christensen <dpchrist@holgerdanske.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: MBR partitioning, and content after partition table but before first partition |
| Date | 2017-03-15 03:50 +0100 |
| Message-ID | <tl7aF-Zf-5@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <tjoz0-1oL-1@gated-at.bofh.it> <tjIo1-6Xt-5@gated-at.bofh.it> <tku9m-6JI-49@gated-at.bofh.it> <tkLtv-2yn-5@gated-at.bofh.it> <tkS1Y-7a1-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 03/14/2017 03:34 AM, David wrote: > On 14 March 2017 at 14:36, David Christensen <dpchrist@holgerdanske.com> wrote: >> >> Doing a quick test, it appears that rsync copies hard linked files as if >> each were a different file: >> >> rsync -a hard-link-1/ hard-link-2 > > Here, 'man rsync' says: > "Note that -a does not preserve hardlinks, because finding > multiply-linked files is expensive. You must separately specify -H." Thanks for the tip. :-) So, rsync can copy hard links: 2017-03-14 19:33:10 dpchrist@jesse ~/sandbox/rsync $ cat hard-link #!/bin/sh # Test 'rsync -a' and hard links # $Id: hard-link,v 1.3 2017/03/15 02:32:08 dpchrist Exp $ # by David Paul Christensen dpchrist@holgerdanske.com # Public Domain mkdir hard-link-1 mkdir hard-link-2 echo "hello, world!" > hard-link-1/hello.txt ln hard-link-1/hello.txt hard-link-1/link-1.txt ln hard-link-1/hello.txt hard-link-1/link-2.txt ln hard-link-1/hello.txt hard-link-1/link-3.txt ln hard-link-1/hello.txt hard-link-1/link-4.txt ls -li hard-link-1/* du -b hard-link-1/* rsync -a -H hard-link-1/ hard-link-2 ls -li hard-link-2/* du -b hard-link-2/* rm -rf hard-link-1 rm -rf hard-link-2 2017-03-14 19:33:13 dpchrist@jesse ~/sandbox/rsync $ sh hard-link 272911 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-1/hello.txt 272911 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-1/link-1.txt 272911 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-1/link-2.txt 272911 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-1/link-3.txt 272911 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-1/link-4.txt 14 hard-link-1/hello.txt 272912 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-2/hello.txt 272912 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-2/link-1.txt 272912 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-2/link-2.txt 272912 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-2/link-3.txt 272912 -rw-r--r-- 5 dpchrist dpchrist 14 Mar 14 19:33 hard-link-2/link-4.txt 14 hard-link-2/hello.txt On 03/14/2017 04:52 AM, The Wanderer wrote: > (You may want to check whether the resulting files are hardlinked back > to the ones in the original tree; I haven't tested, and from reading the > man page it doesn't seem entirely clear.) The test above indicates that hard links created by rsync with the -H option point to files within the destination tree. David
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Some help with dd backing up into an iso GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-03-07 01:20 +0100
Re: Some help with dd backing up into an iso Michael Lange <klappnase@freenet.de> - 2017-03-07 02:10 +0100
Re: Some help with dd backing up into an iso David Christensen <dpchrist@holgerdanske.com> - 2017-03-07 06:10 +0100
Re: Some help with dd backing up into an iso David Christensen <dpchrist@holgerdanske.com> - 2017-03-07 07:00 +0100
Re: Some help with dd backing up into an iso "Thomas Schmitt" <scdbackup@gmx.net> - 2017-03-07 09:00 +0100
Re: Some help with dd backing up into an iso GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-03-07 18:30 +0100
Re: Some help with dd backing up into an iso "Thomas Schmitt" <scdbackup@gmx.net> - 2017-03-07 20:20 +0100
Re: Some help with dd backing up into an iso GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-03-08 05:00 +0100
Re: Some help with dd backing up into an iso David Christensen <dpchrist@holgerdanske.com> - 2017-03-08 07:00 +0100
Re: Some help with dd backing up into an iso "Thomas Schmitt" <scdbackup@gmx.net> - 2017-03-08 12:10 +0100
MBR partitioning, and content after partition table but before first partition David Christensen <dpchrist@holgerdanske.com> - 2017-03-09 06:50 +0100
Re: MBR partitioning, and content after partition table but before first partition Felix Miata <mrmazda@earthlink.net> - 2017-03-09 08:00 +0100
Re: MBR partitioning, and content after partition table but before first partition David Christensen <dpchrist@holgerdanske.com> - 2017-03-10 06:10 +0100
Re: MBR partitioning, and content after partition table but before first partition Jonathan Dowland <jmtd@debian.org> - 2017-03-10 10:00 +0100
Re: MBR partitioning, and content after partition table but before first partition David Christensen <dpchrist@holgerdanske.com> - 2017-03-11 07:10 +0100
Re: MBR partitioning, and content after partition table but before first partition Jonathan Dowland <jmtd@debian.org> - 2017-03-13 10:10 +0100
Re: MBR partitioning, and content after partition table but before first partition David Christensen <dpchrist@holgerdanske.com> - 2017-03-14 04:40 +0100
Re: MBR partitioning, and content after partition table but before first partition David <bouncingcats@gmail.com> - 2017-03-14 11:40 +0100
Re: MBR partitioning, and content after partition table but before first partition David Christensen <dpchrist@holgerdanske.com> - 2017-03-15 03:50 +0100
Re: MBR partitioning, and content after partition table but before first partition The Wanderer <wanderer@fastmail.fm> - 2017-03-14 13:00 +0100
Re: MBR partitioning, and content after partition table but before first partition David Christensen <dpchrist@holgerdanske.com> - 2017-03-15 04:10 +0100
Re: MBR partitioning, and content after partition table but before first partition Andy Smith <andy@strugglers.net> - 2017-03-15 04:40 +0100
Re: MBR partitioning, and content after partition table but before first partition Jonathan Dowland <jmtd@debian.org> - 2017-03-15 13:00 +0100
Re: MBR partitioning, and content after partition table but before first partition "Thomas Schmitt" <scdbackup@gmx.net> - 2017-03-09 08:30 +0100
Re: MBR partitioning, and content after partition table but before first partition Jonathan Dowland <jmtd@debian.org> - 2017-03-09 15:40 +0100
Re: Some help with dd backing up into an iso Teemu Likonen <tlikonen@iki.fi> - 2017-03-07 09:30 +0100
Re: Some help with dd backing up into an iso <tomas@tuxteam.de> - 2017-03-07 09:40 +0100
Re: Some help with dd backing up into an iso Teemu Likonen <tlikonen@iki.fi> - 2017-03-07 10:00 +0100
Re: Some help with dd backing up into an iso <tomas@tuxteam.de> - 2017-03-07 10:10 +0100
Re: Some help with dd backing up into an iso David Wright <deblis@lionunicorn.co.uk> - 2017-03-07 16:20 +0100
Re: Some help with dd backing up into an iso Jonathan Dowland <jmtd@debian.org> - 2017-03-07 11:10 +0100
Re: Some help with dd backing up into an iso David Christensen <dpchrist@holgerdanske.com> - 2017-03-08 06:00 +0100
Re: Some help with dd backing up into an iso Mark Fletcher <mark27q1@gmail.com> - 2017-03-07 12:10 +0100
Re: Some help with dd backing up into an iso Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2017-03-07 14:50 +0100
Re: Some help with dd backing up into an iso Elimar Riesebieter <riesebie@lxtec.de> - 2017-03-07 15:20 +0100
Re: Some help with dd backing up into an iso David Wright <deblis@lionunicorn.co.uk> - 2017-03-07 16:20 +0100
Re: Some help with dd backing up into an iso "Thomas Schmitt" <scdbackup@gmx.net> - 2017-03-07 18:10 +0100
Re: Some help with dd backing up into an iso David Wright <deblis@lionunicorn.co.uk> - 2017-03-07 19:00 +0100
Re: Some help with dd backing up into an iso "Thomas Schmitt" <scdbackup@gmx.net> - 2017-03-07 20:30 +0100
Re: Some help with dd backing up into an iso David Wright <deblis@lionunicorn.co.uk> - 2017-03-07 21:30 +0100
Re: Some help with dd backing up into an iso "Thomas Schmitt" <scdbackup@gmx.net> - 2017-03-07 22:10 +0100
Re: Some help with dd backing up into an iso GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-03-08 18:30 +0100
Re: Some help with dd backing up into an iso David Wright <deblis@lionunicorn.co.uk> - 2017-03-08 19:20 +0100
csiph-web