Skip to content

Slbackup a great wrapper for rdiff-backup

2008 October 16
by Philippe Delodder

Slbackup is a framework for
rdiff-backup to make it easy to set up a backup solution. The clients
and the host storing the backups can either be the localhost or an
external host reachable via a SSH connection (using SSH keys). There is
also a Webmin module.

To install it on a deb-based-system:

apt-get install slbackup

The configuration file can be found here:

/etc/slbackup/slbackup.conf

There is an default configuration available and I will do a litle explaining about the config file. Default:

<client>
<localhost>
location /etc
location /home
location /var/backups
keep 185
user root
address localhost
type local
</localhost>
</client>
server_user root
server_destdir /var/lib/slbackup
server_type local
server_address localhost

A few words off explaining about the config file. It’s xml based,
you can add multiple clients to the config file. Explanation of the
example config:

Client options:

  • <client></client>: between this tag all the clients must be entered;
  • <localhost></localhost>: definition of the
    workstation/server to backup, localhost can be changed to what ever the
    name of the workstation/server is.
  • location: The dir you want to backup
  • keep: the number of days you want to keep the backup UPDATE: Use 0 if you do not want any old backups to be deleted
  • user: the user you would like to use to perform the backup with
  • address: if type is local you use localhost other wise use the ip or the dns of the workstation/server to backup
      • type: is either local or remote

Server options:

  • server_user: The user localy used to perform the backup actions with
  • server_destdir: Where the overall backup for is lcoated
  • server_type: if the server is local or remote
  • server_address: if type is local you use localhost other wise use
    the ip or the dns of the workstation/server to store the backup

The is in short explained how you can use the config file. There are also other option that can be used:

  • exclude: is to exclude a folder you don’t want to backup for instance /home/music
  • exclude_regexp: can be used to exclude all files with an extension like an iso for example: *.iso

Note:

  • If you put remote as type you have to install rdiff-backup on the remote system too.
  • Run it as an day to day task you add it to your crontab :
    # cron job for Skolelinux Backup (once A day)
    00 01 * * * root if [ -x /usr/share/slbackup/slbackup-cron -a -f
    /etc/slbackup/slbackup.conf ]; then /usr/share/slbackup/slbackup-cron;
    fi
5 Responses leave one →
  1. June 17, 2009

    In the client option keep
    “keep: the number of days you want to keep the backup”

    I think that you may add
    “Use 0 if you do not want any old backups to be deleted”

  2. jmm permalink
    December 31, 2010

    I have installed slbackup-php as well but am unable to login with as root with my user password -I take it is the one for sudoer.

    This is what I have done:

    sudo apt-get install slbackup slbackup-php
    sudo a2enmod ssl
    sudo a2ensite default-ssl
    sudo make-ssl-cert generate-default-snakeoil –force-overwrite
    sudo /etc/init.d/apache2 restart

    I have been unable to find any documentation or even posts, except this one, about slbackup, so thanks so much for your help.

  3. January 8, 2011

    Hi, I’ve already tried slbackup-php in Debian and I don’t remember that problem with the root password. What are you using? Ubuntu, right? Because I search in google your question and I found a lot of people asking exactly the same in Ubuntu and Ubuntu forums.

    So, at first sight it seems that there is not an easy or short answer…

    Maybe you can post this issue in the Ubuntu package page in the open questions section.
    https://launchpad.net/ubuntu/+source/slbackup-php

    Good luck and if you find the answer please post it here.

  4. jmm permalink
    February 26, 2011

    The issue was never solved but thanks for your reply, Damian.

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

Bad Behavior has blocked 179 access attempts in the last 7 days.