Replicate files using Rsync

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
talltreeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SandyCommented:
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
talltreeAuthor Commented:
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
Gabriel OrozcoSolution ArchitectCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
talltreeAuthor Commented:
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
SandyCommented:
i would suggest to use keybased auth between hosts.

TY/SA
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.