2013-08-03 22:53:04 +02:00
|
|
|
Installing EvoBackup
|
|
|
|
====================
|
|
|
|
|
|
|
|
Backup server side
|
|
|
|
------------------
|
|
|
|
|
2014-04-02 18:34:58 +02:00
|
|
|
A rsync daemon launched in server mode.
|
2013-08-03 22:53:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
Client side
|
|
|
|
-----------
|
|
|
|
|
|
|
|
1) Git clone the project (i.e in /root/evobackup).
|
|
|
|
|
2014-04-02 18:34:58 +02:00
|
|
|
2) Install configuration files.
|
2013-08-03 22:53:04 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
root@client1:~/evobackup# install.sh client
|
|
|
|
```
|
|
|
|
|
2014-04-02 18:34:58 +02:00
|
|
|
3) Add the zzz_evobackup crontab into the daily cronjobs (recommended):
|
2013-08-03 22:53:04 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
root@client1:~/evobackup# cp crons/zzz_evobackup /etc/cron.daily/
|
|
|
|
root@client1:~/evobackup# chmod 700 /etc/cron.daily/zzz_evobackup
|
|
|
|
```
|
|
|
|
|
|
|
|
Why "zzz"? Because we want the backup cronjob to be the last one.
|
|
|
|
|
2014-04-02 18:34:58 +02:00
|
|
|
4) Configure the cronjob.
|
2013-08-03 22:53:04 +02:00
|
|
|
|
|
|
|
In /etc/evobackup:
|
|
|
|
|
|
|
|
* What to backup using shell scripts in actions.d. By default all scripts are
|
2014-01-30 15:34:20 +01:00
|
|
|
disabled. To enable a script, move it by clearing .disabled part.
|
|
|
|
You can also adapt these scripts or write your own.
|
|
|
|
This will be launched before the rsync, using run-parts.
|
2013-08-03 22:53:04 +02:00
|
|
|
|
2013-08-04 00:03:56 +02:00
|
|
|
* What to backup using rsync filter rules in conf.d/include.cf
|
2014-04-02 18:34:58 +02:00
|
|
|
* Incrementals to keep in conf.d/incs.cf
|
2013-08-03 22:53:04 +02:00
|
|
|
* General config in conf.d/cron.cf
|
|
|
|
|
2014-04-02 18:34:58 +02:00
|
|
|
5) Optional, test with ```sh -x &```, and see if it seems to works.
|
2013-08-03 22:53:04 +02:00
|
|
|
|
|
|
|
```
|
2013-08-05 22:40:05 +02:00
|
|
|
root@client1:~/evobackup# sh -x /etc/cron.daily/zzz_evobackup &
|
|
|
|
root@client1:~/evobackup# tail -f /tmp/evobackup.*
|
|
|
|
```
|
|
|
|
|
|
|
|
If it works, you can wait for it to finish or cancel it.
|
|
|
|
|
|
|
|
```
|
|
|
|
root@client1:~/evobackup# ^C
|
|
|
|
root@client1:~/evobackup# fg
|
|
|
|
root@client1:~/evobackup# ^C
|
2014-04-02 18:34:58 +02:00
|
|
|
```
|