Best way to preserve ownership in tar compress?
Is there an easier way than using --same-owner with tar czpf? I'm not finding it anywhere and it's a pain to type every time as I use it often. Also it needs to preserve ownership on extract.
|
Usually you don't need to specify that. In Linux, you have to be root in order to create files owned by anyone but yourself, and when tar is run by root it defaults to preserving ownership and permissions.
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 04:29 PM. |