diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-03-05 01:30:17 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-03-05 01:30:17 +0000 |
commit | 5535b9f088040451719e649aa4bae9a283a5927f (patch) | |
tree | e01da5768f9ad762137d7d904eb9127577dd74a5 /src/ftpupload | |
parent | e7bc12b02ac4f59df000baaa842c32b500f66c01 (diff) | |
parent | 15bbcbcf3a7021f34c1f0af79c039dab89478890 (diff) | |
download | verteco-debian_pkg.tar.gz |
Merge branch 'master' into debian_pkgdebian_pkg
Diffstat (limited to '')
-rwxr-xr-x | src/ftpupload | 5 |
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 |