- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Synchronize 2 linux machines using rsync
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
12-25-2009 09:03 AM
12-25-2009 09:03 AM
I'd like to synchronize a directory included all subdirectories with user rights and permissions between 2 linux server using rsync.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2009 10:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2009 10:46 AM
12-25-2009 10:46 AM
Re: Synchronize 2 linux machines using rsync
Normally u can change it using chmod command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2009 10:52 AM
12-25-2009 10:52 AM
Re: Synchronize 2 linux machines using rsync
unclear in the rsync documentation? Can you
find no rsync examples by searching the ITRC
forums? Is Google broken? Are you too tired
to read this stuff yourself?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2009 11:18 AM
12-25-2009 11:18 AM
Re: Synchronize 2 linux machines using rsync
check this link :
http://www.linuxquestions.org/linux/answers/Networking/Using_rsync_to_mirror_data_between_servers
hope it will help you.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2009 11:50 AM
12-25-2009 11:50 AM
Re: Synchronize 2 linux machines using rsync
rsync -e ssh -avzp --delete-after /repl/ root@192.168.0.3:/repl/
root@192.168.0.3's password:
and hope it's OK.
BTW Howto set as a cron job using password?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2009 11:57 AM
12-25-2009 11:57 AM
Re: Synchronize 2 linux machines using rsync
BTW Howto set as a cron job using password?
#==========================================
what you mean ????
you like to make a cron job for this rsync password less ???
if yes you need to use password less ssh connection :
http://www.cyberciti.biz/faq/ssh-password-less-login-with-dsa-publickey-authentication/
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2009 07:08 PM
12-26-2009 07:08 PM
Re: Synchronize 2 linux machines using rsync
rsync -e ssh -avzp --delete-after /repl/ root@192.168.0.3:/repl/
I hope this rsync command is OK to have an exact copy of my original directory, including permissions, ownership, modification times and so.
If not, pls correct me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2009 09:47 PM
12-26-2009 09:47 PM
Re: Synchronize 2 linux machines using rsync
this command should work.
your - p switch should take care about permition :
-p, --perms
This option causes the receiving rsync to set the destination
permissions to be the same as the source permissions. (See also
the --chmod option for a way to modify what rsync considers to
be the source permissions.)
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2009 11:17 PM
12-26-2009 11:17 PM
Re: Synchronize 2 linux machines using rsync
Have you considered running a test using some
small directory tree? You might even add or
change a file and see what happens.
Sometimes running a quick experiment can be
more reliable than either hope or someone
else's opinion. Often faster, too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2009 05:25 AM
12-27-2009 05:25 AM
Re: Synchronize 2 linux machines using rsync
I've done a test and it seems to work well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2009 08:21 AM
12-28-2009 08:21 AM
Re: Synchronize 2 linux machines using rsync
Might want to try this:
rsync -avH --stats --delete -e ssh /var/httpd/ $othernode:/var/httpd/
Othernode is the target host.
You can vary the directory source and target to your hearts content.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2009 10:25 AM
12-30-2009 10:25 AM
Re: Synchronize 2 linux machines using rsync
rsync -e ssh -avzp ...
does it transfer each time all files or just differences?
BTW I need the same permissions on the target like on the source, that's the reason why I need -p option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2009 02:36 PM
12-30-2009 02:36 PM
Re: Synchronize 2 linux machines using rsync
> just differences?
man rsync
http://samba.anu.edu.au/rsync/documentation.html
http://samba.anu.edu.au/rsync/FAQ.html
I quote:
If you think that rsync is copying too
many files, look at the itemized output
(-i) to see why rsync is doing the
update [...]