Menu

tar: invalid syntax or bug

Help
2009-05-14
2012-07-26
  • Nikolay Vertyanov

    Hi,
    win xp\w2k
    1)
    I try to use this line to specify tar-file:
    tar -cvf d:\temp\archive.tar d:\data

    error: cant open d:\temp\archive.tar

    2)
    I try to use this line to specify destination folder to untar:
    tar -xvf archive.tar -C d:\data_recoved

    doesnt work.

    this syntax according to doc - but doesnt work.

     
    • Ronald

      Ronald - 2009-07-13

      My guess is that d:\temp does not exist. The command runs fine for me.

       
    • GnuWin

      GnuWin - 2009-05-14

      Try to use bsdtar (from the Libarchive package), which is in most cases a better alternative to tar.

       
MongoDB Logo MongoDB