#1 (permalink)  
Old 07-08-2009, 10:26 PM
Registered User
 
Join Date: Oct 2007
Posts: 11
crazyfish is on a distinguished road
Am I wasting space with my backup method?

I've been wondering if I am using my VPS's disk space efficiently. Currently I configured the WHM backup for daily incremental backups of the accounts, account config files and database to a separate backup folder then I use rsync to copy them to an offsite server.

Is this the best way to use my limited disk space? I was thinking that maybe I should just backup the databases to the backup folder and just use rsync to copy the whole /home folder.

Any thoughts or opinions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 12:49 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by crazyfish View Post
I've been wondering if I am using my VPS's disk space efficiently. Currently I configured the WHM backup for daily incremental backups of the accounts, account config files and database to a separate backup folder then I use rsync to copy them to an offsite server.

Is this the best way to use my limited disk space? I was thinking that maybe I should just backup the databases to the backup folder and just use rsync to copy the whole /home folder.

Any thoughts or opinions?
Incremental backups are inefficient on disk space in the sense that when a file is removed from an account, it is never removed from the incremental backup. To avoid this issue, you could use regular backups but that would lead to more disk I/O (as all data would always be backed up, not just what's changed). Of course, I'm limiting my discussion to cPanel/WHM functionality.

I'm sure there are custom setups that others can recommend.
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-09-2009, 03:16 PM
d_t d_t is offline
Registered User
 
Join Date: Sep 2003
Location: Bucharest
Posts: 163
d_t is on a distinguished road
There's no waste of space when it cames to backup It can be done on (remote) SATA disks that are large and cheap.

Quote:
Originally Posted by cPanelDavidG View Post
when a file is removed from an account, it is never removed from the incremental backup
That looks like a bug to me.. rsync know how to remove files with --delete
If is not a bug, maybe you can add a "--delete" option for incremental backups in WHM.

It is possible to create tar.gz backups from cPanel without public_html and rsync the rest. First step can be done by adding public_html in cpbackup-exclude.conf file in each user homedir (but this will also disable backup from user cpanel).

There's no option in cPanel to create both incremental (daily for example) and tar.gz (every other day).
__________________
Joomla & Magento cPAddons
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-09-2009, 03:29 PM
Registered User
 
Join Date: Oct 2007
Posts: 11
crazyfish is on a distinguished road
I have a huge cheap backup server, but my VPS is starting to get full since i basically have two copies of each user file. I'm a web designer and only host my clients so I want to reduce the amount of disk space used on my VPS since it's more expensive then a backup server.

That's why I was thinking I should do a database dump and only rsync /home instead of running the backup which copies the same files to /backup then rsync the file to my backup server.

Does that make sense?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-09-2009, 03:31 PM
cPanelDavidG's Avatar
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 7,995
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by d_t View Post
...
That looks like a bug to me.. rsync know how to remove files with --delete
If is not a bug, maybe you can add a "--delete" option for incremental backups in WHM...
On one hand, if you delete a file accidentally, it's always a relief to be able to grab it from a backup. On the other hand, if you remove an index.html and replace it with an index.php later on then restore the incremental backup that has both index.html and index.php... that can be frustrating (in addition to a waste of disk space).

As a result, the current feature request for this has this as an optional setting: Bug 7665 - cpbackup incremental option to remove old content
__________________
Want our technical analysts to login to your server to assist you? You can contact our technical analysts at: http://tickets.cPanel.net/submit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-09-2009, 04:08 PM
d_t d_t is offline
Registered User
 
Join Date: Sep 2003
Location: Bucharest
Posts: 163
d_t is on a distinguished road
Cool, is exactly what I need. I voted for that feature request. Thanks, David!

In my opinion, backups should be as close as files from user account, no matter if user makes mistakes and accidentally remove files. I curently use incremental backups on some servers + tar in postcpbackup + transfer on backup server using scp. This way I can keep several backups on remote server with lower I/O on main server.
__________________
Joomla & Magento cPAddons
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
backup , rsync

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different backup method? jhyland87 cPanel and WHM Data Protection 9 06-18-2009 11:37 AM
Bad backup method !!! Lion4H cPanel and WHM Discussions 4 09-28-2005 09:21 AM
Preferred Backup Method neonix cPanel and WHM Discussions 5 08-03-2005 01:47 PM
Complete Backup method ? SecondSight cPanel Newbies 13 09-22-2004 01:31 AM
Backup method has changed ? pfiev cPanel and WHM Discussions 0 06-28-2004 09:57 PM


All times are GMT -5. The time now is 08:45 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc