]> hackdaworld.org Git - outofuni/backup.git/commitdiff
hard link instead of cp -r master
authorhackbard <hackbard@hackdaworld.org>
Sun, 30 Jan 2022 21:59:04 +0000 (22:59 +0100)
committerhackbard <hackbard@hackdaworld.org>
Sun, 30 Jan 2022 21:59:04 +0000 (22:59 +0100)
bin/backup

index 9c636586325df516011e78e9c75fbdc04fec13d3..540cd998e383c6d4e15240fccf5286ce7a1e9704 100755 (executable)
@@ -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