help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using make for backups


From: CHEN Cheng
Subject: Re: using make for backups
Date: Mon, 24 Aug 2009 22:20:28 +0800
User-agent: Mutt/1.5.17 (2007-11-01)

On Mon, Aug 24, 2009 at 05:41:40AM -0700, Payal wrote:
> On Mon, Aug 24, 2009 at 01:59:46PM +0200, Nicholas Mc Guire wrote:
> > On Mon, 24 Aug 2009, Payal wrote:
> > 
> > > Hi all
> > > Daily I take backup of a folder like this.
> > > tar -czf d-`date +%d%m%y`.tar.gz designs/
> > > The size comes ~ 2Gb of tar ball.
> > 
> > --update (-u) to tar would take care of that - it will only update changed
> > files - man tar for details.
> 
> Hmmm no. "-u" keeps "both" the copies. See below.
> $ touch test
> $ tar -cf d.tar test 
> $ echo hi > test 
> $ tar -uf d.tar test 
> $ tar -tvf d.tar 
> -rw-r--r-- payal/payal 0 2009-08-24 18:01 test
> -rw-r--r-- payal/payal 3 2009-08-24 18:02 test
> 

Hmm, interesting "-u" option.

Another way to do backup can be `git', which manages Linux kernel (300MB+),
although far less than 2Gb, but it's fast.

Best,
Cheng





reply via email to

[Prev in Thread] Current Thread [Next in Thread]