dot

packages and services management
Log | Files | Refs | README

commit 491e9604bc06afbffe815a566d01daa510238f67
parent 894bd2de075c2087d32f3c0749c763cd46cf1cc6
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  8 Jan 2018 19:05:25 +0100

do not run two backups simultaneously

Diffstat:
Mbin/back | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/bin/back b/bin/back @@ -9,6 +9,7 @@ sum='b2sum -l 256' case $1 in (up) + [ -e "$BACK/new" ] && exit 1 find . -type f | sort | while read -r path do [ "$log" -nt "$path" ] && grep -F "$path" "$log" || $sum "$path" done | tee "$BACK/new" | while read -r hash path