- Timestamp:
- 05/16/12 15:58:23 (13 years ago)
- Location:
- TOOLS/PACK_IPSL
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/archive_restart.sh
r1709 r1728 54 54 55 55 #### Preparation de l'environnement 56 # repertoire dans lequel seront crees les archives57 STORE_RESTART=$IGCM_DEM_SIMU/R estart56 # repertoire dans lequel seront renommes les fichiers de restart 57 STORE_RESTART=$IGCM_DEM_SIMU/RESTART 58 58 mkdir -p ${STORE_RESTART} 59 60 # repertoire dans lequel nous stockerons les listes de restart a archiver 61 RESTART_TAR=$IGCM_DEM_SIMU/restart_tar 62 mkdir -p ${RESTART_TAR} 59 63 60 64 # lecture de periodpack dans ${IGCM_DEM_SIMU}/period_pack.txt … … 123 127 124 128 125 echo pack n°${number_pack} ${date_file} ${date_begin_pack} ${date_end_pack}126 129 if [ ${date_file} -lt ${date_end_pack} ] 127 130 then … … 142 145 last_file=$(tail -n 1 ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp ) 143 146 extract_date_file=$( echo ${last_file} | sed -e "s/.*${JobName}_//" ) 144 echo ${extract_date_file}145 147 DateEnd_Restart=$( echo ${extract_date_file}| sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) 146 echo ${DateEnd_Restart} 147 mv ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp ${IGCM_DEM_SIMU}/liste_pack_restart_${date_begin_pack}_${DateEnd_Restart}.txt 148 mv ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp ${RESTART_TAR}/tar_restart_${date_begin_pack}_${DateEnd_Restart}.list 148 149 149 150 150 151 DEM_log -1 "Passage de la commande Tar pour archiver la liste creee" 151 tar -cf ${JobName}_${date_begin_pack}_${DateEnd_Restart}_restart.tar --dereference --files-from ${IGCM_DEM_SIMU}/liste_pack_restart_${date_begin_pack}_${DateEnd_Restart}.txt152 # cat ${ IGCM_DEM_SIMU}/liste_pack_restart_${number_pack}.txt | xargs rm152 # tar -cf ${JobName}_${date_begin_pack}_${DateEnd_Restart}_restart.tar --dereference --files-from ${RESTART_TAR}/tar_restart_${date_begin_pack}_${DateEnd_Restart}.list 153 # cat ${RESTART_TAR}/tar_restart_${number_pack}.list | xargs rm 153 154 154 155 … … 173 174 174 175 175 176 cd ${EXE_DIR} -
TOOLS/PACK_IPSL/create_config_card.sh
r1726 r1728 99 99 100 100 # Etablir la liste des fichiers d'Analyse 101 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep Analyse | awk '{print $2 " " $3}' | sort >> ${STORE_CP}/ liste_analyse_files.txt101 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep Analyse | awk '{print $2 " " $3}' | sort >> ${STORE_CP}/cp_analyse_files.list 102 102 103 103 104 104 # Etablir la liste des fichiers Monito et Atlas 105 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep MONITORING | awk '{print $2 " " $3}' | sort >> ${WORK_CP}/ liste_monito_files.txt106 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep ATLAS | awk '{print $2 " " $3}' | sort >> ${WORK_CP}/ liste_atlas_files.txt105 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep MONITORING | awk '{print $2 " " $3}' | sort >> ${WORK_CP}/cp_monito_files.list 106 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep ATLAS | awk '{print $2 " " $3}' | sort >> ${WORK_CP}/cp_atlas_files.list 107 107 108 108 … … 121 121 # Sauvegarde des fichiers qui ne sont pas dans la norme 122 122 cat ${IGCM_TMP}/${$}.info_tmp_bis.txt >> ${IGCM_TMP}/${$}.liste_no_restart_files_config.txt 123 mv ${IGCM_TMP}/${$}.liste_no_restart_files_config.txt ${OTHER_TAR}/tar_no_restart_files. txt123 mv ${IGCM_TMP}/${$}.liste_no_restart_files_config.txt ${OTHER_TAR}/tar_no_restart_files.list 124 124 125 125 … … 131 131 # Sauvegarde des fichiers qui ne sont pas dans la norme 132 132 cat ${IGCM_TMP}/${$}.info_tmp_bis.txt >> ${IGCM_TMP}/${$}.liste_no_output_files_config.txt 133 mv ${IGCM_TMP}/${$}.liste_no_output_files_config.txt ${OTHER_TAR}/tar_no_output_files. txt133 mv ${IGCM_TMP}/${$}.liste_no_output_files_config.txt ${OTHER_TAR}/tar_no_output_files.list 134 134 135 135 … … 187 187 188 188 # si les listes no_output et no_restart sont vides on les efface 189 if [[ ! -s ${OTHER_TAR}/tar_no_output_files. txt ]]; then190 rm -f ${OTHER_TAR}/tar_no_output_files. txt189 if [[ ! -s ${OTHER_TAR}/tar_no_output_files.list ]]; then 190 rm -f ${OTHER_TAR}/tar_no_output_files.list 191 191 fi 192 192 193 if [[ ! -s ${OTHER_TAR}/tar_no_restart_files. txt ]]; then194 rm -f ${OTHER_TAR}/tar_no_restart_files. txt193 if [[ ! -s ${OTHER_TAR}/tar_no_restart_files.list ]]; then 194 rm -f ${OTHER_TAR}/tar_no_restart_files.list 195 195 fi 196 196 -
TOOLS/PACK_IPSL/launch_ipsl_pack.sh
r1727 r1728 79 79 ${EXE_DIR}/find_size_pack.sh ${CONFIG} ${LISTE_DMNFS} 80 80 ${EXE_DIR}/write_liste_pack.sh ${CONFIG} ${LISTE_DMNFS} 81 # ${EXE_DIR}/archive_restart.sh ${CONFIG} ${LISTE_DMNFS} 81 ${EXE_DIR}/archive_restart.sh ${CONFIG} ${LISTE_DMNFS} 82 ${EXE_DIR}/archive_debug.sh ${CONFIG} ${LISTE_DMNFS} 82 83 83 84 fi -
TOOLS/PACK_IPSL/write_liste_pack.sh
r1726 r1728 52 52 53 53 # creation des repertoires with_tar et with_ncrcat 54 OUTPUT_NCRCAT=${IGCM_DEM_SIMU}/ with_ncrcat55 OUTPUT_TAR=${IGCM_DEM_SIMU}/ with_tar54 OUTPUT_NCRCAT=${IGCM_DEM_SIMU}/output_ncrcat 55 OUTPUT_TAR=${IGCM_DEM_SIMU}/output_tar 56 56 57 57 mkdir -p ${OUTPUT_NCRCAT}
Note: See TracChangeset
for help on using the changeset viewer.