Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (39 sloc) 1.856 kb
c92668b @jacoby typo err in README
authored
1 Copyright 2011 Dave Jacoby <http://pm.purdue.org/~jacoby/>
ac7011e @jacoby added to readme
authored
2
3 This program is free software: you can redistribute it and/or
4 modify it under the terms of the GNU General Public License as
5 published by the Free Software Foundation, either version 3 of
6 the License, or (at your option) any later version.
7
8 ----
9
10 Not too sure the format for this and what belongs here.
11
12 I created this program to handle via perl the increasingly large number of
13 SSHFS-mounted filesystems I was using. This program keeps track of the filesystems,
14 both remotely and local mountpoints, but not passwords.
15
16 Configuration is held in ~/.mount.conf, which looks like this :
17
18 ### .mount.conf
19 # like many config files, hashes comment out
20
62d179d @jacoby added group capability
authored
21 Machine1 |G|M|sshfs|machine1.long.url: | /home/me/Machine1
22 Machine2 |G| |sshfs|machine2.long.url: | /home/me/Machine2
ac7011e @jacoby added to readme
authored
23 # ^ M indicates mounting via mount-all setting
62d179d @jacoby added group capability
authored
24 Machine2Log |G|M|sshfs|machine2.long.url:/var/log | /home/me/Machine2log
ac7011e @jacoby added to readme
authored
25
26 The fields are:
27 Name - the name of this mountpoint, for individual mounting and unmounting
62d179d @jacoby added group capability
authored
28 Group - the name of the group this mountpoint is in, to allow the mounting
29 and unmounting of specific groups of file systems
ac7011e @jacoby added to readme
authored
30 M - indicates whether this gets mounted on mount-all
31 Protocol - right now, only sshfs is supported
32 Remote - follows the SSHFS syntax for remote mounts:
33 network_address:/remote/file/system/if/any
34 Local - where the mount point is on the local file system
62d179d @jacoby added group capability
authored
35
36
37 Usage:
38 mount.pl
39 Mounts all
40 mount.pl -Q
41 Unmounts all
42 mount.pl -g Foo -g Bar
43 Mounts members of groups Foo and Bar
44 mount.pl -d Foo -d Bar
45 Unmounts members of groups Foo and Bar
46 mount.pl -m Blee -m Quuz
47 Mounts systems named Blee and Quuz
48 mount.pl -u Blee -u Quuz
49 Unounts systems named Blee and Quuz
Something went wrong with that request. Please try again.