- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Can I use rsync bidirectional between two serv...
Operating System - Linux
1753513
Members
5564
Online
108795
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 12:14 PM
тАО10-15-2008 12:14 PM
Can I use rsync bidirectional between two servers?
Hello,
I would like to know if I could use "rsync" bidirectional and if you have the exact configuration assuming you have rsync and ssh already installed on both servers. If you could help me on this, I would really appreciated.
I would like to know if I could use "rsync" bidirectional and if you have the exact configuration assuming you have rsync and ssh already installed on both servers. If you could help me on this, I would really appreciated.
Reynaldo Torres
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-20-2008 12:18 AM
тАО10-20-2008 12:18 AM
Re: Can I use rsync bidirectional between two servers?
Hi Reynaldo
I dont really know how to do it with rsync but it should be possible.
You may want to look at "dsync" which does it.
I used it a really while ago and it workd fine. It is based on rsync if I remember well (thats why I said it must be possible with rsync).
Here have a look at the link.
http://www.ayradyss.org/programs/man/dsync.html
Regards,
Thierry
I dont really know how to do it with rsync but it should be possible.
You may want to look at "dsync" which does it.
I used it a really while ago and it workd fine. It is based on rsync if I remember well (thats why I said it must be possible with rsync).
Here have a look at the link.
http://www.ayradyss.org/programs/man/dsync.html
Regards,
Thierry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 09:25 PM
тАО10-23-2008 09:25 PM
Re: Can I use rsync bidirectional between two servers?
On modern Linux systems, rsync usually uses ssh by default.
To bidirectionally sync a directory /src/foo on hostA to /dest/foo on hostB, including all the sub-directories, you would run these commands on hostA:
rsync -auz /src/foo hostB:/dest
rsync -auz hostB:/dest/foo /src
The first command pushes all the files that are newer on hostA to hostB. The second command will pull all the files that are newer on hostB to hostA. The critical options are:
- when copying, you must preserve file modification times. "-a" does this and other things; if you want to preserve just the modification times, use "-t" instead.
- you must skip any files that are newer on the destination: "-u" does this.
Alternatively, you could do the same thing from hostB:
rsync -auz hostA:/src/foo /dest
rsync -auz /dest/foo hostA:/src
MK
To bidirectionally sync a directory /src/foo on hostA to /dest/foo on hostB, including all the sub-directories, you would run these commands on hostA:
rsync -auz /src/foo hostB:/dest
rsync -auz hostB:/dest/foo /src
The first command pushes all the files that are newer on hostA to hostB. The second command will pull all the files that are newer on hostB to hostA. The critical options are:
- when copying, you must preserve file modification times. "-a" does this and other things; if you want to preserve just the modification times, use "-t" instead.
- you must skip any files that are newer on the destination: "-u" does this.
Alternatively, you could do the same thing from hostB:
rsync -auz hostA:/src/foo /dest
rsync -auz /dest/foo hostA:/src
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP