Syncs local file changes to a server over RSync via SSH
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.
- Python 2.7 (Developed and Tested)
- Clone/Download this Repo
- Run
python setup.py install
- Copy the default YAML file to
~
(users home directory).
From Terminal, run
synclady sync
This will start a file listener on the local source directory and push changes to the server source directory.
synclady sync
: Watches over local path defined in source in YAML configuration filesynclady pull
: Replaces local directory with server contents (use only once when you starting the application for the first time)synclady resync
: Pushes all changes which were made when local system was offline and pulls new server contents
This YAML is automatically created in the ~
(users home directory) directory.
It holds all the configuration attributes for Synclady.
source
: Local path to be watched, and server path to be synced withendpoints
: Hash of each file/folder action which should ping to an API endpoint
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"
All Synclady logs are maintained at /tmp/synclady.log
- Pulling servers contents periodically to local directory
- Pushing files and folders which were deleted when local was offline to server
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.
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.