forked from ungleich-public/ccollect
add more gpl3 headers / correct them
This commit is contained in:
parent
0c141187bf
commit
20a549af71
13 changed files with 151 additions and 25 deletions
19
release.sh
19
release.sh
|
@ -1,5 +1,22 @@
|
||||||
#!/bin/sh
|
#!/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
|
# Standard release script for dummies like me
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
19
tools/README
Normal file
19
tools/README
Normal 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
|
|
@ -19,7 +19,8 @@
|
||||||
#
|
#
|
||||||
# Written for Netstream (www.netstream.ch) on Di 21. Aug 17:10:15 CEST 2007
|
# Written for Netstream (www.netstream.ch) on Di 21. Aug 17:10:15 CEST 2007
|
||||||
#
|
#
|
||||||
# Analyse existing logs
|
# Analyse logs
|
||||||
|
#
|
||||||
|
|
||||||
version=0.1
|
version=0.1
|
||||||
date=2007-08-24
|
date=2007-08-24
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#
|
#
|
||||||
# 2007-08-16 Written for Netstream (www.netstream.ch)
|
# 2007-08-16 Written for Netstream (www.netstream.ch)
|
||||||
# Delete sources and their backups (optionally).
|
# Delete sources and their backups (optionally).
|
||||||
|
#
|
||||||
|
|
||||||
# standard values
|
# standard values
|
||||||
CCOLLECT_CONF="${CCOLLECT_CONF:-/etc/ccollect}"
|
CCOLLECT_CONF="${CCOLLECT_CONF:-/etc/ccollect}"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
# Written for Netstream (www.netstream.ch) on Fr 8. Jun 10:30:24 CEST 2007
|
# 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
|
# Call the log-wrapper instead of ccollect.sh and it will create nice logs
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# where to find our configuration and temporary file
|
# where to find our configuration and temporary file
|
||||||
|
|
|
@ -11,15 +11,15 @@
|
||||||
|
|
||||||
if [ ! -e /tmp/ccollect-stats.lock ]
|
if [ ! -e /tmp/ccollect-stats.lock ]
|
||||||
then
|
then
|
||||||
touch /tmp/ccollect-stats.lock
|
touch /tmp/ccollect-stats.lock
|
||||||
find /etc/ccollect/sources/ -type l | while read line
|
|
||||||
do
|
# changes after license clearify
|
||||||
backupname=$(basename $(readlink $line))
|
# for dest in /etc/ccollect/sources/ -type f -name destination | while read line
|
||||||
echo "====[Backup: $backupname]====" | tee -a /var/log/backup.log
|
|
||||||
du -sh $line/* | tee -a /var/log/backup.log
|
find /etc/ccollect/sources/ -type l | while read line
|
||||||
done
|
d=$(basename $(readlink $line))
|
||||||
rm /tmp/ccollect-stats.lock
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,24 @@
|
||||||
#!/bin/sh
|
#!/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
|
if [ $# -ne 1 ]; then
|
||||||
|
|
|
@ -1,6 +1,23 @@
|
||||||
#!/bin/sh
|
#!/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//')
|
master=$(echo $0 | sed 's/\.sub//')
|
||||||
|
|
|
@ -1,7 +1,24 @@
|
||||||
#!/bin/sh
|
#!/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
|
# Transfer configuration to 0.6 layout
|
||||||
# Copying: GPLv3
|
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
|
|
|
@ -1,7 +1,24 @@
|
||||||
#!/bin/sh
|
#!/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)
|
# Transfer configuration to 0.6 layout (subscript)
|
||||||
# Copying: GPLv3
|
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
|
|
|
@ -17,7 +17,8 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
|
# 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
|
if [ $# -ne 1 ]; then
|
||||||
echo "$0: ccollect-configuration directory"
|
echo "$0: ccollect-configuration directory"
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
|
# along with ccollect. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
# Helper script
|
||||||
|
#
|
||||||
|
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -ne 1 ]; then
|
||||||
echo "$0: destination-file"
|
echo "$0: destination-file"
|
||||||
|
|
|
@ -1,8 +1,23 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# 2007-2008 Nico Schottelius (nico-ccollect at schottelius.org)
|
||||||
|
#
|
||||||
|
# This file is part of ccollect.
|
||||||
#
|
#
|
||||||
# Nico Schottelius <nico-ccollect //@// schottelius.org>
|
# ccollect is free software: you can redistribute it and/or modify
|
||||||
# Date: 2007-08-16
|
# it under the terms of the GNU General Public License as published by
|
||||||
# Last Modified: -
|
# 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
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue