silently causing me much confusion, so I added -L to find and an if statement to
spit something out so its obvious
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@410
758a04ac-41e6-0310-8a23-
8373a73cc35d
and complains about group-readable files only when the group differs
from the one in the configuration file (default is root as before).
Thanks to Martin Krafft for the patch (Closes: #370396).
+ . When determining which backup actions to make, find now follows
+ symlinks for /etc/backup.d
handler changes
Added tar handler
mysql:
if [ "$singlerun" ]; then
files=$singlerun
else
- files=`find $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`
+ files=`find -L $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`
+
+ if [ -z "$files" ]; then
+ fatal "No backup actions configured in '$configdirectory', run ninjahelper!"
+ fi
fi
for file in $files; do