From e818e792764bcb64db2fa22c913ae1c96d338106 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 31 Oct 2020 17:36:38 +0000 Subject: Auto hardlink yesterday with rsync backup --- scripts/backup.cron | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/backup.cron b/scripts/backup.cron index e6399a3..4b150fe 100755 --- a/scripts/backup.cron +++ b/scripts/backup.cron @@ -35,10 +35,11 @@ fi for src in `cat ${basedir}/${list}`; do dest=${basedir}/${prefix}.0/${src} + yest=${basedir}/${prefix}.1/${src} if [ ! -d ${dest} ]; then mkdir -p ${dest} fi - rsync -ax --delete ${src} ${dest} + rsync -ax --delete --link-dest=${yest} ${src} ${dest} done touch ${basedir}/${prefix}.0 -- cgit v1.2.3