- Improve config detection for storeBackup-run-all script - Remove storeBackup-3.5.diff - Migrate from cron to systemd timers (bsc#1115457) * Add a simple script to replace cron-storeBackup OBS-URL: https://build.opensuse.org/request/show/905792 OBS-URL: https://build.opensuse.org/package/show/Archiving:Backup/storeBackup?expand=0&rev=14
21 lines
372 B
Bash
21 lines
372 B
Bash
#! /bin/sh -e
|
|
|
|
# run storeBackup on all files in /etc/storebackup.d/ sequentially
|
|
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
|
|
|
error=0
|
|
configs=$(find /etc/storebackup.d/ -type f \( ! -iname "*~" ! -iname "*.swp" ! -iname "*.udf" \))
|
|
|
|
for file in $configs
|
|
do
|
|
if ! nice storeBackup -f "$file"
|
|
then
|
|
echo Error running backup for \"$file\"
|
|
error=1
|
|
fi
|
|
done
|
|
|
|
exit $error
|
|
|