Current time: 11-16-2024, 05:29 PM Hello There, Guest! (LoginRegister)


Post Reply 
Howto disable Daily Backups (for certain Users)
Author Message
Kwik Offline
Junior Member
*

Posts: 41
Joined: May 2007
Reputation: 0
Post: #1
Howto disable Daily Backups (for certain Users)
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.
02-14-2008 09:00 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Howto disable Daily Backups (for certain Users)
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
02-14-2008 09:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Kwik Offline
Junior Member
*

Posts: 41
Joined: May 2007
Reputation: 0
Post: #3
RE: Howto disable Daily Backups (for certain Users)
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
02-14-2008 07:37 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Howto disable Daily Backups (for certain Users)
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
02-15-2008 08:18 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Kwik Offline
Junior Member
*

Posts: 41
Joined: May 2007
Reputation: 0
Post: #5
RE: Howto disable Daily Backups (for certain Users)
Is there a way to disable backups genereally? So that he wont start doing it for every client?
02-16-2008 08:23 PM
Find all posts by this user Quote this message in a reply
Kwik Offline
Junior Member
*

Posts: 41
Joined: May 2007
Reputation: 0
Post: #6
RE: Howto disable Daily Backups (for certain Users)
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...
(This post was last modified: 02-16-2008 08:44 PM by Kwik.)
02-16-2008 08:32 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: Howto disable Daily Backups (for certain Users)
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
02-16-2008 08:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BioALIEN Offline
Public Relations Officer
*****
Dev Team

Posts: 620
Joined: Feb 2007
Reputation: 5
Post: #8
RE: Howto disable Daily Backups (for certain Users)
I guess this is a much needed feature for after v1.0 is out. The ability to disable backup per user.
02-17-2008 07:56 AM
Find all posts by this user Quote this message in a reply
Kwik Offline
Junior Member
*

Posts: 41
Joined: May 2007
Reputation: 0
Post: #9
RE: Howto disable Daily Backups (for certain Users)
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?
02-19-2008 07:00 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: Howto disable Daily Backups (for certain Users)
Your Cron looks ok so!
But why did yo stop the ispCP Daemon ??

Greez BeNe
02-19-2008 07:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)