Giter Site home page Giter Site logo

fuse-rsync's Introduction

fuse-rsync

A FUSE filesystem that lets you mount remote rsync modules.

Installation

Install the python-fuse package on your distro (at least that is how it is called in Ubuntu).

Usage

The module has several mount options:

  • host: The rsync host where the module is hosted. If the host is listening on a non-standard port, just append the port with the usual colon notation.
  • module: Name of the rsync module.
  • path: If you do not want to export the root of the module but a subpath, specify the subpath here.
  • user: User name that is used to connect to that module.
  • password: Rsync password that is used to connect to that module.

A sample invocation of the command could look like this:

python fuse_rsync.py -o host=remoteserver,module=mymodule,user=nobody,password=none /mnt

to connect to the rsync module mymodule on remoteserver with user nobody and password none and mount it to /mnt. Other useful switches might be -f to keep the execution of the program in foreground and see logging output, and -d to see debugging output.

To unmount, use fusermount -u /mnt.

Notes

There is some rudimentary caching for filesystem attributes, which should work fine because the filesystem is read-only, but might be a nuisance if files are changed frequently on the remote side. Broken symlinks will currently kill the program, and symlinks are converted to files in the process of copying. Overall the program has a hacky quality and should be taken more for learning than for production purposes.

fuse-rsync's People

Contributors

zaddach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fuse-rsync's Issues

Large Files Not Supported

Looks like when I use fuse-rsync all the files that are small show up, but large files don't. I'm not sure where the line is between small and large, but I can't see 4GB files that are on the rsync server, but can see 308 byte files.

beware of comma in file size

RE_LINE = re.compile("^(ldcbps-{3})\s+([0-9**,]+)\s+([0-9]{4}/[0-9]{2}/[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}) (.*)$")
"size": int(match.group(3)
.replace(',', '')**),

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.