Hi there,
I have a seaweedfs filesystem, which has a “broken” file (named ?W?B?0!?\u0001
). I am not sure what is going on there, since I can’t even read it correctly, if I ls
the folder, everything else is shown, also this happens:
ls: cannot access '/opt/aptly/.aptly/?W?B?0!?'$'\001': No such file or directory
There are other directories in the same level, which are full of “normal” files. But that broken file causes restic to fail early with an error like:
{"message_type":"status","seconds_elapsed":7,"percent_done":0,"total_files":1}
{"message_type":"error","error":{},"during":"archival","item":"/opt/aptly/.aptly"}
{"message_type":"error","error":{"Op":"lstat","Path":"/opt/aptly/.aptly/?W?B?0!?\u0001","Err":2},"during":"scan","item":"/opt/aptly/.aptly/?W?B?0!?\u0001"}
{"message_type":"summary","files_new":0,"files_changed":0,"files_unmodified":1,"dirs_new":0,"dirs_changed":2,"dirs_unmodified":1,"data_blobs":0,"tree_blobs":3,"data_added":1365,"total_files_processed":1,"total_bytes_processed":0,"total_duration":8.128964209,"snapshot_id":"91367277"}
I was expecting it to skip that file, continue backing up others and end up with a “some files can’t be read” warning at the end & get return code 3. But restic seems to have a real error here and reporting back total_files_processed:1
(despite creating the snapshot with only few empty folders leading up to that file).
So my questions are:
- Is this expected or shall I file an issue?
- Is there a way to tell “skip unreadable/broken/weird files” to the
backup
command?
Thanks!