Results 1 to 16 of 16
Thread: Alternative to backup?
-
04-17-2004, 11:02 PM #1Web Hosting Master
- Join Date
- Feb 2003
- Location
- Kuala Lumpur, Malaysia
- Posts
- 4,980
Alternative to backup?
Hi Guys,
Each of our servers has roughly 28GB of data for backup, its all good but its a pain in the a-s-s during backup period.
Server load spikes to 7-8 for 5+ hours, although there is not much of degradation in performance, my clients are always concerned of this.
Is there any way to do backup without having high load?
-
04-17-2004, 11:11 PM #2Web Hosting Evangelist
- Join Date
- Mar 2004
- Location
- Seattle, WA
- Posts
- 490
What do you use to do your backups? Have you tried using 'nice' on the backup script?
-
04-17-2004, 11:16 PM #3Web Hosting Master
- Join Date
- Feb 2003
- Location
- Kuala Lumpur, Malaysia
- Posts
- 4,980
It is cPanel automated backup. Is there any other ways to do that?
-
04-17-2004, 11:41 PM #4Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
Steven Ciaburri | Industry's Best Server Management - Rack911.com
Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance
-
04-17-2004, 11:50 PM #5Web Hosting Master
- Join Date
- Feb 2003
- Location
- Kuala Lumpur, Malaysia
- Posts
- 4,980
Does it work with account restoration?
-
04-17-2004, 11:56 PM #6Web Hosting Master
- Join Date
- Feb 2003
- Location
- Kuala Lumpur, Malaysia
- Posts
- 4,980
BTW, would incremental backup reduce load?
-
04-18-2004, 01:00 AM #7Web Hosting Master
- Join Date
- Apr 2001
- Location
- Palm Beach, FL
- Posts
- 1,097
Originally posted by UltraUnixNET
BTW, would incremental backup reduce load?
Incremental backups are when rsync checks the source and target files and if they are different, it backs it up. If it's the same (as 90%+ files will be), it doesn't do a thing. Instant super-speedy backups! The first backup will be harsh, but everything after that is pie.Alex Llera
Professional Server Management
FreeBSD|Linux|HSphere|Cpanel|Plesk
-
04-18-2004, 01:03 AM #8Web Hosting Master
- Join Date
- Feb 2003
- Location
- Kuala Lumpur, Malaysia
- Posts
- 4,980
So how would I restore the account? say without incremental, we do it by restorepkg, how would it work out if it isn't a .gz file?
-
04-18-2004, 01:11 AM #9Retired Moderator
- Join Date
- Jul 2002
- Location
- Kuwait
- Posts
- 10,620
using WHM or regular cp command
Bashar Al-Abdulhadi - KuwaitNET Internet Services Serving customers since 1997
Kuwait's First Webhosting and Domain Registration provider - an ICANN Accredited Registrar
Twitter: Bashar Al-Abdulhadi
-
04-18-2004, 01:12 AM #10Web Hosting Master
- Join Date
- Apr 2001
- Location
- Palm Beach, FL
- Posts
- 1,097
I can't see it being much different than how it normally does it. a .gz file is just a compressed file. The data is all the same and likely to be in the exact same configuration inside the file.
I'd head over to the CPanel forums and see what others have done.Alex Llera
Professional Server Management
FreeBSD|Linux|HSphere|Cpanel|Plesk
-
04-18-2004, 12:09 PM #11Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 1,269
i think WHM backups are crap
1) "do you want daily backups?" "oh, ok... but i'm going to save weekly and monthly too... and you can't disable this!"
unless you change the source as I done (and I'm guessing this script will be overwritten in the next cpanel update)
2) "do you want to save to FTP?" "so you can't save server restore, just accounts restore"
i'm thinking about making a script myself, but don't have time yet
or trying to use sysbk... anyone using it for cpanel servers here?
-
04-18-2004, 02:38 PM #12Web Hosting Master
- Join Date
- Feb 2003
- Location
- Kuala Lumpur, Malaysia
- Posts
- 4,980
Yes, I second that, find it absurd having weekly and monthly. Having them as option would be a great idea but its stupid to do it essentially.
-
04-18-2004, 09:35 PM #13Web Hosting Master
- Join Date
- May 2003
- Location
- Florida
- Posts
- 902
Lem0nHead
Yes I am using sysbk on my CPanel servers. It has been working fine so far. I haven't really ever had to do a restore, so can't say how that will go.
-
04-19-2004, 01:48 AM #14Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
Originally posted by Lem0nHead
i think WHM backups are crap
1) "do you want daily backups?" "oh, ok... but i'm going to save weekly and monthly too... and you can't disable this!"
Like us on Facebook to qualify for discounts!
http://www.sprintserve.net
Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
Services: | Managed Multiple Cores 64bit Servers | Server Management |
-
04-19-2004, 09:44 AM #15Web Hosting Master
- Join Date
- Feb 2004
- Posts
- 1,269
Originally posted by sprintserve
You can do it without changing the code (and hence no problem with Cpanel rewritting it) by simply chattr +i weekly and monthly backup directories.
I did that before, as you suggest in another thread, and it worked well.
But since I wanted to edit it to send me an E-Mail after the backup was done (because I prefer to backup it to SAMBA server manually, typing the password), and I came with the "weekly" and "monthly" thing in my front, I couldn't resist changing it
BTW, as requested on PM, I'll tell the way I changed the code, in case it interests to someone else.
I'm afraid to post the whole code here, since it's subject to cpanel license, so I'll say just the changes... (BACKUP BEFORE!)
where you have:
if ($CONF{'BACKUPINT'} eq "daily")
if (! -e "${basedir}/weekly" || isolderthen(6,"${basedir}/weekly"))
after you do that, type:
root@server01 [~]# perl -c /scripts/cpbackup
/scripts/cpbackup syntax OK
if you want to get an E-Mail after backup is complete, search for
sub isolderthen {
open(MAIL,"|/usr/sbin/sendmail -t");
print MAIL "To: root\n";
print MAIL "From: cPanel BACKUP <noreply\@noreply.com>\n";
print MAIL "Subject: Backup Complete\n\n";
print MAIL "The backup is complete";
close(MAIL);
1) you may need to change "/usr/sbin/sendmail" to your current sendmail location, although I guess this one will work for almost all RH distributions
If you're not sure where your sendmail is located, type:
root@server01 [~]# whereis sendmail
sendmail: /usr/sbin/sendmail /usr/lib/sendmail
example:
print MAIL "To: name\@isp.com\n";
-
04-19-2004, 10:13 AM #16Web Hosting Master
- Join Date
- Feb 2003
- Location
- Kuala Lumpur, Malaysia
- Posts
- 4,980
I shall try it out and let you know if it works