Ignore:
Timestamp:
05/08/09 01:48:26 (15 years ago)
Author:
nanardon
Message:
  • synchronisation has now their own sections
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts/bin/la-sync

    r66 r73  
    1616Show configured bases: 
    1717 
    18     la-sync [options] 
     18    la-sync [sync name] [options] 
    1919 
    2020=cut 
     
    4848my $LA = LATMOS::Accounts->new($config); 
    4949 
    50 my $sync = $LA->create_synchro($from, [ @to ]); 
    51 $sync->load_dest and return; 
    52 $sync->process( 
     50my $sync = $LA->create_synchro( 
     51    $ARGV[0], 
     52    from => $from, 
     53    to => (@to ? [ @to ] : undef), 
    5354    nocreate => $nocreate, 
    5455    test     => $test, 
    55 ) or warn "Sync has failed\n"; 
     56) or die "cannot create sync object\n"; 
     57$sync->load_dest and return; 
     58$sync->process() or warn "Sync has failed\n"; 
Note: See TracChangeset for help on using the changeset viewer.