Learned ones!
To overcome some crappy web design (two servers, load balanced, no
shared storage), I need to implement rsync to synchronise a directory
between two servers.
Trouble is, it's got to be a two way sync.
I.E. File uploaded to web server 1 (don't ask - I told you it was crap
web design
> rsync -v -rlt
>
> Can anyone suggest a better option set which could make this a two way
> sync by just running on the one server?
>
You can run rsync twice on the one server
rsync -options server1:/dir1 /dir1
rsync -options /dir1 server1:/dir1
with the rsync options, you probably want
-u, -
On 14 May 2013 09:34, Michael Chesterton wrote:
>> rsync -v -rlt
>> Can anyone suggest a better option set which could make this a two way
>> sync by just running on the one server?
>
> You can run rsync twice on the one server
>
> rsync -options server1:/dir1 /dir1
> rsync -options /dir1 server1
If you can time stamp when you do it.
Update server 1 with files > timestamp from server 2
Record new timestamp.
Update server 2 from server 1 with delete.
(i.e. fetch new files from server 2 onto 1, then sync server 2 which will
remove dead files that you have deleted. Server 1 is the b
Are you forced to use rsync? If not you can use csync2 which I think would
do the trick for you.
On 14 May 2013 09:16, DaZZa wrote:
> Learned ones!
>
> To overcome some crappy web design (two servers, load balanced, no
> shared storage), I need to implement rsync to synchronise a directory
> be
On 14/05/13 09:16, DaZZa wrote:
> The current command being used is
>
> rsync -v -rlt
As Michael wrote, you probably want the -u option, otherwise it's even
chance whether a new file will be copied or overwritten.
Jiri
--
Jiří Baum
http://www.baum.com.au/sabik
--
SLUG - Sydney Linux User's
Why not consider unison?
On 14 May 2013 10:23, Jiří Baum wrote:
> On 14/05/13 09:16, DaZZa wrote:
> > The current command being used is
> >
> > rsync -v -rlt
>
> As Michael wrote, you probably want the -u option, otherwise it's even
> chance whether a new file will be copied or overwritten.
>
glusterfs
http://www.gluster.org/community/documentation/index.php/Getting_started_rrqsg
http://www.gluster.org/
:)
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
If it were me I'd look at making something based on ionotify
Then scp the files between the servers.
(note you will need to check the remote side to see if the file exists
so you don't make a loop)
Upside is there's no 5 minute window.
I'd keep the rsync as well but run it much less often, main
http://www.extremetech.com/extreme/155392-international-space-station-switches-from-windows-to-linux-for-improved-reliability
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Btsync might also be an option? I haven't tested this myself but will be
doing so this week.
On 14/05/2013 12:12 PM, "Jake Anderson" wrote:
> If it were me I'd look at making something based on ionotify
> Then scp the files between the servers.
> (note you will need to check the remote side to se
11 matches
Mail list logo