* git, hardlinks and backups
@ 2006-07-10 19:57 Pavel Machek
2006-07-10 20:05 ` Adrian Bunk
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Pavel Machek @ 2006-07-10 19:57 UTC (permalink / raw)
To: kernel list, pasky
Hi!
I know this may be stupid, but...
I'm backing up my linux kernel trees, and found out that backup (done
by rsync) is twice as big as original. That's quite bad... it is
because git uses hardlinks heavily but rsync can't preserve them.
I'm pretty sure someone hit this before... what is the trick?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: git, hardlinks and backups
2006-07-10 19:57 git, hardlinks and backups Pavel Machek
@ 2006-07-10 20:05 ` Adrian Bunk
[not found] ` <20060710200501.GB30678@ojjektum.uhulinux.hu>
2006-07-10 20:07 ` Rutger Nijlunsing
2 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2006-07-10 20:05 UTC (permalink / raw)
To: Pavel Machek; +Cc: kernel list, pasky
On Mon, Jul 10, 2006 at 09:57:27PM +0200, Pavel Machek wrote:
> Hi!
>
> I know this may be stupid, but...
>
> I'm backing up my linux kernel trees, and found out that backup (done
> by rsync) is twice as big as original. That's quite bad... it is
> because git uses hardlinks heavily but rsync can't preserve them.
>
> I'm pretty sure someone hit this before... what is the trick?
$ rsync --help | grep "preserve hard links"
-H, --hard-links preserve hard links
$
> Pavel
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <20060710200501.GB30678@ojjektum.uhulinux.hu>]
* Re: git, hardlinks and backups
2006-07-10 19:57 git, hardlinks and backups Pavel Machek
2006-07-10 20:05 ` Adrian Bunk
[not found] ` <20060710200501.GB30678@ojjektum.uhulinux.hu>
@ 2006-07-10 20:07 ` Rutger Nijlunsing
2 siblings, 0 replies; 4+ messages in thread
From: Rutger Nijlunsing @ 2006-07-10 20:07 UTC (permalink / raw)
To: Pavel Machek; +Cc: kernel list, pasky
On Mon, Jul 10, 2006 at 09:57:27PM +0200, Pavel Machek wrote:
> Hi!
>
> I know this may be stupid, but...
>
> I'm backing up my linux kernel trees, and found out that backup (done
> by rsync) is twice as big as original. That's quite bad... it is
> because git uses hardlinks heavily but rsync can't preserve them.
>
> I'm pretty sure someone hit this before... what is the trick?
> Pavel
Why can't rsync preserve them? Doesn't 'rsync --hard-links' work?
(however, it can only work if you rsync all paths at once so rsync
gets to see that the inodes match)
--
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-10 20:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-10 19:57 git, hardlinks and backups Pavel Machek
2006-07-10 20:05 ` Adrian Bunk
[not found] ` <20060710200501.GB30678@ojjektum.uhulinux.hu>
2006-07-10 20:07 ` Pavel Machek
2006-07-10 20:07 ` Rutger Nijlunsing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox