Post Reply  Post Thread 
Pages (3): [1] 2 3 Next >
Howto disable Daily Backups (for certain Users)
Author Message
Kwik Offline
Junior Member
*

Kwik
Junior Member
*


Posts: 33
Group: Registered
Joined: May 2007
Status: Offline
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
Moderator
*****

joximu
Moderator
*****


Posts: 3,603
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
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

2008-08-05 ispCP RC6 released!!!
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
*

Kwik
Junior Member
*


Posts: 33
Group: Registered
Joined: May 2007
Status: Offline
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
Moderator
*****

joximu
Moderator
*****


Posts: 3,603
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
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

2008-08-05 ispCP RC6 released!!!
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
*

Kwik
Junior Member
*


Posts: 33
Group: Registered
Joined: May 2007
Status: Offline
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
*

Kwik
Junior Member
*


Posts: 33
Group: Registered
Joined: May 2007
Status: Offline
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
Moderator
*****

joximu
Moderator
*****


Posts: 3,603
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 47
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

2008-08-05 ispCP RC6 released!!!
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
Junior Member
**
Graph Team

BioALIEN
Junior Member
**
Graph Team


Posts: 234
Group: Graph Team
Joined: Feb 2007
Status: Offline
Reputation: 0
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.

BioALIEN
OS: Debian 4.0 Etch
ispCP Build: RC3 r953 - 28.12.07
Mods: AWStats dynamic
02-17-2008 07:56 AM
Find all posts by this user Quote this message in a reply
Kwik Offline
Junior Member
*

Kwik
Junior Member
*


Posts: 33
Group: Registered
Joined: May 2007
Status: Offline
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
*****

BeNe
Moderator
*****


Posts: 2,904
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 41
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

[Image: ispcpsw.png]
Ein Betriebssystem ist immer nur so gut und sicher wie der Administrator der es verwaltet.
Wie gut der Administrator jedoch seine Fähigkeiten ausspielen kann, legt das Betriebssystem fest.
-> Linux rulZ!
02-19-2008 07:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pages (3): [1] 2 3 Next >
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this thread |

Forum Jump:

| All rights reserved : isp-control.net |