Index defined mount points and mount them read-only from cache where the resource is not available (disk unplugged, network not reachable, …).
Configuration should be set in a config.yaml file.
remotes:
- name: my-remote-host
type: sshfs
path: user@host:path
- name: my-passport
type: disk
path: /dev/disk/by-uuid/3df07bb7-0182-4744-92f7-3e96dc16dbe7
- name: on-pc
type: local
path: /local-path
disk
: any internal or pluged in disksshfs
: an ssh connection using sftplocal
: a local directory
- for
disk
, audev
unique device path usingUUID
, i.e. starting with/dev/disk/by-uuid/
.UUID
could be found by runningblkid
command. - for
sshfs
, a sshfs parameter url:[login@]host[,port]:path
.port
syntax is an addition to sshfs original url. - for
local
, a simple real directory path.
./pycatalog directory
The directory should contains the config.yaml file.
A mount directory will appear inside this where you could find your files.