ispCP - Board - Support
migration to a new server --> permissions in /var/www/virtual - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Migration (/forum-35.html)
+--- Thread: migration to a new server --> permissions in /var/www/virtual (/thread-3580.html)



migration to a new server --> permissions in /var/www/virtual - soomon - 06-20-2008 11:37 PM

hi,

i have ispcp running on my server. now i want to move to a new server.
so i installed ispcp and copied the databases and content of /var/www/ to the new server with scp.
then everything belongs to root....
but I have to copy the permissions, too, because on the old server most things belong to www-data or vuxxx.
then i tried to tar everything on the old server and untar on the new one.
that also didn't help.

how do i move the files correctly?
a friend said that the permissions of files could be bound to the user id's instead of the usernames???

what do i have to do?

thanks & greets,
soomon


RE: migration to a new server --> permissions in /var/www/virtual - bashar - 07-21-2008 08:53 AM

you can use rsync to copy files without changing permission and owner (man rsync)


RE: migration to a new server --> permissions in /var/www/virtual - kilburn - 08-12-2008 04:49 PM

tar should also be able to do it, just look at it's manpage for the "preserve permissions" command switch (-p?)