I have been running the following rsync command as a cronjob for the past month. Today I discovered that this has been getting stuck on a *.png file and none of my other data has been backing up! In the meantime I've excluded *.png files and rsync has been working again, but I'd like a comprehensive solution to back up ALL of my files if possible.
This is getting stuck on *.png files
rsync -rcvl --delete --progress /home/user/target /media/user/backup/source
This is my temporary fix
rsync -rcvl --delete --progress --exclude='*.png' /home/user/target /media/user/backup/source
Each image is only ~300k.
The filesystems of both the target and source directories are fuseblk. The source dir is a Western Digital 4TB external hard-drive that is connected via USB 3.0.
EDIT:
I was able to pin-down the problem after piping my rsync command into a grep failed. This revealed several files that had : characters in the file name, which rsync was unable to process. After renaming each of these files (replacing each : with _), and removing the --exclude='*.png' flag, the above rsync command successfully backed up my system!