Hi ! I am running rsync between two server machines where files are being created and removed from both machines simultaneously and I am facing the following problem : When a new file is created on machine 1 it is transferred to machine 2 without any problem, the same happens if a file is deleted from machine 1. But if a new file is created on machine 2, it is deleted from that machine before being copied to machine 1. On time: The machines are sharing connections, they are not master and slave. I am running a script each 5 seconds executing rsync --verbose --recursive --delete ... Does anybody have an idea how to solve that ? Thanks in advance, Luis.
On Wed, Jul 02, 2003 at 04:39:28PM -0300, Luis Gustavo Perez wrote:> When a new file is created on machine 1 it is transferred to machine 2 > without any problem, the same happens if a file is deleted from machine > 1. But if a new file is created on machine 2, it is deleted from that > machine before being copied to machine 1.Rsync only transferrs files in a single direction. For what you're doing, you should check into a distributed filesystem, such as the self-certifying filesystem (http://www.fs.net/) or AFS. Alternately, look into the program named unison (but your desire to update every 5 seconds makes a more direct soltuion a much better choice). ..wayne..
Reasonably Related Threads
- need assistance with rsync keeping two live servers synced.
- synchronisation in multiple directions.
- Update3: easy - automated setup : Debian Wheezy with sernet samba 4.1 : sysvol replication with unison.
- Samba Wiki change suggestion
- Samba Wiki change suggestion