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.

A noob with a backup question

Discussion in 'Data Protection' started by fazexx, Sep 8, 2009.

  1. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    How would I go about setting up a backup job or something that can backup the webroots of websites to a Windows server? FTP is preferred, but if you can suggest another method, I'm all ears. I'd rather not do UNC for security reasons, since I'd have to open that port.

    I also have WHM, maybe that's an easier method, if it's included there? This is on a dedicated server, and again, I just need a method to back up the web roots of websites to a Windows server.

    I assume this would be a cron job with some sort of scp command?
     
    #1 fazexx, Sep 8, 2009
    Last edited: Sep 9, 2009
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you taken a peek at your Configure Backup page in WHM? You'll find it under the Backup section of the left menu.

    There, you should be able to setup backups to go to an FTP server.
     
  3. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    I don't see anything regarding backing up the home directory for a website. Is this just implied in the backup process?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, this will backup all user accounts. At bottom of that page you'll see a button to select which users get backed up or not.
     
  5. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    Not seeing where to specify time though, just has days.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In your WHM, find the option on left menu for "Manage Plugins", there find the one called cronconfig, tick install and keep updated. Once you've done that, at bottom of left menu again (you may want to refresh whole page) find this item: Configure cPanel Cron Times.

    There you can change the time on the cronjob that runs cpbackup.

    That should do it. :)
     
  7. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    Well I set it up, and it never ran. I checked the destination server FTP logs, never even had a connection from this server. What should I check? I did everything you mentioned.
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Your backup settings is set to run every night? Your FTP connection settings, are you sure you can connect to the FTP on the windows box with the details provided?
     
  9. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    There's nothing from the cpanel server hitting the backup server, filezilla has nothing from it.
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  11. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    Windows servers and networking are my fortee. It's the cpanel box.
     
  12. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If your settings are correct, push the backup to run:

    /scripts/cpbackup --force
     
  13. cPanelDavidL

    cPanelDavidL Member
    Staff Member

    Joined:
    Nov 12, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    also check this location on the cPanel machine:
    Code:
    [root@serv]-[/usr/local/cpanel/logs/cpbackup]#ls -la
    total 1196
    drwx------ 2 root root   4096 Sep 12 01:00 ./
    drwxr-xr-x 4 root root   4096 Sep 13 07:43 ../
    -rw------- 1 root root 122058 Sep  2 01:02 1251871202.log
    -rw------- 1 root root 122063 Sep  3 01:05 1251957604.log
    -rw------- 1 root root 123386 Sep  5 01:06 1252130404.log
    -rw------- 1 root root 123351 Sep  6 01:03 1252216802.log
    -rw------- 1 root root 123391 Sep  7 01:05 1252303203.log
    -rw------- 1 root root 123386 Sep  8 01:05 1252389605.log
    -rw------- 1 root root 123333 Sep  9 01:05 1252476004.log
    -rw------- 1 root root 123371 Sep 10 01:05 1252562405.log
    -rw------- 1 root root 123406 Sep 12 01:06 1252735204.log
    [root@serv]-[/usr/local/cpanel/logs/cpbackup]#
    
    These logs should give you more of an idea of what is happening.
    :cool:
     
  14. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    Got it to run... One last question... I'm used to using things like CommVault and Veritas Netbackup, and you can restore from single days' incremental backups. Is this possible with WHM? Say someone overwrote the wrong file, or something was corrupted... and they need a backup from say... two days ago. WHM overwrites the /daily/*.* files, so this doesn't seem possible to me...
     
  15. fazexx

    fazexx Member

    Joined:
    Sep 8, 2009
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Eastern Shore, MD, USA
    Anything for this?
     
  16. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:


    cPanel's backup system is more for security and disaster recovery, IMO. You could of course, mount the backup drive, grab a backup and get into it yourself if you had to and WHM can be configured to grab daily, weekly and monthly.

    There are 3rd party options for this sort of thing such as r1soft, which I believe offers what you seek. High Performance Backup, Restore, and Disaster Recovery Software for Windows and Linux Servers - It's Righteous!*::*R1Soft
     
Loading...

Share This Page