aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-05 01:19:19 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-05 01:19:19 +0000
commit15bbcbcf3a7021f34c1f0af79c039dab89478890 (patch)
tree54b00cae17b9fe5cc2519de876bc8a99969e054c /src
parent947f7d6b88ef8e891f67d7fac44961cd20fde406 (diff)
parenta6a6f9c5a4ddc0295bb12fd93ed0ba23ed696122 (diff)
downloadverteco-15bbcbcf3a7021f34c1f0af79c039dab89478890.tar.gz
Merge branch 'master' of git.dereenigne.org:/srv/git/verteco
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ftpupload5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ftpupload b/src/ftpupload
index 2483764..7d46f46 100755
--- a/src/ftpupload
+++ b/src/ftpupload
@@ -20,4 +20,9 @@ mput $FILE
bye
EOF
+# move file to archive
mv $FILE /var/modbuslog/archive/
+
+# remove files after 3 months
+CLEANUP="/var/modbus/archive/"`/usr/bin/ftphelper --mac`"_"`date +%Y_%m --date='4 months ago'`"*.log"
+rm $CLEANUP
Christoph Pfister1-0/+5 submitted by robert.wohlrab gmx.de 2010-04-29update scan file for dk-AllChristoph Pfister1-5/+11 submitted by rk.katana.steel gmail.com 2010-04-29update scan file for fi-TurkuChristoph Pfister1-1/+7 submitted by miika vesti.fi 2010-04-29update scan file for uk-AberdareChristoph Pfister1-10/+15 submitted by redtux1 googlemail.com 2010-04-29update scan file for fr-NantesChristoph Pfister1-6/+6 submitted by debotux gmail.com