diff --git a/seqs/backup.sh b/seqs/backup.sh index 1c5ea8e..7054d3f 100755 --- a/seqs/backup.sh +++ b/seqs/backup.sh @@ -187,7 +187,9 @@ step_3() { exep "mv -f '${buTarget}/${buLog}0.log' '/tmp/${buLog}1.log' 2>/dev/null" exep "'${sq_toolBin}' ${customFlags[*]} --info=stats2 ${buExcludes[*]} '${tmpSource}' '${tmpTarget}' > '/tmp/${buLog}0.log'" - exe mv -f /tmp/"${buLog}"*.log "${buTarget}" + # mv is not the right tool moving files to a different file system + exe cp /tmp/"${buLog}"*.log "${buTarget}" + exe rm -rf /tmp/"${buLog}"*.log exe sync if (( remount )) ; then exep "mount -o ro,remount '${buTarget}' >>/dev/null 2>&1"