[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-tar] Correct use of --directory
From: |
Nick Lewis |
Subject: |
[Help-tar] Correct use of --directory |
Date: |
Wed, 13 May 2009 11:03:23 +0100 |
Could someone please explain to me the correct use of the --directory
tar parameter.
When I try to use it I get errors. These errors appear to relate to the
current directory instead of the directory specified by the --directory
parameter
Changing the current directory instead of using the --directory
parameter seems to work ok
Please find an example below:-
address@hidden factory]# ls
configurations factorydefault.tar.gz
address@hidden factory]# ls configurations
etc tmp usr var
address@hidden factory]# tar -cz
--file=/tmp/ampbackups.factorydefault/configurations.tar.gz
--directory=configurations *
tar: configurations: Cannot stat: No such file or directory
tar: factorydefault.tar.gz: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
address@hidden factory]# cd configurations
address@hidden configurations]# tar -cz
--file=/tmp/ampbackups.factorydefault/configurations.tar.gz *
address@hidden configurations]#
Best Regards
Nick
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre.
_____________________________________________________________________
Disclaimer of Liability
ATL Telecom Ltd shall not be held liable for any improper or incorrect use of
the information described and/or contained herein and assumes no
responsibility for anyones use of the information. In no event shall ATL
Telecom Ltd be liable for any direct, indirect, incidental, special,
exemplary, or consequential damages (including, but not limited to,
procurement or substitute goods or services; loss of use, data, or profits; or
business interruption) however caused and on any theory of liability, whether
in contract, strict liability, or tort (including negligence or otherwise)
arising in any way out of the use of this system, even if advised of the
possibility of such damage.
Registered Office: ATL Telecom Ltd, Fountain Lane, St. Mellons Cardiff, CF3 0FB
Registered in Wales Number 4335781
All goods and services supplied by ATL Telecom Ltd are supplied subject to ATL
Telecom Ltd standard terms and conditions, available upon request.
- [Help-tar] Correct use of --directory,
Nick Lewis <=