Timeline for tar with relative paths
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 9, 2019 at 3:06 | comment | added | G-Man Says 'Reinstate Monica' |
(2) OP wants to archive ~/webapps/zers/wp-content/plugins/my-page-order with output to ~/files/wp/my-page-order.tar.gz; your command archives ~/files/wp/my-page-order. (3) Thanks for editing your answer to explain why you used gzip.
|
|
| Aug 8, 2019 at 8:21 | history | edited | Mattia72 | CC BY-SA 4.0 |
added 147 characters in body
|
| Aug 8, 2019 at 7:21 | history | edited | Mattia72 | CC BY-SA 4.0 |
added 8 characters in body
|
| Aug 8, 2019 at 7:16 | comment | added | Mattia72 |
(1) You've right (2) really? Which is the good one? (3) this is the point: the non GNU version of tar (eg. on Unix), has no -z (4) I would use probably && in a script, but I think this is not necessary in a "one liner"
|
|
| Aug 6, 2019 at 17:28 | comment | added | G-Man Says 'Reinstate Monica' |
(1) The question doesn’t say anything about rm; why do you include it in your answer? (2) Your answer archives the wrong directory. (3) Why have you changed tar -z to tar | gzip? (4) As long as you’re going to use &&, you should probably use && after the pushd, too.
|
|
| Oct 6, 2016 at 11:44 | review | Late answers | |||
| Oct 6, 2016 at 11:49 | |||||
| Oct 6, 2016 at 11:32 | review | First posts | |||
| Oct 6, 2016 at 11:51 | |||||
| Oct 6, 2016 at 11:28 | history | answered | Mattia72 | CC BY-SA 3.0 |