hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Alternative to backup?
Reply

Forum Jump

Alternative to backup?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,973

Alternative to backup?


Hi Guys,

Each of our servers has roughly 28GB of data for backup, it’s all good but it’s 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?

__________________
Whei Wong
OnApp - www.onapp.com
Cloud and CDN software for the hosters!



Sponsored Links
  #2  
Old
Premium Member
 
Join Date: Mar 2004
Location: Mountain View, CA
Posts: 490
What do you use to do your backups? Have you tried using 'nice' on the backup script?

__________________
SVN Hosting
Git Hosting

  #3  
Old
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,973
It is cPanel automated backup. Is there any other ways to do that?

__________________
Whei Wong
OnApp - www.onapp.com
Cloud and CDN software for the hosters!

Sponsored Links
  #4  
Old
Problem Solver
 
Join Date: Mar 2003
Location: California USA
Posts: 13,168

__________________
Steven Ciaburri | Proactive Linux Server Management - Rack911.com
System Administration Extraordinaire | Follow us on twitter:@Rack911Labs
Managed Servers (AS62710), Server Management, and Security Auditing.
www.HostingSecList.com - Security notices for the hosting community.

  #5  
Old
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,973
Does it work with account restoration?

__________________
Whei Wong
OnApp - www.onapp.com
Cloud and CDN software for the hosters!

  #6  
Old
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,973
BTW, would incremental backup reduce load?

__________________
Whei Wong
OnApp - www.onapp.com
Cloud and CDN software for the hosters!

  #7  
Old
Web Hosting Master
 
Join Date: Apr 2001
Location: Palm Beach, FL
Posts: 1,095
Quote:
Originally posted by UltraUnixNET
BTW, would incremental backup reduce load?
Very much so. CPanel uses rsync and automatically nices them. That is why your customers don't really notice.

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

  #8  
Old
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,973
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?

__________________
Whei Wong
OnApp - www.onapp.com
Cloud and CDN software for the hosters!

  #9  
Old
Retired Moderator
 
Join Date: Jul 2002
Location: Kuwait
Posts: 10,572
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

  #10  
Old
Web Hosting Master
 
Join Date: Apr 2001
Location: Palm Beach, FL
Posts: 1,095
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

  #11  
Old
Web Hosting Master
 
Join Date: Feb 2004
Posts: 1,226
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?

  #12  
Old
Web Hosting Master
 
Join Date: Feb 2003
Location: Kuala Lumpur, Malaysia
Posts: 4,973
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.

__________________
Whei Wong
OnApp - www.onapp.com
Cloud and CDN software for the hosters!

  #13  
Old
Web Hosting Master
 
Join Date: May 2003
Location: Florida
Posts: 877
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.

  #14  
Old
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,009
Quote:
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!"
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.

__________________
••• 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 | •••

  #15  
Old
Web Hosting Master
 
Join Date: Feb 2004
Posts: 1,226
Quote:
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.
yep

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:
Quote:
if ($CONF{'BACKUPINT'} eq "daily")
go 11 lines down and you will see:
Quote:
if (! -e "${basedir}/weekly" || isolderthen(6,"${basedir}/weekly"))
start commenting there (put a "#" [no quotes] in the start) and comment 15 more lines (you should have 16 "#")

after you do that, type:

Quote:
root@server01 [~]# perl -c /scripts/cpbackup
/scripts/cpbackup syntax OK
and hope to see syntax OK... if you don't see it, check if you commented the correct lines.


if you want to get an E-Mail after backup is complete, search for
Quote:
sub isolderthen {
BEFORE that, add:
Quote:
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);
a few notes about this code:
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:

Quote:
root@server01 [~]# whereis sendmail
sendmail: /usr/sbin/sendmail /usr/lib/sendmail
2) If you want to change the "To" field to some other E-Mail, don't use "@", use "\@" (like is being done at the "From" field)...
example:
Quote:
print MAIL "To: name\@isp.com\n";

Reply

Related posts from TheWhir.com
Title Type Date Posted
Druva Provides Cloud-First Backup Solution That Combines Dedup and AWS Storage Web Hosting News 2014-10-20 00:43:41
Dell to Shut Down Consumer-Focused Cloud Storage Service DellData Safe Web Hosting News 2014-06-13 11:58:00
Symantec to Discontinue Backup Exec.Cloud; Customers Presented with Next-Step Options Web Hosting News 2013-12-03 14:49:46
Malwarebytes Launches Data Scan-and-Backup Service Web Hosting News 2013-05-07 14:51:03
Sterling Data Storage Launches Three Cloud Backup Services Web Hosting News 2013-01-14 13:39:31


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?