How to make NFS mounts available while offline?

5,374

http://www.linuxpromagazine.com/Issues/2009/99/Offline-FS

Here's some information on various alternatives to do this. Primarily discussing OFS. I've not used it myself, but it seems more mature than my prior suggestions and specifically designed for the task rather than trying to speed up NFS access like CacheFS.

When I need to keep two things in sync, I usually use a Subversion repository as an intermediary between the two systems, but this can be labor intensive.

Share:
5,374

Related videos on Youtube

lpanebr
Author by

lpanebr

Self learner, web developer and TI manager, seeking to develop a system with a user interfaces that provide great user experience and usability and helps the world through the dissemination and cooperation of science and scientific reaserch.

Updated on September 18, 2022

Comments

  • lpanebr
    lpanebr over 1 year

    Problem:

    I work on a notebook and while at work I have access to many NFS mounted drives. When I get home they are obviously not available.

    Windows 7 solution:

    My business partner uses Windows 7 and maps the folders via samba. Windows 7 has a very nice feature that let's he make these folders available offline. So when when he connects to the work network the changes get synchronized!

    Question:

    Is there a way to mimic that in ubuntu?

    What I have now:

    Server to local sync: I have added rsync entries on my crontab to copy server folders => local folders every five minutes.

    When at work I used the NFS mapped folders and while outside work I use the local copies.

    When I get at work I manually run a script that syncs local folders => server folders.

    Problems with my setup:

    • slow startup when not at work (I guess do to the fstab trying to map the server folders)
    • no conflict checking/managing
    • I have to remember to sync manually and be careful because of the different file locations
    • recent files do not work between work and home
    • Admin
      Admin over 12 years
      I think Unison can help you. look it up in software center for more detail info.
  • lpanebr
    lpanebr over 12 years
    OFS does look like what I want but it is not yet mature enough for me to rely on it.. Great to know about it tough!