Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.