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.

Anyone know how to stop backups once they started?

Discussion in 'General Discussion' started by DWHS.net, Jul 12, 2003.

  1. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    My /backup is full but cpanel is still trying to back stuff up.

    Is there a command to stop backups once they start?

    Thanks..

    -Charles

    cPanel.net Support Ticket Number:
     
  2. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    Can't you just kill the processes... :D

    Brenden

    cPanel.net Support Ticket Number:
     
  3. DWHS.net

    DWHS.net Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,569
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Ya, I tried that but it just rolled over to the next domain to be backed up.

    Since there was about 230 domains I just killed each process as it popped up. Tedius...

    I was hoping there was commend to stop cpanel from initiating the backup up process as whole after it's started.

    Probably something simple I'm missing but never the less it's fine now...

    Thanks

    cPanel.net Support Ticket Number:
     
  4. Fillos

    Fillos Active Member

    Joined:
    Mar 24, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Northern Ontario
    For the record, cause I came looking myself, you can stop the CPanel backup process by logging in via SSH, and doing a
    lsof |grep cpbackup
    You'll get some feedback in the running process like this:
    cpbackup 4977 /usr/bin/perl
    cpbackup 4977 /lib/tls/libc-2.3.2.so
    cpbackup 4977 /lib/libnss_files-2.3.2.so
    cpbackup 4977 /lib/ld-2.3.2.so
    cpbackup 4977 /usr/lib/perl5/5.8.1/i686-linux/auto/Socket/Socket.so
    cpbackup 4977 /lib/libdl-2.3.2.so

    As you can see, the PID for the process dominates the result. Now you can do a:
    kill -9 <pid> as in
    kill -9 4977
    then just do a "top" and kill the latest backup PID

    Hope that helps someone,

    Mike
     
  5. Host4u2

    Host4u2 Well-Known Member

    Joined:
    Mar 24, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    I've stopped the backup (initiated by cpupdate) using the following line via ssh: " service cpanel stop;service cpanel start " (no quotes).
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Old thread, but another way to stop the backup would be to unmount the backup partition, if it is a seperate partition.
     
  7. racomnet

    racomnet BANNED

    Joined:
    Oct 6, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    hy

    I stop the process with kill
    root 24698 0.0 0.0 1496 380 ? SN 17:18 0:00 /usr/local/cpanel/bin/cpuwatch 1.0 /scripts/pkgacct xxx /backup/cpbackup/daily backup
    root 24699 0.0 0.5 4376 2588 ? TN 17:18 0:00 pkgacct - xxx
    and I change option for backup. I have with compressed, and now I want to be incremental. But when I kill the process it seem that pkgacct go to the next domain and it still compresing :( .
    How can I restart ? withowt to restart the serverr , wich I think would not solve the problem :(
     
  8. Host4u2

    Host4u2 Well-Known Member

    Joined:
    Mar 24, 2002
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Via SSH, have you tried "service cpanel stop;service cpanel start" (no quotes) ?
     
  9. racomnet

    racomnet BANNED

    Joined:
    Oct 6, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    0
    hy

    Yes I tried that already
     
  10. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    fyiL Just tried this myslf. Didn't work. Or rather, it did work in the sense that cpanel services were successfully stopped and restarted, but the backups are still running.
     
  11. spaceman

    spaceman Well-Known Member

    Joined:
    Mar 25, 2002
    Messages:
    481
    Likes Received:
    0
    Trophy Points:
    16
    Apparently this nails it too:

    killall -9 cpbackup
    killall -9 tar
    killall -9 pkgacct
    killall -9 gunzip2
     
Loading...

Share This Page