tar not preserving permissions?
I backed up using:
Code:
tar -cvpzf foo.tgz . Code:
tar -C /home/user/restore/ -xvzf foo.tgz When I try and run with -p on restore I get: Code:
tar -C /home/user/restore/ -xvzfp foo.tgz TiA, -BassKozz |
Hello.
When you are extracting you are omitting the "p" option. |
Hi
You need to use the p option in the extraction to preserve the archived permissions Code:
tar -C /home/user/restore/ -xvpzf foo.tgz Code:
ls -l Cheers Emma |
Code:
tar xvfp foo.tgz -C /home/user/restore/ |
Quote:
|
Quote:
Thanks i92guboj. :D Quote:
For Example: tar xvfp foo.tgz = WORKS tar -xvfp foo.tgz = DOES NOT WORK tar -xvpf foo.tgz = WORKS Wounder why that is? |
From "tar.c" [GNU Tar 1.22]:
Code:
static void |
All times are GMT -5. The time now is 08:41 PM. |