Select Page

Backup Your Ubuntu/Debian Server Automatically

Backup Your Ubuntu/Debian Server Automatically


I am using ReoBack for this duty

REOBack (pronounced “ray-o-back”) is a backup solution designed for #Linux users and system administrators. It is designed to be simple to set up, and easy to use. It is great as a quick solution for those who procrastinate about backups. It supports automatic full/incremental backups of files you define, remote backups via NFS or FTP, as well as auto deletion of old backups.

And here is my how to install for Debian /Ubuntu distribution taken from my notes

Download Reoback 1.0.3, convert it into a Debian package with alien and install it

wget apt-get install alien alien reoback-1.0-3.noarch.rpm dpkg -i reoback_1.0-4_all.deb

Configure ReoBack by editing the file settings.conf

vi /etc/reoback/settings.conf

Here is a sample configuration file to save your backup to a remote FTP server (but it could be also a NFS share)

host            = backupdays      = 7 files           = /etc/reoback/files.conf tmpdir          = /var/lib/reoback/tmp/ datadir          = /var/lib/reoback/data/ localbackup     = /var/lib/reoback/backups/ keeplocalcopy   = 1 remotebackup    = 1 rbackuptype     = FTP localmount      = /mnt/server/ remotehost      = xxxxxxxxx remotepath      = /reobackup/ ftpuser         = xxxxxxxxx ftppasswd       = xxxxxxxxx

Specify which files on your server  need to be saved by editing the file files.conf

vi /etc/reoback/files.conf

Here is a sample, I exclude some files that are changing all the time since they are maintained by the Linux kernel or some processes

File: homes /home/  File: var /var Skip: /var/run/* Skip: /var/lib/mysql/* Skip: /var/lib/reoback/*  File: mysql /var/lib/mysql /tmp/mysql.sock Skip: /var/lib/mysql/mysql.sock Skip: /var/lib/mysql/  File: plesk /opt/psa /etc/psa /usr/local/psa

Adapt the location path of these 2 files (files.conf / settings.conf) in

vi /etc/reoback/

content of file

# Location of the configuration file. config="/etc/reoback/settings.conf"  # Change to reflect where REOBack is installed reoback="/usr/bin/"  # Do not modify this line. $reoback $config

Finally you can now test your backup


or place this command in crontab

* 19 * * * /etc/reoback/ > backup.txt ;
mail -s "automatisches Backup" [email protected] < backup.txt


Depending where you visitor come from (America or Asia or Europe) it may be recommended to not start your backup during peak of visits, You can also nice the process to a lower priority

* 19 * * * nice –19 /etc/reoback/ > backup.txt ; 
mail -s "automatisches Backup" [email protected] < backup.txt

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.