hi all,

made a script, heres a snippet below of it

cp -rfp /etc/passbolt $back2

cp -rfp /usr/share/php/passbolt/webroot/img/avatar $back2

cd $back/

tar cf $dt.tar $dt

will the tar preserve perms of the folders when i untar it

thanks,
rob

4 Spice ups

nvm i tried and all good

2 Spice ups

Surely you’d never get it out of your hair…? :stuck_out_tongue:

2 Spice ups

It keeps owner and group permissions numerically - there’s no promise that those will match up when un-tarring to another system.
There 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…

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.

3 Spice ups