I thought I was following directions well but apparently not.
I created a backup of my system with the following command:
Note: in the above, I left out the --exclude= options in this post for clarity sake but I did actually exclude the usual directories, ie. /lost+found, /mnt, etc. plus the destination file itself (mybackup.tgz), of course.Code:cd / sudo tar -cpvzf mybackup.tgz /
No problems so far and I have my backup tarball sitting in the root directory. The problem comes when I try to restore. Here's the command I tried (as well as several variations):
The error I'm getting is that the file doesn't exist and I think that the problem is related to the placement of the --same-owner option because I've used tar plenty of times before without incident but never with the --same-owner option. It's imperative that I preserve both the file permissions and ownership. If --same-owner had a single letter equivalent them I'm sure I could just include it with -xvpfz but it doesn't.Code:cd / sudo tar -xvpfz --same-owner mybackup.tgz -C /
Can someone please give me the correct syntax and point out where I've been going wrong if it's not obvious? I'm relegated to running Puppy Linux from a USB flash drive until I get my Ubuntu installation restored.
Many thanks in advance,