Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Draft Map v2

glenux edited this page Jan 10, 2012 · 11 revisions

Draft for maps descriptions

About

In Qasim, *.map files, stored in ~/.config/qasim/maps.d/ or /etc/qasim/maps.d/ describe a connection to a server and the various interesting directories (volumes) to make accessible within that connection.

Constraints

  • One map file per user@server
  • One set of SSH options per map
  • An easily computer parsable/writable file format (not bind-like...)
  • An easily human readable/writable file format (not xml-like...)

Proposal A : An ini file

[connection]
name = Example Map

; Remote server information
host = sftp.example.com
port = 22
user = johndoe

; SSH related options
cipher = arcfour
reconnect = true

; volume count
volumes = 3    


[volume.1]
; Automatically mount this share at qasim startup
automount = false;
; Mapping information
remote_path = 
local_path = ~/mnt/Somewhere


[volume.2]
...


[volume.3]
...

Proposal B : A yaml file

connection:  
  name: Example Documents
  host: sftp.example.com
  port: 22
  user: john
  cipher: arcfour
  reconnect: true
volumes:
  - remote_path: ~/documents
    local_path: ~/mnt/Example.Documents
    automount: false
  - ...
  - ...
Clone this wiki locally