LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2010, 01:27 PM   #1
mrotsliah
LQ Newbie
 
Registered: May 2009
Posts: 25

Rep: Reputation: 15
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
 
Old 08-11-2010, 03:23 PM   #2
tlowk
Member
 
Registered: Nov 2003
Location: Belgium
Distribution: Slackware
Posts: 184

Rep: Reputation: 36
I think rsync by itself will not have many problems with the fact there are different filesystems used.

To synchronize permissions and ownerships you'll probably need to run it as root

probably login on server2 as root, make sure you can login with a key on server1 and use:

rsync -a --progress --dry-run server1:/users/* /users/

because of the '--dry-run' option nothing will happen, but you can see what it would do.

Last edited by tlowk; 08-11-2010 at 03:35 PM.
 
Old 08-11-2010, 03:29 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
why would it matter what file system is on either end, rsync is simply a protocol not unlike ftp which doesn't care what filesystem is being accessed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which is the better way to rsync files between web servers? cooljai Linux - Server 8 05-21-2010 11:32 PM
Using separate file systems for swap and / while installing servers csanter Linux - Server 1 12-16-2009 12:21 PM
Installing rpm files onto nfs server root file systems WilNel Linux - Networking 0 05-17-2007 05:05 PM
Locating Files and File Sizes on Servers? carlosinfl Linux - Server 5 04-23-2007 04:22 PM
File Systems and Numerous files per directory dman65 Linux - General 1 10-06-2003 04:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration