tar cvf backup.tar -C / / # or
tar cvf backup.tar /
produces an archive like
etc/
and gives warnings
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
on the other hand
tar cvf backup.tar -C / .
produces an archive like
./etc/
and gives no warnings. I got the last one from a Debian tutorial.
Which is best for a system backup, do they work exactly the same?
Is there no difference between tar -tvh producing
./etc/
from an archive
and tar -tvh producing
etc/
from an archive
?