From: hackbard Date: Sun, 30 Jan 2022 21:59:04 +0000 (+0100) Subject: hard link instead of cp -r X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=outofuni%2Fbackup.git hard link instead of cp -r --- diff --git a/bin/backup b/bin/backup index 9c63658..540cd99 100755 --- a/bin/backup +++ b/bin/backup @@ -133,7 +133,7 @@ done if [ ! -d $cbd ]; then if [ ! -z "$lpb" ]; then - cp -r $lpb $cbd + cp -al $lpb $cbd log starting backup $today from $lpb ... else mkdir -p $cbd