Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2007
    Posts
    21

    Default 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?

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

  3. #3
    d_t
    d_t is offline
    Member
    Join Date
    Sep 2003
    Location
    Bucharest
    Posts
    239

    Default

    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
    Joomla 2.x added as cPanel Addon (free)

  4. #4
    Member
    Join Date
    Oct 2007
    Posts
    21

    Default

    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?

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

  6. #6
    d_t
    d_t is offline
    Member
    Join Date
    Sep 2003
    Location
    Bucharest
    Posts
    239

    Default

    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
    Joomla 2.x added as cPanel Addon (free)

Similar Threads & Tags
Similar threads

  1. best backup method
    By wgalafassijr in forum Data Protection
    Replies: 3
    Last Post: 01-12-2011, 07:43 PM
  2. Am I wasting space with my backup method?
    By crazyfish in forum Data Protection
    Replies: 5
    Last Post: 07-09-2009, 03:08 PM
  3. Different backup method?
    By jhyland87 in forum Data Protection
    Replies: 9
    Last Post: 06-18-2009, 10:37 AM
  4. Bad backup method !!!
    By Lion4H in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-28-2005, 08:21 AM
  5. Backup method has changed ?
    By pfiev in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-28-2004, 08:57 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube