commit 23aaf3fde529adc92bfec9e8ebb3ff666e8bdda4 parent 1e9c274cd4ef265757100e496ea49f2a8877ada6 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Thu, 27 Feb 2014 19:27:30 +0100 create batch files Diffstat:
| M | bin/snap.push.single | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/snap.push.single b/bin/snap.push.single @@ -69,7 +69,8 @@ push_local() { snapshot=$(snap.list "$SNAP_DST/" | tail -1) if test -n "$snapshot"; then link=${SNAP_DST}/${snapshot} - rs "$@" "--link-dest=$link/" "$SNAP_SRC/" "$SNAP_DST/$ts/" || exit $? + mkdir -p "${SNAP_DST}/batch" || exit $? + rs "$@" --write-batch="${SNAP_DST}/batch/${snapshot}-$ts" "--link-dest=$link/" "$SNAP_SRC/" "$SNAP_DST/$ts/" || exit $? else rs "$@" "$SNAP_SRC/" "$SNAP_DST/$ts/" || exit $? fi