Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (39 sloc) 1.81 KB
Copyright 2011 Dave Jacoby <>
This program is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Not too sure the format for this and what belongs here.
I created this program to handle via perl the increasingly large number of
SSHFS-mounted filesystems I was using. This program keeps track of the filesystems,
both remotely and local mountpoints, but not passwords.
Configuration is held in ~/.mount.conf, which looks like this :
### .mount.conf
# like many config files, hashes comment out
Machine1 |G|M|sshfs|machine1.long.url: | /home/me/Machine1
Machine2 |G| |sshfs|machine2.long.url: | /home/me/Machine2
# ^ M indicates mounting via mount-all setting
Machine2Log |G|M|sshfs|machine2.long.url:/var/log | /home/me/Machine2log
The fields are:
Name - the name of this mountpoint, for individual mounting and unmounting
Group - the name of the group this mountpoint is in, to allow the mounting
and unmounting of specific groups of file systems
M - indicates whether this gets mounted on mount-all
Protocol - right now, only sshfs is supported
Remote - follows the SSHFS syntax for remote mounts:
Local - where the mount point is on the local file system
Mounts all -Q
Unmounts all -g Foo -g Bar
Mounts members of groups Foo and Bar -d Foo -d Bar
Unmounts members of groups Foo and Bar -m Blee -m Quuz
Mounts systems named Blee and Quuz -u Blee -u Quuz
Unounts systems named Blee and Quuz