kernel - More readdirplus deadlock avoidance work
[dragonfly.git] / bin / cpdup / scripts / do_remote
blob9cf5cccbbd028ae4da84c2f3ff1804b60e50efb6
1 #!/bin/csh
3 # $DragonFly: src/bin/cpdup/scripts/do_remote,v 1.1 2006/09/16 21:57:10 dillon Exp $
5 source params
7 if ( "$argv" == "" ) then
8 echo "do_mirror <level>"
9 exit 1
10 endif
12 echo "STARTING OFFSITE MIRRORS `date`"
13 foreach i ( ${backup_nfs}/* )
14 set host = ${i:t}
15 if ( -d $i ) then
16 ./do_remote_host $host $argv >& $backup_path/mirrors/remote.${host}.log &
17 endif
18 end
19 echo "WAITING FOR MIRRORS TO COMPLETE `date`"
20 wait
21 foreach i ( ${backup_nfs}/* )
22 set host = ${i:t}
23 if ( -d $i ) then
24 echo -n "${host}: "
25 tail -1 $backup_path/mirrors/remote.${host}.log
26 endif
27 end
28 echo "DONE WITH OFFSITE MIRRORS `date`"