diff --git a/conf/sources/source-without-intervall/exclude b/conf/sources/source-without-destination/exclude similarity index 100% rename from conf/sources/source-without-intervall/exclude rename to conf/sources/source-without-destination/exclude diff --git a/conf/sources/source-without-intervall/source b/conf/sources/source-without-destination/source similarity index 100% rename from conf/sources/source-without-intervall/source rename to conf/sources/source-without-destination/source diff --git a/conf/sources/to-remote/remote_host b/conf/sources/to-remote/remote_host index 3c2693c..2fbb50c 100644 --- a/conf/sources/to-remote/remote_host +++ b/conf/sources/to-remote/remote_host @@ -1 +1 @@ -home.schottelius.org +localhost diff --git a/contrib/lucky-2009-07-22/ccollect_logwrapper_destination.patch b/contrib/lucky-2009-07-22/ccollect_logwrapper_destination.patch new file mode 100644 index 0000000..5fb20b5 --- /dev/null +++ b/contrib/lucky-2009-07-22/ccollect_logwrapper_destination.patch @@ -0,0 +1,14 @@ +31c31,41 +< logdir="${LOGCONF}/destination" +--- +> c_dest="${LOGCONF}/destination" +> +> if [ ! -f ${c_dest} ]; then +> _exit_err "Destination ${c_dest} is not a file. Skipping." +> else +> logdir=$(cat "${c_dest}"); ret="$?" +> if [ "${ret}" -ne 0 ]; then +> _exit_err "Destination ${c_dest} is not readable. Skipping." +> fi +> fi +> diff --git a/contrib/lucky-2009-07-22/ccollect_stats.sh b/contrib/lucky-2009-07-22/ccollect_stats.sh new file mode 100644 index 0000000..886be09 --- /dev/null +++ b/contrib/lucky-2009-07-22/ccollect_stats.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +# 2007 Daniel Aubry +# 2008 Nico Schottelius (added minimal header) +# +# Copying license: GPL2-only +# + +# TODO: +# add variables, add copying, add configuration + +if [ ! -e /tmp/ccollect-stats.lock ] +then + touch /tmp/ccollect-stats.lock + + # changes after license clearify + # for dest in /etc/ccollect/sources/ -type f -name destination | while read line + + find /etc/ccollect/sources/*/destination | while read line + do + d=$(basename $(cat $line)) + echo "====[Backup: $backupname]====" | tee -a /var/log/backup.log + du -sh $line/* | tee -a /var/log/backup.log + done + rm /tmp/ccollect-stats.lock +fi