xoxomos
asked on
Syntax for gtar
Trying to gtar directory and subdirectories. Need to include long file names and maintain symbolic links and maintain permissions. What is the syntax for command line?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.freebsd.org/cgi/man.cgi?query=tar
Basically for extra info on what parameters to avoid to keep scrits portabls...
Basically for extra info on what parameters to avoid to keep scrits portabls...
ASKER
Actually is Solaris and it doesn't seem to like tar -cp {path} > archive
Not that way.
tar cpf - {path} > archive
i.e. one should use stdout instead of default tape for shell redirect to work.
tar cpf - {path} > archive
i.e. one should use stdout instead of default tape for shell redirect to work.
tar -cp {path} > archive
I think that gtar handles long file names automatically.
The default is to dump symlinks as symlinks.
Good Luck!
Kent