initial commit of file from CVS for smeserver-automysqlbackup on Sat Sep 7 20:08:47 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:08:47 +10:00
parent c5b27eeb06
commit 010b2f680a
63 changed files with 1943 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
/usr/local/bin/automysqlbackup $1 $2 >/dev/null
DB=$(/sbin/e-smith/db configuration getprop automysqlbackup Backupdir)
if [ -z "$DB" ]; then
DB="/root/backup/db";
fi
if [[ "$DB" =~ "^/root/backup" ]] || [[ "$DB" =~ "^/home/e-smith/db/" ]] ; then
chown root:root $DB$2 -R
find $DB$2 -type f -exec chmod 400 {} \;
find $DB$2 -type d -exec chmod 700 {} \;
fi