chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-cache-proxy: housekeeping: check errno value from stat after deletion
[chiark-utils.git]
/
backup
/
snaprsync
diff --git
a/backup/snaprsync
b/backup/snaprsync
index 305eb349c7d57f75bd31de5cc997e9edabbb20f9..82ea5d416f8ab1dc86349b2c7287a7a3dd886626 100755
(executable)
--- a/
backup/snaprsync
+++ b/
backup/snaprsync
@@
-92,7
+92,7
@@
ssh $sshopts $rhost "$sshpfx ls -d $rvardir"
test -d $localarea || x mkdir $localarea
ournode=`uname -n`
rsumsfile=for-$ournode.sums
test -d $localarea || x mkdir $localarea
ournode=`uname -n`
rsumsfile=for-$ournode.sums
-summer="$summer -ACD
b
tqfx"
+summer="$summer -ACD
B
tqfx"
td=/dev/enoent
rc=12
td=/dev/enoent
rc=12
@@
-103,7
+103,7
@@
mkfifo -m 600 $td/sentinel
exec 4<>$td/sentinel
x ssh $sshopts $rhost "$sshpfx $rsharedir/snap-drop $rvardir"
exec 4<>$td/sentinel
x ssh $sshopts $rhost "$sshpfx $rsharedir/snap-drop $rvardir"
-ssh $sshopts $rhost "
+
x
ssh $sshopts $rhost "
$sshpfx
set -e
cd $rvardir
$sshpfx
set -e
cd $rvardir
@@
-140,7
+140,7
@@
exec 3>&-
xwait rsum
exec 4<&-
date -u "+ $datefmt sumsdone"
xwait rsum
exec 4<&-
date -u "+ $datefmt sumsdone"
-x ssh $sshopts $rhost "$sshpfx $rsharedir/snap-drop"
+x ssh $sshopts $rhost "$sshpfx $rsharedir/snap-drop
$rvardir
"
if [ "x${localprevious}" != x ] && test -f "$localprevious,rsums"; then
cp "$localprevious,rsums" "$localarea,rsums"
if [ "x${localprevious}" != x ] && test -f "$localprevious,rsums"; then
cp "$localprevious,rsums" "$localarea,rsums"