LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Moving Server Data >> New Server (https://www.linuxquestions.org/questions/linux-server-73/moving-server-data-new-server-649111/)

carlosinfl 06-13-2008 01:58 PM

Moving Server Data >> New Server
 
I am migrating some files and folder data to our new email server and was wondering what the best way to do this would be. I know there are several options and they all have they're advantages but I wanted to ask here and see what everyone recommended.

I have a directory called:

/var/lib/mailman/lists/ and there are many sub directories in lists/ so I want take everything that is /var/lib/mailman/lists on server_old and mirror the identical directory (already exist) on server_new.

I was told I should simply tar cvjfp /tmp/lists.tar.bz2 from the lists directory on server_old and then scp over to server_new and extract. Is this the best or can I simply use rsync or something like that?

Thanks for any suggestions!

trickykid 06-13-2008 02:40 PM

In my opinion, rsync simplifies the process and eliminates the extra step of creating the tarball and then copying it over. You simply sync it up with the rsync command.

carlosinfl 06-13-2008 03:55 PM

Will rsync also retain permissions from server_old to server_new?

trickykid 06-13-2008 09:51 PM

Quote:

Originally Posted by Carlwill (Post 3184074)
Will rsync also retain permissions from server_old to server_new?

Yup, you have that option with rsync.


All times are GMT -5. The time now is 04:58 AM.