LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2009, 03:33 AM   #1
Nielsrohrig
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
nfs for syncing dirs, but want to exclude a dir


Hello,

Im using nfs exports for syncing the home dirs between 2 servers.
that works fine but i have a network mount under /home/<user>/projects wich i would like to exclude from syncing because syncing the network mount gives troubles. Is that possible or maybe with some handy program/tool?
It just needs to sync the whole /home except /home/<user>/projects
in /etc/fstab on lnxserver02 i have:
#lnxserver01:/home /home nfs defaults 0 0
thx for your help!
 
Old 07-28-2009, 05:53 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
That isn't syncing. Without the "#" commenting out the fstab entry, the /home directory of lnxserver01 is mounted on the /home directory of lnxserver02.

Syncing is when you copy new or changed files from one directory to another, so they contain the same files. E.G. using rsync.
The files exist in only one place, on lnxserver01.

Please explain what particular problem you are having.
 
Old 07-29-2009, 01:06 AM   #3
Nielsrohrig
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
of course i tested it without the comment in the fstab.
Looks like that is working fine but not when i mount a network folder in that same directory. the network mount is from a filer and needs to be mounted on both servers into /home/<user>/projects. when i turn on the nfs share i can only mount it once, on 1 server. i can mount it on server 2 but then i dont see the files.
i want both /home directorys on both servers syncronized. plus i want to use the root account for it otherwise i have to do it for every user who works on the linuxserver. (around 100 people)
 
Old 07-29-2009, 06:58 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look at the exports manpage for the "crossmnt" option.

You could maybe call this mirroring, but there is no replication involved.

Quote:
plus i want to use the root account for it
Use the root account for what?
 
  


Reply



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
SVN Exclude files and dirs 70mas Linux - Software 0 11-20-2008 01:09 PM
Size occupied by a dir (with sub-dirs) chipotphe Linux - Newbie 3 11-15-2008 09:03 AM
samba, add dir, but dirs that's there are ro jo4 Linux - Server 1 01-17-2008 03:19 PM
exclude a dir with mirrordir jbg Linux - Software 1 08-10-2004 04:42 PM
Cmd to rm dir thats has files and other dirs psyklops Linux - General 4 04-17-2002 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:16 PM.

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