Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default cpbackup runs for > 8 hrs daily -- incremental mode

    I run cpbackup in incremental mode just doing daily/weekly backups.
    I find that this (incremental mode) runs for > 8 hrs and this is a pain. I always thought incremental mode is going to be less time consuming.

    Can anyone shed light on this. Not more than 2 GB out of 20 odd GB is changing ... so why should it take so long?

    TIA
    Anup

  2. #2
    Member
    Join Date
    Feb 2005
    Posts
    147

    Default

    does incremental mode check the files before or after they are tar'd?
    - Paul Shepperd
    4 years cpanel exp. 6 years linux exp. 8 years security exp.
    6 years corporate startup/small business exp.
    If I responded, and you want to IM me you can do so, not saying I will for sure have time to help, but my aim is public, thats what its there for. My email is: ME @ pshepperd.com
    " Life is short, make money, and have a good time, live every day to its fullest."

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    108

    Default

    Incremental check if the folder has been modified and if so.. it checks which files have been modified.. and the it backs them...

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    There is no compression in incremental mode.
    It just takes the changed file after previous backup so i thought it would /should have been faster than ftp backup. But no.... it runs and runs for hours and hours :/

    It is a nightmare.

    Thanks
    Anup

  5. #5
    cPanelBilly
    Guest

    Default

    IT uses the rsync command, so depending on how bigh all the files are it can take many many hours.

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    Quote Originally Posted by cPanelBilly
    IT uses the rsync command, so depending on how bigh all the files are it can take many many hours.
    Files are not big ... the only content changing are small email files and would not be more than 2GB max
    I have just always seen pkgacct running and hardly have i seen rsync command running while backups are in progress

    Thanks
    Anup

  7. #7
    Member
    Join Date
    Feb 2005
    Posts
    147

    Default

    If your connections are fast, and rsync is using archive then it shouldnt take that long.

    I didnt understand at first, but you mean you are just backing up one account like this? Not a whole server of accounts?
    - Paul Shepperd
    4 years cpanel exp. 6 years linux exp. 8 years security exp.
    6 years corporate startup/small business exp.
    If I responded, and you want to IM me you can do so, not saying I will for sure have time to help, but my aim is public, thats what its there for. My email is: ME @ pshepperd.com
    " Life is short, make money, and have a good time, live every day to its fullest."

  8. #8
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default

    It's entire server

    Anup

  9. #9
    Member
    Join Date
    Nov 2004
    Posts
    122

    Default

    I agree with all that anup123 says. The worst is when backups does not finish untill morning and then as traffic climbs, server eventually gets to a very high load and craches. I notice that there are 3 rsync processes running simultaneously.

    Actually most of the time incremental backup finishes in 2-3 hours. only some days it goes for more than 8 hours. That is strange.

    I was looking for a solution to stop backup at 7 in the morning if it is still running. I am not very good at shell scripting but have this gathered up to now:

    processes that need to be killed:

    root 17592 0.0 0.0 6720 544 ? SN 01:00 0:00 /usr/bin/perl /scripts/cpbackup

    and all occurences of rsync

    here are some possible ways to make a cron job at 7 AM, not sure which to use. I would appreciate help from someone more proficient with this:

    Code:
    kill `ps -ef | grep process | awk '{print $2}'` 
    
    or
    
    kill -9 `ps -aef | grep processes | grep -v grep | awk '{print $2|}'` 
    
    or
    
    'ps -aef | grep  <whatever> | awk '{print $1} | xargs kill -9' 
    
    or
    
    ps -ef | grep [p]rossess | xargs kill -9 
    
    or
    
    for i in `ps -ef |grep <process> |grep -v grep|awk '{print $2}'`
    do
    kill $i
    done
    Edit: I just thought that the long running rsync may occur when a daily backup is done and immediately after it fires the weekly backup?
    Last edited by panayot; 06-02-2005 at 02:43 PM.

Similar Threads & Tags
Similar threads

  1. Set incremental/compressed backup option per interval (daily/weekly/monthly)
    By allwebnow in forum Feature Requests for cPanel/WHM
    Replies: 3
    Last Post: 01-14-2010, 01:53 PM
  2. Server overload 1~2 hrs daily (regularly)
    By ptez in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-09-2006, 12:37 PM
  3. cpbackup -- incremental mode query
    By anup123 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-19-2005, 04:17 PM
  4. Backup -- Incremental Mode
    By anup123 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-26-2005, 11:54 PM
  5. Incremental CPBackup problem
    By web12 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-27-2003, 04:07 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube