Skip to content
Snippets Groups Projects
Commit c2656313 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'desktop-notify' into 'master'

update docs

See merge request !102
parents 7ca3770b 5c0d74dc
No related branches found
No related tags found
1 merge request!102update docs
## Typical Usage ## Description
This is the main script to start a backup. The script *backup.sh* is the one to add as a cronjob. It will start This is the main script to start a backup. The script *backup.sh* is the one to add as a cronjob. It will start
......
## Make database dumps ## Description
To create backup database dumps without transfer of local directory to a backup target use `sudo ./localdump.sh`. To create backup database dumps without transfer of local directory to a backup target use `sudo ./localdump.sh`.
Backup dumps will be stored as gzip files into `/var/iml-backup/[service]`. Backup dumps will be stored as gzip files into `/var/iml-backup/[service]`.
......
## Transfer files ## ## Description
To transfer local directories to a backup repository use `sudo ./transfer.sh`. To transfer local directories to a backup repository use `sudo ./transfer.sh`.
......
...@@ -47,7 +47,9 @@ $ cat /etc/cron.d/client-backup ...@@ -47,7 +47,9 @@ $ cat /etc/cron.d/client-backup
## Desktop notification ## Desktop notification
If you don't run the backup on a server but on a client you can activate the desktop notification for a user that is logged in. If you don't run the backup on a server but on a client you can activate the desktop notification for a user that is logged in. It uses *notify-send* to show notification messages.
In a cronjob that start the backup script as root must know the user that should get the notifications.
Set a variable `SUPER_USER=<USERNAME>` in your cron file. Set a variable `SUPER_USER=<USERNAME>` in your cron file.
Example: Example:
...@@ -57,5 +59,5 @@ $ cat /etc/cron.d/client-backup ...@@ -57,5 +59,5 @@ $ cat /etc/cron.d/client-backup
SUPER_USER=axel SUPER_USER=axel
*/17 * * * root /usr/local/bin/cronwrapper.sh 1440 /opt/imlbackup/client/backup.sh 'iml-backup' 17 * * * * root /usr/local/bin/cronwrapper.sh 1440 /opt/imlbackup/client/backup.sh 'iml-backup'
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment