Read and respond to this message at: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/3551901
By: keithmarshall

Huh?  tar doesn't compress files; it compounds them into an archive.  Yes, it
supports on-the-fly compression of that archive, but it relies on other tools,
(separate programs), to do the job.  OTOH, in the case of bsdtar, AKAIK, the
compression filters are built in, using functions from libarchive.

Notwithstanding that bsdtar may be a better choice, the OP's command line syntax
is wrong for either -- the mandatory archive name argument, (promised by the
'f' option), has been omitted!  It should be:

  > c:\gnuwin32\tar -czvf  archive-name.tar.gz  subdir-or-list-of-files ...

or:

  > c:\gnuwin32\bsdtar -czvf  archive-name.tar.gz  subdir-or-list-of-files ...

The .tar.gz extension isn't mandatory, but is recommended for gzipped archives,
(the 'z' option); use .tar.bz2 for bzipped archives, ('j' option), .tar.lzma
for lzma or .tar.xz for xz compressed archives, (don't know if GnuWin32 supports
those yet).

Also note some gotchas:

1) Never specify absolute path names, in subdir-or-list-of-files ...
2) If you want to back up all files in a directory, (as the OP's *.* indicates),
prefer to run tar in the parent directory, and specify the name of the subdir
to back up.
3) tar, (and bsdtar), will recurse into any subdirectories which match a 
wildcard
spec in the files list.
4) Never specify the archive-name to reside in the same directory as files 
specified
by wildcard, or in any subdirectory which may be recursed.
5) If backing up everything from the root of a drive, be sure to place the 
archive
on a different drive, (and be sure that it has sufficient free space).

_____________________________________________________________________________________
You are receiving this email because you elected to monitor this topic or 
entire forum.
To stop monitoring this topic visit: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/3551901/unmonitor
To stop monitoring this forum visit: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to