Parent Directory | Revision Log
Subdir archived is now moved up one level as valid_ccf_archived just to avoid using prune which seems to be not working as expected. removed -prune from find commands
1 | #!/bin/bash |
2 | # |
3 | # archive_valid_ccf_lists.sh |
4 | # |
5 | # Script to archive the lists produced in the valid_ccf directory. |
6 | # |
7 | # To find out which files have to be deleted we use find -mtime +15 |
8 | # |
9 | # (c) ESA 2016 |
10 | # |
11 | # $Id: archive_valid_ccf_lists.sh,v 1.2 2016/03/23 15:50:10 ccflib Exp $ |
12 | |
13 | |
14 | |
15 | # Some initialisation |
16 | |
17 | where=`pwd` |
18 | |
19 | VALID_CCF="/home/ccflib/valid_ccf" |
20 | VALID_CCF_ARCHIVE="/home/ccflib/valid_ccf_archived" |
21 | |
22 | |
23 | |
24 | for file in `find $VALID_CCF -type f -name "all_ccfs*" -mtime +15 -exec ls -1 {} \;` |
25 | do |
26 | mv $file ${VALID_CCF_ARCHIVE}/ |
27 | done |
28 | |
29 | for file in `find $VALID_CCF -type f -name "xsaobslog_*" -mtime +15 -exec ls -1 {} \;` |
30 | do |
31 | mv $file ${VALID_CCF_ARCHIVE}/ |
32 | done |
33 |
ViewVC Help | |
Powered by ViewVC 1.1.27 |