Synclady

Syncs local file changes to a server over RSync via SSH

View the Project on GitHub skcript/synclady

Synclady

Syncs local file changes to a server over RSync via SSH

Requirements

Make sure you have added your local public key to the servers ~/.ssh/authorized_keys. Else SSH will wait for password to be entered by user.

Dependencies

Installing

  1. Clone/Download this Repo
  2. Run python setup.py install
  3. Copy the default YAML file to ~ (users home directory).

Running Synclady

From Terminal, run synclady sync

This will start a file listener on the local source directory and push changes to the server source directory.

Functions

YAML configuration

This YAML is automatically created in the ~ (users home directory) directory. It holds all the configuration attributes for Synclady.

Attributes

Default File

  source:
    local: /Users/username/data/
    server: /uploads/username/
    ip: sample@192.168.1.1
  endpoints:
    file_create: "http://192.168.1.1/api/files/create"
    file_destroy: "http://192.168.1.1/api/files/destroy"
    folder_destroy: "http://192.168.1.1/api/folders/destroy"

Logs

All Synclady logs are maintained at /tmp/synclady.log

Coming up

  1. Pulling servers contents periodically to local directory
  2. Pushing files and folders which were deleted when local was offline to server

License

Copyright 2016 Skcript.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Skcript

Synclady is maintained and funded by Skcript. The names and logos for Skcript are properties of Skcript.

We love open source, and we have been doing quite a bit of contributions to the community. Take a look at them here. Also, encourage people around us to get involved in community operations. Join us, if you'd like to see the world change from our HQ.