Skip to content

Commit

Permalink
search for all file types managed with str2str
Browse files Browse the repository at this point in the history
fix #158
  • Loading branch information
Stefal committed Jun 14, 2021
1 parent 7a2eeee commit f95da42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive_and_clean.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#This script should be run from a crontab
#This script should be run with a unit service and a unit timer
#You can customize archive_name and archive_rotate in settings.conf

BASEDIR=$(dirname "$0")
Expand Down Expand Up @@ -30,7 +30,7 @@ done

#archive and compress previous day's gnss data.
#find . -maxdepth 1 -type f -mtime -1 -mmin +60 -name "*.ubx*" -exec tar -jcvf ${archive_name} --remove-files {} +;
find . -maxdepth 1 -type f -mtime -1 -mmin +60 -name "*.ubx*" -exec zip -m9 ${archive_name} {} +;
find . -maxdepth 1 -type f -mtime -960 -mmin +60 \( -name "*.rtcm*" -o -name "*.nov*" -o -name "*.oem*" -o -name "*.ubx*" -o -name "*.ss2*" -o -name "*.hemis*" -o -name "*.stq*" -o -name "*.javad*" -o -name "*.nvs*" -o -name "*.binex*" \) -exec zip -m9 ${archive_name} {} +;

#delete gnss data older than x days.
#find . -maxdepth 1 -type f -name "*.tar.bz2" -mtime +${archive_rotate} -delete
Expand Down

0 comments on commit f95da42

Please sign in to comment.