So I had an SSD failing with ext4, (due to server overheating)
file sizes randomly showing up as 0bytes, I wonder how would rclone have handled that.
I guess based on modification date it wouldn't have overwritten the good backup with 0byte file.
Nevertheless, I will always use --min-size 1B (although doc says smallest unit is K)
But I was wondering it might be beneficial to have a switch to prevent overwritting files with 0bytes, thus empty files are still copied over.
are you familiar with --size-only ?
I think checking the modification time is safer in this case.
--min-size - Don't transfer any file smaller than this
Controls the minimum size file within the scope of an rclone command. Default units are KiB but abbreviations K, M, G, T or P are valid.
No B here.
sorry, not sure that that means, can you share a detailed example?
Sure thing,
C:\cv.doc 1KB // day to day SSD drive, gets corrupted, new size will be 0bytes
B:\cv.doc 1KB // backup
C: drive gets corrupted, C:\cv.doc turns into 0byte length when read,
so to protect against the fault migrating to backups we could add a switch to prevent overwriting existing files in B:\ with zero length ones.
(but still allow to copy empty files if they are not seen on backup yet)
Data can be very expensive, and if the auto backup tool helps to destroy backups that's not good.
Yeah, versioning is a solution, just needs redundant space.
I didn't see this feature anywhere else, I guess not many people had partially failed disks. I'm happy with --min-size 0B, it's just not the best solution.