help-make
[Top][All Lists]
Advanced

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

Re: using make for backups


From: Payal
Subject: Re: using make for backups
Date: Mon, 24 Aug 2009 05:41:40 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

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

Payal




reply via email to

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