<sigh> paths
why do I touch these things, ever?
This commit is contained in:
parent
3cd41e59a3
commit
bb1b58c20b
1 changed files with 4 additions and 2 deletions
|
@ -38,11 +38,13 @@ then
|
||||||
quit "$0 source dest"
|
quit "$0 source dest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
newlock $1
|
lockname=`basename $1`
|
||||||
|
newlock $lockname
|
||||||
if [ ! -d $2 ]
|
if [ ! -d $2 ]
|
||||||
then
|
then
|
||||||
mkdir $2
|
mkdir $2
|
||||||
fi
|
fi
|
||||||
/usr/bin/rsync -a $HOST::$1/* $2
|
/usr/bin/rsync -a $HOST::$1/* $2
|
||||||
cleanlock $1
|
cleanlock $lockname
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue