diff options
Diffstat (limited to 'backup2webdav.cron')
| -rwxr-xr-x | backup2webdav.cron | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backup2webdav.cron b/backup2webdav.cron new file mode 100755 index 0000000..083007a --- /dev/null +++ b/backup2webdav.cron @@ -0,0 +1,9 @@ +#!/bin/bash + +if [ -f /var/lib/mysql/ib_logfile0 ] && [ -d /var/lib/mysql-backup ]; then + /usr/bin/mysqldump -u root --all-databases > /var/lib/mysql-backup +fi + +sleep $(( $RANDOM % 15 + 1 ))m +/usr/local/sbin/backup2nextcloud + |
