Solved

NFS mount and cpanel backup

Posted on 2007-12-05
5
1,458 Views
Last Modified: 2008-09-17
Hello,

We want to implement NFS mount and do backups via NFS mount in cpanel servers. We want to know
whether there is any risks in doing this. Is it stable?

Can we use NFS for backing up cpanel servers ?

We want to know whether is there any advantages or disadvantages of using NFS
to have cPanel backup. Will it cause the server to crash?

Any help will be appreciated.... Thanks in advance ....

--
Regards,
Anusha
0
Comment
Question by:crucialtest
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 3

Expert Comment

by:yhetti
ID: 20414631
You want to mount the cpanel site tree via NFS on a third server and copy it over?  As in,

ServerA = Hosting server
ServerB = Backup

serverb> mount -t nfs servera:/home/sites/ /mnt/nfs/sites
serverb> tar -cvzf /backups /mnt/nfs/sites

?  Is that correct?

It should work with no difficulty/side effects, though honestly I'd suggest rsyncd instead.  Less overhead and it will only copy changes.  Very easy to set up, also.

0
 

Author Comment

by:crucialtest
ID: 20414733
Hello,

Thanks for the updates.
We want to use NFS mount and backup system in our new servers with cpanel. The thing i want to know is about any disadvantage in using NFS????

WE have heard a few mixed comments about this, saying thats its not stable and it is risky.

--
Regards,
Anusha
0
 
LVL 3

Accepted Solution

by:
yhetti earned 125 total points
ID: 20414895
There's always a certain amount of risk, but you can mitigate it pretty easily.

1) make sure squash_root is enabled (I believe it's by default, but do it explicitly)
2) Use NFS over TCP and firewall that port for everything except the backup server
3) Use NFS3 or 4 over older versions.  NFS4 should be on any new distros
4) Export the mount point as read only (ro)

The disadvantage to using NFS over something designed for backups (such as rsync):
- NFS tends to be slower
- Depending on the config, if the network is sluggish or there are problems with one of the machines, both of them could slow down (the client machine could lock up completely if you try to access an NFS share that's unavailable)
- Every backup will copy the entire directory tree, not just changes.
- There *could* be some problems with simultaneous access, but it's unlikely.
- portmap and RPC are traditionally greater security risks than rsync or even scp -R; that's not to say they *are* bigger risks, just that in the past they have been.
- THe users in /etc/passwd have to match, or you have to use ugidd, OR turn on no_root_squash, in order to get to all the files (you access NFS via minimum security, as opposed to rsync, which you can run as root only as needed.)

0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question