Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to achieve the following setup:

Every time I connect my laptop to a local network, my partition gets automatically mirrored to a partition on my local server.

I only want to mirror what has changed from the last time. (I understand that it is not a proper backup solution since there is no history of the changes, it'd be more like a non-persistent network RAID.)

Is there a distributed file system that allows such a setup? I've done some searching and it seems to me that most distributed file-systems are focused on data availability and distribution, not duplicating them.

I'd be thankful for suggestions.

Edit: Sorry, I forgot to mention: I'm using Linux.

share|improve this question

closed as off topic by Sven, Zoredache, rnxrx, Michael Hampton, Ward Sep 19 '12 at 18:36

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

what OS do you use? – user1008764 Sep 12 '12 at 18:32
what would you lack using an rsync job ? (could be triggered as post-up interface script) – Silopolis Sep 12 '12 at 18:40
i'm with silopolis use rsync – user1008764 Sep 12 '12 at 18:44
up vote 6 down vote accepted

You are vaguely describing AFS in it's disconnected mode of operation. However, I don't see any articulated requirement for the use of a "distributed" filesystem to solve your problem.

Unison, duplicity, rsnapshot, bacula and many others (not to mention the "dropbox" like family of cloud solutions) could provide this functionality. If the goal is for automatic sync upon network connection invoking these tools via a crontab entry that first checks for connectivity or even on a udev network interface event shouldn't be very difficult.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.