You are not logged in.

#1 2010-07-09 17:11:16

Ryuujin
Member
Registered: 2009-07-04
Posts: 31

Mirroring two home directories via local network

I want to clone /home/* for 2 computers in my local network, they have the same 4 users. This way any family member can login to any of the two and have their files and configuration. They have plenty of HDD space and bandwidth is not a problem since this is done via local network and they both have gigabit ethernet cards (and yes, the router supports that speed). I could use an old laptop with linux to work as a server if that will simplify the process...

I'm thinking rsync + ssh + cron job the script?
> Ping the other computer, if it's alive, run the following:
> run rsync command including ssh-ing into it as root user (because the other users wont have access to the other's home directories)
> repeat every ~15min

I'm not sure if that will be the best way, any suggestions?

Anyone does this and wants to share their method/script?

I'm also not sure about the rsync command, any suggestions?

Thanks big_smile !

Offline

#2 2010-07-09 18:54:49

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Mirroring two home directories via local network

Go look at an app called Unison. It will do exactly what you want and is scriptable.

Offline

Board footer

Powered by FluxBB