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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to