Operating System - HP-UX
1826598 Members
3584 Online
109695 Solutions
New Discussion

Re: Rsync - help required please

 
SOLVED
Go to solution
Gavin Stewart
Advisor

Rsync - help required please

Hi,

I'm trying to get to grips with rsync for the first time. This is what I want to do, please can someone out there advise me of the correct syntax:

- I want to copy new files and changes to existing files from one server to another.
- The destination directory will be the same on both servers.
- I do not want to copy across files that are identical
- I prefer to use remsh rather than ssh.

Thanks in advance.
3 REPLIES 3
Steve Steel
Honored Contributor

Re: Rsync - help required please

Hi


Its third party . Try

http://samba.anu.edu.au/rsync/

http://www.mikerubel.org/computers/rsync_snapshots/

http://sunsite.dk/info/guides/rsync/rsync-mirroring.html


Steve Steel


If you want truly to understand something, try to change it. (Kurt Lewin)
Ermin Borovac
Honored Contributor
Solution

Re: Rsync - help required please

Try

$ rsync -avz -e remsh :

Add -n option for "dry run", i.e. only show what files would be transferred.

man rsync for more examples.
Max Moll
Advisor

Re: Rsync - help required please

Hi Gavin

We use "rsync" between two locations (Germany / Spain)to sync different servers.
You have to install rsync on source and target maschine.

We use it with this options:


-a archiv mode (owner,permissions,group.....are not changed
-v verbose
-q quit
-z compressed
--delete (delete Files which are also deleted at the source )

Syntax:
/usr/bin/rsync -avzq --delete /test/dir target_host:/test/

Make a test, and you will see how it works.

Best regards
Max