I have never used tar before and trying it does not work as I expected. I still have to try it as a normal user but I do not think my problem is due to the fact I do it as root.
First, file "home.tar" does not exist and I execute the following command:
Code:
sudo tar -c -p -n -X /home/user01/tar/xclude -f /media/sandisk01/home.tar /home/ /etc/apache2/
This gives a file "home.tar" of about 1.6G on the usb stick.
then I immediately run the following command:
Code:
sudo tar -p -n -u -X /home/user01/tar/xclude -f /media/sandisk01/home.tar /home/ /etc/apache2/
The same file "home.tar" now takes about 3.3G, it looks like this second command has appended a new archive to the old one when I thought the first command created the archive with "-c" and the second one updated it with "-u" which should have resulted in an unchanged archive since no file has been changed.
I do not understand what is meant by "seekable" in the man page about "-n".
Can someone tell me what I am doing wrong?
Thank you for your help