Solved

Replicate files using Rsync

Posted on 2014-10-02
5
368 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to enable SSH in Ubuntu. 7 105
best simple nfs export and fstab commands for basic sharing? 3 89
High Bandwidth Usage 6 98
Understanding ping command in Ubuntu 5 34
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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