Alternative backups for cPanel server

Alternative backups for cPanel server Data security has always been a headache for us. Unpredictable loss of data will mess up most of the things related to our business, educational works, personal works etc… Data loss can occur due to buggy software, data corruption, hardware failure, malicious hacking, user error etc… So taking frequent backup … Read more

Remove old backups from rdiff-backup backup point – rdiff backup remove old increments

Remove old backups from rdiff
Importance of Backups in Hosting Industry

In the hosting industry, sudden failure of a hard disk can cause sleepless nights for server owners and can cause a bad reputation company as well. Also having proper remote backups is an added advantage to the customers as well and can attract some customers as well due to this. Rdiff-backup is one such tool which is having great features that every hosting owner will wish to have. 

What is Rdiff-backup

Rdiff-backup is a powerful remote backup tool that is based on python.

Rdiff-backup backs up one directory to another possibly over the network. The target directory will have a copy of the source directory but extra reverse diffs of that directory are stored in a subdirectory which will help us to recover files from long ago. In this tool, they have combined the features of mirroring and incremental backups. 

Rdiff-backup preserves subdirectories, hard links, uid/gid ownership (provided this is running as root), resource forks, modification times, permissions, etc which makes this a perfect tool for backups 

In this blog, we mainly discuss only the removal of old backups. 

How to remove old backups from rdiff-backup properly 

To remove old backups from rdiff-backup ( so-called increments ), you can use “–remove-older-than” option of rdiff-backup command. You should have to specify the “time from which” value as well along with that switch. The rdiff-backup tool provides the flexibility to define that time_spec value in years, months, weeks, days, hours, minutes, and seconds. Each representation is given below.

To Remove backups older than one year, use the below 

–remove-older-than 1Y 

To Remove backups older than one month, use the below 

–remove-older-than 1M 

To Remove backups older than one week, use the below 

–remove-older-than 1W

To Remove backups older than one hour, use the below 

–remove-older-than 1h 

To Remove backups older than one minute, use the below 

–remove-older-than 1m 

To Remove backups older than one second, use the below 

–remove-older-than 1s 

The entire command to remove backups ( increments ) should look like following

Read more

R1Soft CDP Error While restoring : Connection refused

Moslty this is caused due to buagent not running. Even if we tried to restart buagent,it will not start and status will be showing “buagent (no pid file) not running”

Check /var/log/messages to see whether kernel module is missing or not. If it is showing any missing kernel modules, you can install kernel modules by simply running  r1soft-cki in the command prompt

# /etc/init.d/buagent restart

# /etc/init.d/buagent status
/etc/init.d/buagent status: buagent (no pid file) not running

Read more