Solved

Replicate files using Rsync

Posted on 2014-10-02
5
337 Views
Last Modified: 2014-10-03
Hi Experts,

We are in a small Novell OES enviorment and we have added a backup server to our remote office and would like to syncronize the changes to our files(volumes) from our main server to our backup server and I am not sure how to setup Rsync to acomplish this or if that is the best solution.

Thanks
0
Comment
Question by:talltree
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:Sandy
ID: 40359155
1. Check the ssh connectivity between both nodes.
2. setup rsync command in cron for auto schedule.

rsync -v -e ssh /www/backup.tar.gz tom@destination.system:/path/to/copy

Ty/SA
0
 

Author Comment

by:talltree
ID: 40359528
Hi Susan,

How to i check the 1. Check the ssh connectivity between both nodes.?

Also can you break down this command(what it does)?
rsync -v -e ssh /www/backup.tar.gz tom@destination.system:/path/to/copy


thank you
0
 
LVL 19

Accepted Solution

by:
Gabriel Orozco earned 500 total points
ID: 40359854
first your main server should have connectivity to the backup server
then you need to assure your data is transferred on a secure way. for that the most used transfer method is SSH.
you can test that if you ssh to the remote server. you need your backup data to be copied under a specific user. check that user has access to write to a filesystem with enough space.
if you were able to ssh to the remote user, then you can use rsync to backup your current directory to the remote server.

however, rsync is a swiss army knife for remote sync. you can do TONS of things with it.

for example, by using ssh, you can add -C switch and data will be transferred compressed on the fly. this takes much less bandwidth.
other example is you can have different directories on the remote server and backup day by day. this will be the best since you can go and recover files from previous backups.
on this item, you can use some advanced switches on rsync, so it REFERENCES previous files on the disk. this is, even if you are backing up on different directories, as long as you use those switches and reference a "BASE" directory, files will never be written twice. just referenced. I have used this capability to do daily backups for months without running out of space.

this said, you may want to see at
rsync-local-remote-file-synchronization-commands
or
httprsync-command-examples

for example.
0
 

Author Comment

by:talltree
ID: 40360345
Thank You Susan I am reading your links.

Another question on your example,
rsync -v -e ssh /www/backup.tar.gz tom@destination.system:/path/to/copy

If you scheduled this in Cron how would you add the password? and is it possible to sync changes both ways? We actually have a specifc folder that is used by a department and the department has staff at 2 locations.

Thank You
0
 
LVL 13

Expert Comment

by:Sandy
ID: 40360393
i would suggest to use keybased auth between hosts.

TY/SA
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fsstat very high only on nfs client side rhel 10 101
Does fail2ban start automatically each time system starts? 1 180
Running Guacamole on port 80 5 152
Linux neworking 4 77
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now