ispCP - Board - Support
Howto disable Daily Backups (for certain Users) - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: Howto disable Daily Backups (for certain Users) (/thread-2433.html)

Pages: 1 2 3


Howto disable Daily Backups (for certain Users) - Kwik - 02-14-2008 09:00 AM

How can I disable Daily Backups? How for certain users only?

I searched for "Daily Backups" and get a result:

http://www.isp-control.net/forum/showthread.php?tid=524

But when I click on that link it tells me that the topic is not available. This happens a lot in this forum. YFI.


RE: Howto disable Daily Backups (for certain Users) - joximu - 02-14-2008 09:08 AM

The missing Thread: this seems to happen with some older posts/threads - there was a data loss somewhere in summer

Since there is no gui to disable backups for certain users you may take the hard way: try renaming the backup folder for the no-backup users. I hope this should throw an error in the tar command and the backup is skipped :-)

Well, not great but it's maybe a solution...

/J


RE: Howto disable Daily Backups (for certain Users) - Kwik - 02-14-2008 07:37 PM

Thanks, it kinda works, but in the /var/www/virtual/domain.tld directory will be a log file left and he starts doing the backup which uses a lot of cpu time and temporary space. So another solution would be appreciated Smile


RE: Howto disable Daily Backups (for certain Users) - joximu - 02-15-2008 08:18 AM

of course - a better way would be glad :-)

if you use gzip for backup instead of bzip2 then the cpu consumption should be far less

/J


RE: Howto disable Daily Backups (for certain Users) - Kwik - 02-16-2008 08:23 PM

Is there a way to disable backups genereally? So that he wont start doing it for every client?


RE: Howto disable Daily Backups (for certain Users) - Kwik - 02-16-2008 08:32 PM

Oh, I was wrong. It does not work. This time he created a directory called "backup" and put the backup in there. Lets see what will happen when I put the directory into "read-only" mode...


RE: Howto disable Daily Backups (for certain Users) - joximu - 02-16-2008 08:36 PM

You can of course disable the customer backup at all:

comment the right line in /etc/cron.d/ispcp and restart the dron daemon.

For a selective backup you have to add some code in the backup script itself.

/J


RE: Howto disable Daily Backups (for certain Users) - BioALIEN - 02-17-2008 07:56 AM

I guess this is a much needed feature for after v1.0 is out. The ability to disable backup per user.


RE: Howto disable Daily Backups (for certain Users) - Kwik - 02-19-2008 07:00 PM

I changed /etc/cron.d/ispcp to

Quote:# Backup
#@daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
#@daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

Then I did:

Quote:Debian-40-etch-32-LAMP:~# ps x | grep ispcp
5829 ? S 0:00 /var/www/ispcp/daemon/ispcp_daemon -p /var/run/ispcp-daemon.pid
20605 pts/0 R+ 0:00 grep ispcp
Debian-40-etch-32-LAMP:~# kill 5829
Debian-40-etch-32-LAMP:~# ps x | grep ispcp
20610 pts/0 R+ 0:00 grep ispcp
Debian-40-etch-32-LAMP:~# /var/www/ispcp/daemon/ispcp_daemon -p /var/run/ispcp-daemon.pid
Debian-40-etch-32-LAMP:~# ps x | grep ispcp
20613 ? S 0:00 /var/www/ispcp/daemon/ispcp_daemon -p /var/run/ispcp-daemon.pid
20615 pts/0 R+ 0:00 grep ispcp
Debian-40-etch-32-LAMP:~# /etc/init.d/ispcp_daemon stop
Stopping ispCP GUI-Backend communication Daemon: ispcp_daemon.
Debian-40-etch-32-LAMP:~# /etc/init.d/ispcp_daemon start
Starting ispCP GUI-Backend communication Daemon: ispcp_daemon.
Debian-40-etch-32-LAMP:~#

He is still making backups which causing my system to stop working because there is not enough space left. Sad

What am i missing here?


RE: Howto disable Daily Backups (for certain Users) - BeNe - 02-19-2008 07:03 PM

Your Cron looks ok so!
But why did yo stop the ispCP Daemon ??

Greez BeNe