fix lastFullBackup for partial backups
Iris Lightshard nilix@nilfm.cc
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
kyanite.sh
→
kyanite.sh
@@ -57,7 +57,7 @@ rsync -av $@ ${srcDir} ${fullDest};
;; part) fullDest=${destDir}/${host}/$(date +%Y-%m-%d_%H:%M)_part; - lastFullBackup=$(ls -1 ${destDir}/$(hostname)/*_full | tail -n 1); + lastFullBackup=$(ls -1d ${destDir}/$(hostname)/*_full | tail -n 1); mkdir -p ${fullDest}; rsync -av --link-dest=${lastFullBackup} $@ ${srcDir} ${fullDest}; ;;