all repos — kyanite @ 107851b42d0f377b3e6d21f4bdda7ea7e3494fa8

streamlined, composable rsync wrapper for organized incremental backups of local or remote data

fix lastFullBackup for partial backups
Iris Lightshard nilix@nilfm.cc
commit

107851b42d0f377b3e6d21f4bdda7ea7e3494fa8

parent

0c0fe416449bb3a05f6ee9c28cd1f48bd3ac53ba

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M kyanite.shkyanite.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}; ;;