Giter Site home page Giter Site logo

wnyc / autosync Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 308 KB

An extensible framework to synchronize a local directory to a remote location. Will support S3, Rackspace and generic http based workflows

License: GNU General Public License v3.0

Python 100.00%

autosync's People

Stargazers

 avatar  avatar

Watchers

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

Forkers

pombredanne

autosync's Issues

Support moves

Inotify can detect when a file is renamed. Many backends support file rename or copy operations. Support file moving to prevent unnessesary uploads

Custom backend/server

Through inotify autosync has specific knowledge about which ranges have been changed within a file. Create an rsync or custom transfer service that can accept byte ranges.

Retry on actor error

When the actor is unable to upload a file due to a recoverable error at its end, reschedule the operation.

inotify does not catch new directory creation

Creating and filling a new directory does not trigger an upload.

autosync --target_container=project2.wnyc.net --source_prefix=/var/www /var/www

mkdir /var/www/foobar2
echo hello world > /var/www/foobar2/index.html

index.html does not get uploaded.

Deduplication

Backends that support md5 are able to detect if a file already exists under another name.

  • Support the detection of duplicate files in the target and the use of move instead.
  • Provide a flag to disable this

add_watch leaks

When a new directory is created we add a watch, but watches are not later removed when directories are removed. Check if this is a problem and if it is, catch deletions to remove watches.

Allow actors to double check flags options

The actor interface should support a "validate_flags" option that will example the flag's it depends upon to make sure they are "sane." This is especially important for actors that use common flags such as --source-prefix and have requirements about path strings such as a mandatory leading /

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.