Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-17-2004, 09:51 PM   #1
LQ Newbie
Registered: May 2004
Posts: 12

Rep: Reputation: 0
NFS Home directories for laptops

Hi All,
This is my first post, so go easy! =)
My problem is this: I have several desktops and a laptop that I would like to use NFS home dirs on. If I create/edit files remotely, is there an easy way to "sync" the work I've done with the NFS server automatically next time I log into the network? Is that what the (rw, sync) in the /etc/exports file does for you? Probably a very simple question, but I was afraid I might loose/corrupt my work if I experimented too much! Thanks in advance!

Old 05-20-2004, 09:27 AM   #2
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Actually you have a problem: if you have home on NFS, then when you're not connected you won't be able to mount /home, and that's not good.
If you need to use the laptop offline AND the desktops without the laptop, you have 2 choices:
1. use a distributed filesystem like coda or afs. Keep in mind this is not so easy to setup for a novice
2. export the desktops' /home, but keep a local copy on the laptop as well. Then when you connect the laptop, mount //desk/home as /mnt/home and have a cron script run:
rsync -ua /home /mnt/home
rsync -ua /mnt/home /home
You may need to install the rsync package, then see rsync manpage.

PS: the (sync) in the /etc/exports means that writing is syncronous, i.e. the server won't return an ok code until it has finished writing to disk. In async mode (most used on slow peripherals like printers) the process returns ok after having stored the data in a buffer, so the client doesn't need to wait.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Sharing directories with NFS paddyjoy Linux - Newbie 6 08-14-2005 03:06 AM
Export directories via NFS nifflerX Linux - Networking 3 07-07-2005 01:21 AM
Home network Linux Server and MS XP Laptops? MeSo Linux - Newbie 1 02-15-2004 12:53 PM
NIS/NFS and sharing home directories grebo Linux - Networking 1 09-21-2001 11:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration