Ignore non-existing source

Hello,

I have an archive disk that is not always mounted, but has snapshot sources. kopia snapshot create --all fails when the disk is not mounted.

Snapshotting root@osiris:/run/media/florian/Archive/Musik ...
 - 0 hashing, 0 hashed (0 B), 0 cached (0 B), uploaded 12.1 MB, estimating...ERROR encountered 2 errors:
failed to prepare source: unable to get local filesystem entry: resolveSymlink: stat: lstat /run/media/florian/Archive/Musik: no such file or directory
upload error: unsupported source: root@osiris:/run/media/florian/Archive/Musik

which IMO is a fair default behavior, but can it be changed so that it doesn’t fail and merely produces a warning?

Thanks!

Try to set below policies to true (default is false):

--ignore-dir-errors 			Ignore errors reading directories while traversing (’true’, ‘false’, ‘inherit
--ignore-file-errors 			Ignore errors reading files while traversing (’true’, ‘false’, ‘inherit’)

in UI:

Let us know if it does the trick.

Sorry, does not change anything:

  Ignore file read errors:           true   (defined for this target)
  Ignore directory read errors:      true   (defined for this target)

but still

Snapshotting root@osiris:/run/media/florian/Archive/Musik ...
 - 0 hashing, 0 hashed (0 B), 0 cached (0 B), uploaded 16.5 MB, estimating...ERROR encountered 4 errors:
failed to prepare source: unable to get local filesystem entry: resolveSymlink: stat: lstat /run/media/florian/Archive/Backup: no such file or directory
upload error: unsupported source: root@osiris:/run/media/florian/Archive/Backup
failed to prepare source: unable to get local filesystem entry: resolveSymlink: stat: lstat /run/media/florian/Archive/Musik: no such file or directory
upload error: unsupported source: root@osiris:/run/media/florian/Archive/Musik 

The return code is 1 and no maintenance is done afterwards.

well maybe it is not possible then by using simple means. As a workaround you can wrap kopia snapshot create in some script and snapshot only available sources.