Changeset 42
- Timestamp:
- 11/22/05 08:48:49 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/soft/scripts/transfert
- Property cvs2svn:cvs-rev changed from 1.8 to 1.9
r41 r42 95 95 =item * destination the destination where file should be copied 96 96 97 =item * rsync command location, default is 'rsync'97 =item * cmd the command to use to trnsfert files 98 98 99 99 =item * mailto the list of coma separate mail address which will receive … … 182 182 } 183 183 184 =head1 DATA TRANSFERT 185 186 =head2 Finding files 187 188 The scripts look for L<source> parameter, if it is a directory, the script 189 perform a glob using 'source/*', otherwise, it perform a glob using directly 190 the source parameter 191 192 If the source parameter is not defined, the script log an error and skip the 193 section. 194 195 The second required parameter is the destination of files, L<dest> parameter 196 in config files. It should be accepted by the L<cmd> program that will 197 transfert data, the form "user@host:/path" is generally use as the default 198 program is rsync. 199 200 For each files found according L<source> parameter: 201 202 - we look if a .md5sum exists (using file name as prefix) and if it is more 203 recent, if yes, we assume file has been already transfered. 204 205 - a .md5sum is create, this files contains some comment and the md5sum of 206 the data file, this .md5sum can be used by md5sum -c to check data file 207 integrity 208 209 - both data file and its md5sum file are tranfered, if tranfer failed, the 210 md5sum file is deleted 211 212 - L<postrun> command is run for both data file and its md5sum file if tranfert 213 is succefully completed. 214 215 =cut 184 216 185 217 sub transfert { … … 328 360 329 361 $Log$ 362 Revision 1.9 2005/11/22 07:48:49 thauvin 363 - update doc 364 330 365 Revision 1.8 2005/11/21 19:11:49 thauvin 331 366 - add signature in mail
Note: See TracChangeset
for help on using the changeset viewer.