Changeset 2436


Ignore:
Timestamp:
07/12/20 11:07:24 (4 years ago)
Author:
nanardon
Message:

Backup sync status file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Synchro.pm

    r2411 r2436  
    99use LATMOS::Accounts::Utils qw(exec_command); 
    1010use Fcntl qw(:flock); 
     11use File::Copy; 
    1112 
    1213=head1 NAME 
     
    456457    my ($self) = @_; 
    457458    if (my $file = $self->GetFileName) { 
     459        copy($file, "$file.old") or die "Cannot backup status $file"; 
    458460        open(my $handle, '>', $file) or do { 
    459461            la_log(LA_ERR, "Cannot open status file %s for writing: %s", 
Note: See TracChangeset for help on using the changeset viewer.