T
T
Twelfth Doctor2017-08-11 11:41:58
linux
Twelfth Doctor, 2017-08-11 11:41:58

Why can't tar archive be unpacked?

Hello. Why can't the archive be unpacked? I see that for some reason tar could not find the /home/u34/web/sinister.co.uk folder in the archive, but it is there.
And why does tar in the archive look for the file /backup/u34/11-08-2017.tar.gz , because this is the path to the archive being unpacked?

[email protected]:/# tar -xvf --acls /backup/u34/11-08-2017.tar.gz /home/u34/web/sinister.co.uk -C /home/u34/web/sinister.co.uk
tar: /backup/u34/11-08-2017.tar.gz: Not found in archive
tar: /home/u34/web/sinister.co.uk: Not found in archive
tar: Exiting with failure status due to previous errors

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2017-08-11
@verdex

-xvf --acls
the next option after -f is read as a file, but the file "--acls" does not exist in the directory.
write
--acls -xvf

C
CityCat4, 2017-08-11
@CityCat4

Because the -f switch requires a filename and everything after that tar treats as a filename

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question