add more gpl3 headers / correct them

This commit is contained in:
Nico Schottelius 2008-03-17 09:17:53 +01:00
parent 0c141187bf
commit 20a549af71
13 changed files with 151 additions and 25 deletions

View file

@ -1,5 +1,22 @@
#!/bin/sh
# Nico Schottelius
#
# 200?-2008 Nico Schottelius (nico-ccollect at schottelius.org)
#
# This file is part of ccollect.
#
# ccollect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ccollect is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Standard release script for dummies like me
#

19
tools/README Normal file
View file

@ -0,0 +1,19 @@
Files and their tasks / destinations:
ccollect_add_source.sh: bin
ccollect_analyse_logs.sh: bin
ccollect_create_source2.sh: ???
ccollect_create_source.sh: ???
ccollect_delete_source.sh: bin
ccollect_list_intervals.sh: bin
ccollect_logwrapper.sh: bin
ccollect-stats.sh: ???
config-pre-0.4-to-0.4.BUGS: only to be used for converting
config-pre-0.4-to-0.4.sh: only to be used for converting
config-pre-0.4-to-0.4.sub.sh: only to be used for converting
config-pre-0.6-to-0.6.sh: only to be used for converting
config-pre-0.6-to-0.6.sub.sh: only to be used for converting
config-pre-0.7-to-0.7.sh: only to be used for converting
config-pre-0.7-to-0.7.sub.sh: only to be used for converting
gnu-du-backup-size-compare.sh
README

View file

@ -19,7 +19,8 @@
#
# Written for Netstream (www.netstream.ch) on Di 21. Aug 17:10:15 CEST 2007
#
# Analyse existing logs
# Analyse logs
#
version=0.1
date=2007-08-24

View file

@ -19,6 +19,7 @@
#
# 2007-08-16 Written for Netstream (www.netstream.ch)
# Delete sources and their backups (optionally).
#
# standard values
CCOLLECT_CONF="${CCOLLECT_CONF:-/etc/ccollect}"

View file

@ -20,6 +20,7 @@
# Written for Netstream (www.netstream.ch) on Fr 8. Jun 10:30:24 CEST 2007
#
# Call the log-wrapper instead of ccollect.sh and it will create nice logs
#
#
# where to find our configuration and temporary file

View file

@ -11,15 +11,15 @@
if [ ! -e /tmp/ccollect-stats.lock ]
then
touch /tmp/ccollect-stats.lock
find /etc/ccollect/sources/ -type l | while read line
do
backupname=$(basename $(readlink $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
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/ -type l | while read line
d=$(basename $(readlink $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

View file

@ -1,6 +1,24 @@
#!/bin/sh
# Nico Schottelius
# Do Apr 27 09:13:26 CEST 2006
#
# 2006-2008 Nico Schottelius (nico-ccollect at schottelius.org)
#
#
# This file is part of ccollect.
#
# ccollect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ccollect is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Written on Do Apr 27 09:13:26 CEST 2006
#
if [ $# -ne 1 ]; then

View file

@ -1,6 +1,23 @@
#!/bin/sh
# Nico Schottelius
# Do Apr 27 09:13:26 CEST 2006
#
# 2006-2008 Nico Schottelius (nico-ccollect at schottelius.org)
#
# This file is part of ccollect.
#
# ccollect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ccollect is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Written on Do Apr 27 09:13:26 CEST 2006
#
master=$(echo $0 | sed 's/\.sub//')

View file

@ -1,7 +1,24 @@
#!/bin/sh
# Nico Schottelius, 20070816-2225
#
# 2007-2008 Nico Schottelius (nico-ccollect at schottelius.org)
#
# This file is part of ccollect.
#
# ccollect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ccollect is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Written on 20070816-2225
# Transfer configuration to 0.6 layout
# Copying: GPLv3
#
if [ $# -ne 1 ]; then

View file

@ -1,7 +1,24 @@
#!/bin/sh
# Nico Schottelius, 20070816-2227
#
# 2007-2008 Nico Schottelius (nico-ccollect at schottelius.org)
#
# This file is part of ccollect.
#
# ccollect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ccollect is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Written on 20070816-2227
# Transfer configuration to 0.6 layout (subscript)
# Copying: GPLv3
#
if [ $# -ne 1 ]; then

View file

@ -17,7 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Convert configuration to 0.6 layout
# Convert configuration to 0.7 layout
#
if [ $# -ne 1 ]; then
echo "$0: ccollect-configuration directory"

View file

@ -17,6 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Helper script
#
if [ $# -ne 1 ]; then
echo "$0: destination-file"

View file

@ -1,8 +1,23 @@
#!/bin/sh
#
# Nico Schottelius <nico-ccollect //@// schottelius.org>
# Date: 2007-08-16
# Last Modified: -
# 2007-2008 Nico Schottelius (nico-ccollect at schottelius.org)
#
# This file is part of ccollect.
#
# ccollect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ccollect is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
#
# Written on 2007-08-16
#
exit 1