public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>, pasky@suse.cz
Subject: Re: git, hardlinks and backups
Date: Mon, 10 Jul 2006 22:05:44 +0200	[thread overview]
Message-ID: <20060710200543.GG13938@stusta.de> (raw)
In-Reply-To: <20060710195727.GA2246@elf.ucw.cz>

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


  reply	other threads:[~2006-07-10 20:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-10 19:57 git, hardlinks and backups Pavel Machek
2006-07-10 20:05 ` Adrian Bunk [this message]
     [not found] ` <20060710200501.GB30678@ojjektum.uhulinux.hu>
2006-07-10 20:07   ` Pavel Machek
2006-07-10 20:07 ` Rutger Nijlunsing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060710200543.GG13938@stusta.de \
    --to=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pasky@suse.cz \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox