how to rsync files on two servers that have two different file systems
I am going to update the OS on Server1, and I mounted a directory from Server2 so that I can backed up the user files on Server2. On Server1, the mounded directory is called Server2, and I was going to save the user files in a folder called users. I used suggested the code
tar cplf - * | (cd /Server2/users; tar xvf -)
since Server1 and Server2 have different file systems. (Server1 is running Solaris 7, and Server2 is running Ubuntu 10.04 LTS.) Before I wipe Server 1, I would like to rsync the files less some users have changed stuff. (We should have locked the directories, but we didn't.)
Any suggestions on how to do this? I was thinking something along the line of
tar cplf - * | (cd /Server2/users; tar xvf | rsync -r -a -e --delete -)
Thanks
|