hi all,<\/p>\n
made a script, heres a snippet below of it<\/p>\n
cp -rfp /etc/passbolt $back2\n\ncp -rfp /usr/share/php/passbolt/webroot/img/avatar $back2\n\ncd $back/\n\ntar cf $dt.tar $dt\n<\/code><\/pre>\n
Advertisement
will the tar preserve perms of the folders when i untar it<\/p>\n
thanks,
\nrob<\/p>","upvoteCount":4,"answerCount":4,"datePublished":"2024-11-14T11:50:21.091Z","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"},"acceptedAnswer":{"@type":"Answer","text":"
nvm i tried and all good<\/p>","upvoteCount":2,"datePublished":"2024-11-14T12:26:18.087Z","url":"https://community.spiceworks.com/t/does-a-tar-preserve-perms/1142018/2","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"}},"suggestedAnswer":[{"@type":"Answer","text":"
hi all,<\/p>\n
made a script, heres a snippet below of it<\/p>\n
cp -rfp /etc/passbolt $back2\n\ncp -rfp /usr/share/php/passbolt/webroot/img/avatar $back2\n\ncd $back/\n\ntar cf $dt.tar $dt\n<\/code><\/pre>\nwill the tar preserve perms of the folders when i untar it<\/p>\n
thanks,
\nrob<\/p>","upvoteCount":4,"datePublished":"2024-11-14T11:50:21.180Z","url":"https://community.spiceworks.com/t/does-a-tar-preserve-perms/1142018/1","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"}},{"@type":"Answer","text":"
Surely you’d never get it out of your hair…?
<\/p>","upvoteCount":2,"datePublished":"2024-11-14T12:55:47.715Z","url":"https://community.spiceworks.com/t/does-a-tar-preserve-perms/1142018/3","author":{"@type":"Person","name":"uselessinfomine","url":"https://community.spiceworks.com/u/uselessinfomine"}},{"@type":"Answer","text":"
It keeps owner and group permissions numerically - there’s no promise that those will match up when un-tarring to another system.
\nThere aren’t even standards between distros on system accounts - daemon on my Rocky Linux box is id 2 and it’s 1 on Debian based things. Games is id 5 in Debian - and that’s the sync account on Red Hat…<\/p>\n
On the other hand, if you need to transfer that data to another machine, rsync works to keep track of uid/name pairs and as long as all users are on both systems, the transfer will end with appropriate permissions and uid/gid intact.<\/p>","upvoteCount":3,"datePublished":"2024-11-14T15:54:21.755Z","url":"https://community.spiceworks.com/t/does-a-tar-preserve-perms/1142018/4","author":{"@type":"Person","name":"stevejones4947","url":"https://community.spiceworks.com/u/stevejones4947"}}]}}