1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to create backup?

Discussion in 'General Discussion' started by septi, Jan 1, 2013.

  1. septi

    septi Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    I know how to set up back up and get that made at the end of every day. But what about if I want to back up data right now?

    Also I must have set up the back up incorrectly because no back up is being made.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    12,123
    Likes Received:
    33
    Trophy Points:
    48
    Location:
    Pennsylvania
  3. cPanelJared

    cPanelJared cPanel Staff
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    Houston, TX
    Make sure that you have Backup Accounts enabled in Home » Backup » Configure Backup, or your accounts will not be backed up. This is explained in the documentation Infopro linked to, but frequently overlooked.

    You can start a backup at any time by running this command as root:

    Code:
    # /scripts/cpbackup --force
    If you install the cronconfig plugin, in Home » cPanel » Manage Plugins, then log out of the WebHost Manager and log back in, you will see a new menu item: Home » Plugins » Configure cPanel Cron Times. This will let you set the time of day that the cPanel backup system runs. Most administrators choose to run it late at night, because it can generate some server load.
     
  4. septi

    septi Member

    Joined:
    Dec 27, 2012
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    I think I did it right the first time.

    I got files like:
    Code:
    hostgrea.tar.gz
    newgames.tar.gz
    which like cpmove files can restore the whole account.

    However, now if I run /scripts/cpbackup --force the back up finish so quickly and all I see in the directory is
    Code:
    root@host [/backup/cpbackup/weekly/files]# ls -la
    total 404
    drwx------ 2 root root   4096 Jan  4 04:03 ./
    drwx--x--x 4 root root   4096 Jan  4 04:04 ../
    -rw-r----- 1 root root     39 Jan  3 20:20 _etc_digestshadow.gz
    -rw-r--r-- 1 root root  13137 Jan  3 01:28 _etc_exim.conf.gz
    -rw-r--r-- 1 root root     97 Jan  3 01:28 _etc_exim.conf.localopts.gz
    -rw-r--r-- 1 root root    448 Jan  3 03:29 _etc_fstab.gz
    -rw-r--r-- 1 root root    607 Jan  4 00:16 _etc_group.gz
    -rw------- 1 root root 129036 Jan  4 01:18 _etc_httpd_conf_httpd.conf.gz
    -rw-r--r-- 1 root root     29 Jan  3 01:27 _etc_ips.gz
    -rw-r----- 1 root root  25552 Jan  4 01:13 _etc_localdomains.gz
    -rw-r--r-- 1 root root     65 Jan  3 01:10 _etc_my.cnf.gz
    -rw-r--r-- 1 root root  31829 Jan  4 01:13 _etc_named.conf.gz
    -rw-r--r-- 1 root root    935 Jan  4 00:16 _etc_passwd.gz
    -rw-r--r-- 1 root root   4317 Jan  3 01:11 _etc_pure-ftpd.conf.gz
    -rw------- 1 root root    183 Jan  4 01:18 _etc_quota.conf.gz
    -rw-r----- 1 root root     39 Jan  3 20:20 _etc_remotedomains.gz
    -rw-r----- 1 root root    292 Jan  3 01:11 _etc_rndc.conf.gz
    -rw-r----- 1 root root     37 Jan  3 20:20 _etc_secondarymx.gz
    --w------- 1 root root    923 Jan  4 01:18 _etc_shadow.gz
    -rw-r--r-- 1 root root    234 Jan  3 03:24 _etc_wwwacct.conf.gz
    -rw------- 1 root root     69 Jan  3 01:11 _root_.my.cnf.gz
    -rw------- 1 root root 129043 Jan  4 01:18 _usr_local_apache_conf_httpd.conf.gz
    
    The log says:
    Code:
    [cpbackup] Started at Fri Jan  4 04:03:54 2013
    [cpbackup] Setting I/O priority to reduce system load: best-effort: prio 3
    [cpbackup] The following backups will be updated: weekly
    [cpbackup] Running dir & file backup with target : /backup/cpbackup/weekly
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from hard link targets
    /bin/gtar: /var/cpanel/dnsadmin/sock: socket ignored
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from hard link targets
    [cpbackup] Running account backup with target : /backup/cpbackup/weekly
    [cpbackup] Completed at Fri Jan  4 04:04:15 2013
    Notification => teg##@te$$$$$$$$om via EMAIL [level => 2]
     
  5. cPanelJared

    cPanelJared cPanel Staff
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    12
    Trophy Points:
    38
    Location:
    Houston, TX
    It looks like you have incremental backups enabled. Incremental backups only back up what has changed since an initial backup. If nothing has changed in an account, the process will finish very quickly.
     

Share This Page