Ignore:
Timestamp:
12/29/15 16:32:48 (8 years ago)
Author:
nanardon
Message:

Allow la-sync to synchronize the full set object of specific type

File:
1 edited

Legend:

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

    r1375 r1563  
    1717 
    1818    la-sync [options] 
     19    la-sync --from source --to dest -o type [-a|obj1 obj2] 
    1920 
    2021=cut 
     
    3233    'b|batch'      => \my $batch, 
    3334    'unexp'        => \my $unexp, 
     35    'a|all'        => \my $all 
    3436) or pod2usage(); 
    3537 
     
    9698$sync->load_dest and return; 
    9799if ($otype) { 
    98     foreach (@ARGV) { 
     100    my @list = $all 
     101        ? $sync->from->list_objects($otype) 
     102        : @ARGV; 
     103 
     104    foreach (@list) { 
    99105        warn "Try to sync $otype: $_\n"; 
    100106        $sync->sync_object($otype, $_, onepass => 1) or do { 
Note: See TracChangeset for help on using the changeset viewer.