The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NFS in cpbackup

Discussion in 'Data Protection' started by kichu7, Dec 5, 2007.

  1. kichu7

    kichu7 Member

    Joined:
    Dec 1, 2007
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hello,


    Can we use NFS for backing up cpanel servers ?

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

    Any help will be appreciated.... Thanks in advance ....:rolleyes:
     
  2. binoy1983

    binoy1983 Registered

    Joined:
    Dec 18, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    It's just too scary to have a cracker cleaning up is mess with
    rm -r /*
    while your backup is NFS mounted no_root_squash.


    For backup I recommend
    dirvish
    rsync
    or
    storeBackup


    Moreover If you are using cpanel severs it will be fine if use defalut cpanel scripts for taking backups are.
    /scripts/cpbackup
    /scripts/pkgacct username----->>Backing up
    /scripts/restorepkgs-------->>For restoring domain
    --------------------------------------------------------------------------------------------------------------------------

    I think this will help you. If you need more you may contact me binoy.varghese@slashome.com

    Thanks

    Best Regards
    Binoy Varghese
     
  3. rbalaji

    rbalaji Member

    Joined:
    Nov 27, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    you are new to cpanel server, then you can follow the same methods with easy understandable format.

    =>Login to root SSH

    => Run /scripts/pkgacct username

    => cd /home then ls to see the file. It should look like cpmove-username.tar.gz

    =>If you don't see the /home/cpmove-username.tar.gz but you see cpmove-username-split then run the
    /scripts/pkgacct again

    =>Take the /home/cpmove-username.tar.gz and copy it over to the /home of the other server using scp command

    scp -rp -P 1291 cpmove-username.tar.gz root@ip:/home

    => SSH to the other server and cd /home

    => Do /scripts/restorepkg username in Shell


    Thanks:)
    " I can but I won't "
     
  4. allwebnow

    allwebnow Well-Known Member

    Joined:
    Jan 8, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Does anyone know how rsync works? is it a raid type thing or do you just choose portions of the hard drive to sync up with the other server?
     
  5. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    We have used NFS mounts to backup to for years with cpanel. We have had no issues at all with server stability. Only thing we have noticed is the backup is bandwidth intensive and will max out a 100mbit connection, but as long as the backups run during the early morning hours you should not notice any issues.

    As far as a hacker getting in and removing files its possible but in order to do so they have to get root access which makes this unlikely to happen if your server is secured any at all.

    the main thing is to prevent people from scanning the portmapper which can be done via the hosts.allow and hosts.deny file. only allow access to port 111 from your servers and deny it to all others
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    rsync is more of a "command" per-se than a utility that's running in the background (though you can add a cron job to run rsync for you). The rsync utility works like the cp command in that files are copied. However, unlike the cp command, only files that are detected as newer than those in the destination are actually moved. This is useful because it makes the overall operation faster, and if you are doing this with a remote server, substantially improves bandwidth consumption after the first time you do this.
     
Loading...

Share This Page