Changeset 42


Ignore:
Timestamp:
11/22/05 08:48:49 (19 years ago)
Author:
thauvin
Message:
  • update doc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/scripts/transfert

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r41 r42  
    9595=item * destination the destination where file should be copied 
    9696 
    97 =item * rsync command location, default is 'rsync' 
     97=item * cmd the command to use to trnsfert files 
    9898 
    9999=item * mailto the list of coma separate mail address which will receive  
     
    182182} 
    183183 
     184=head1 DATA TRANSFERT 
     185 
     186=head2 Finding files 
     187 
     188The scripts look for L<source> parameter, if it is a directory, the script 
     189perform a glob using 'source/*', otherwise, it perform a glob using directly 
     190the source parameter 
     191 
     192If the source parameter is not defined, the script log an error and skip the 
     193section. 
     194 
     195The second required parameter is the destination of files, L<dest> parameter 
     196in config files. It should be accepted by the L<cmd> program that will 
     197transfert data, the form "user@host:/path" is generally use as the default 
     198program is rsync. 
     199 
     200For 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 
     203recent, if yes, we assume file has been already transfered. 
     204 
     205- a .md5sum is create, this files contains some comment and the md5sum of 
     206the data file, this .md5sum can be used by md5sum -c to check data file 
     207integrity 
     208 
     209- both data file and its md5sum file are tranfered, if tranfer failed, the 
     210md5sum file is deleted 
     211 
     212- L<postrun> command is run for both data file and its md5sum file if tranfert 
     213is succefully completed. 
     214 
     215=cut 
    184216 
    185217sub transfert { 
     
    328360 
    329361    $Log$ 
     362    Revision 1.9  2005/11/22 07:48:49  thauvin 
     363    - update doc 
     364 
    330365    Revision 1.8  2005/11/21 19:11:49  thauvin 
    331366    - add signature in mail 
Note: See TracChangeset for help on using the changeset viewer.