diff --git a/backup-rclone.sh b/backup-rclone.sh index a3b3a3a..7d573e0 100755 --- a/backup-rclone.sh +++ b/backup-rclone.sh @@ -27,6 +27,7 @@ recursive_backup() { remotehash="""$(sqlite3 $hashtemp "$sqlcommand")""" # get hash from database if [[ -z $remotehash ]]; then entryexists=false; else entryexists=true; fi # if file entry (and hash) exists, save as bool localhash="$(md5sum "$k")" # hash of local version of file + localhash="${localhash%% *}" done_files=$(($done_files+1)) progress=$(($done_files*100/$total_files)) if [[ "$remotehash" == "$localhash" ]]; then action="Skip"; continue; fi # if the has his the same, skip backuup