Anyone know how to stop backups once they started?

tAzMaNiAc

Well-Known Member
Feb 16, 2003
558
0
166
Sachse, TX
Originally posted by DWHS.net
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:
Can't you just kill the processes... :D

Brenden

cPanel.net Support Ticket Number:
 

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,723
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
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:
 

Fillos

Active Member
Mar 24, 2003
32
1
156
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
 
  • Like
Reactions: yunques

Host4u2

Well-Known Member
Mar 24, 2002
247
0
316
I've stopped the backup (initiated by cpupdate) using the following line via ssh: " service cpanel stop;service cpanel start " (no quotes).
 

racomnet

BANNED
Oct 6, 2004
68
0
156
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 :(
 

spaceman

Well-Known Member
Mar 25, 2002
517
8
318
Host4u2 said:
Via SSH, have you tried "service cpanel stop;service cpanel start" (no quotes) ?
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.
 

cEMa

Member
Mar 15, 2016
10
5
53
TN
cPanel Access Level
DataCenter Provider
Not a fan of bumping old threads, but it's top of the search engine recommendations..

None of the aforementioned solutions worked for me when running Cloudlinux 7.8 w/ cPanel v96.0.11. It would only kill an individual account, then begin processing the next account in the queue. With 400+ accounts, that's not a realistic solution. Perhaps cPanel renamed the parent processes(s) for queuing each account.

For me, this will stop all cpanel backups with a single command:

kill -9 $(pgrep -f 'pkgacct -') && kill -9 $(pgrep -f 'cpbackup_transporter') && kill -9 $(pgrep -f '/usr/local/cpanel/bin/backup')
 

cagsmith

Member
Jul 21, 2021
12
8
3
Sweden
cPanel Access Level
Root Administrator
Not a fan of bumping old threads, but it's top of the search engine recommendations..

None of the aforementioned solutions worked for me when running Cloudlinux 7.8 w/ cPanel v96.0.11. It would only kill an individual account, then begin processing the next account in the queue. With 400+ accounts, that's not a realistic solution. Perhaps cPanel renamed the parent processes(s) for queuing each account.

For me, this will stop all cpanel backups with a single command:

kill -9 $(pgrep -f 'pkgacct -') && kill -9 $(pgrep -f 'cpbackup_transporter') && kill -9 $(pgrep -f '/usr/local/cpanel/bin/backup')
I know this is old - the original thread even older, but I had an instance today where the backup task suddenly kicked off at peak time after several hours of silence following a MySQL upgrade this morning (backups were running this morning, the upgrade interrupted them... it was expected that they would simply fail, not restart all over several hours later but that's another topic) and this worked perfectly. I'm not certain why cPRex says he wouldn't expect them to work... despite any changes to the backup services, at least pkgacct and cpbackup_transporter have always been in play so this seems solid advice.
 
  • Like
Reactions: cPanelAnthony