Skip to main content

No project description provided

Project description

Automatic Incremental Uploads

I often develop things on my laptop and then need to test them on a server when I program for hardware that I don't have in my laptop. For this it is nice to have automatic upload of changed files to the remote server.

The CLion/PyCharm IDE has upload functionality for SFTP built-in, it just gets stuck every now and then. There doesn't seem to be a way to get it unstuck again except for waiting like half an hour. Therefore I want to have an independent tool that does this and where I can restart just this part.

This works by setting an inotify watch on a directory tree. Whenever there are changes it will propagate these changes to the remote server. The remote is mounted via SSH FS as this works nicely with the SSH agent running and uses the SSH config. The pysftp package is based on the Paramiko library that doesn't support CA entries in the known hosts file and therefore isn't of much use for me in the intended context.

In order to use this program, create a configuration file in TOML format somewhere. It must contain the following four elements:

remote = 'host:/path/to/your/workspace'
mountpoint = '/home/mu/mnt'
basedir = '/home/mu/your/workspace'
include = 'some/path/inside/basedir'

The remote is what SSH FS shall mount. The mountpoint is where it should mount that to. The basedir is your local path that corresponds to what is mounted into the root of the mountpoint. Within that workspace you don't need to sync everything, you can also restrict it to some subdirectory via include. At the moment only one such include is supported.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automatic_incremental_uploads-0.1.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page