Solved

Replicate files using Rsync

Posted on 2014-10-02
5
328 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
Comment Utility
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
Comment Utility
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:
Redimido earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
i would suggest to use keybased auth between hosts.

TY/SA
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

19 Experts available now in Live!

Get 1:1 Help Now