I tried this command from the directory "/usr/data/usr/target":
I get a series of error messages of the form:
where <existing file name> represents an existing and valid file
The file /tmp/filename.tar is created but zero length.
Needless to say without the "-C <dir>" command tar creates the file as normal.
Can anyone identify what I'm doing wrongly here? TIA.
Code:
# tar -cf /tmp/filename.tar -C /usr/data *.dbf *.prg
I get a series of error messages of the form:
Code:
tar: <existing file name>: Cannot stat: No such file or directory
The file /tmp/filename.tar is created but zero length.
Needless to say without the "-C <dir>" command tar creates the file as normal.
Can anyone identify what I'm doing wrongly here? TIA.