Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jacoby/mount.pl

Handles the mounting and unmounting of remote filesystems via FUSE and SSHFS
https://github.com/jacoby/mount.pl

fuse perl ssh

Last synced: 2 months ago
JSON representation

Handles the mounting and unmounting of remote filesystems via FUSE and SSHFS

Awesome Lists containing this project

README

        

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:
network_address:/remote/file/system/if/any
Local - where the mount point is on the local file system

Usage:
mount.pl
Mounts all
mount.pl -Q
Unmounts all
mount.pl -g Foo -g Bar
Mounts members of groups Foo and Bar
mount.pl -d Foo -d Bar
Unmounts members of groups Foo and Bar
mount.pl -m Blee -m Quuz
Mounts systems named Blee and Quuz
mount.pl -u Blee -u Quuz
Unounts systems named Blee and Quuz