On Thu, May 16, 2002 at 08:14:14AM -0600, Trevor wrote: > > I suggest you add the 'p' switch as well, to preserve permissions and > > ownerships. That is, after all, the problem Jim is trying to solve. > > > > tar -zcvpf /path/to/name_of_the_file.tar.gz /var/www (to > > compress and archive) > > tar -zxvpf /path/to/name_of_the_file.tar.gz (to restore from > > the archive) > > If you do a tar -zcf name_of_file.tar.gz /dir/* it will preserve the > permissions. So, isn't the "p" switch optional?
Without 'p', file ownership will not be preserved. -- Anand Buddhdev Personal site: http://anand.org _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list