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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file automatic_incremental_uploads-0.1.0.tar.gz
.
File metadata
- Download URL: automatic_incremental_uploads-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.12.1 Linux/6.6.6-200.fc39.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 532ece07813ce0dbde3bb97e3248929bd9a39a81b7e3d9c4de5b7575274e4754 |
|
MD5 | 34c52846cea07ccb77af8f117511fd5d |
|
BLAKE2b-256 | aad4b83b79767379997ad29d6b0702f63f67a331cee1bd732524747c2d894cd5 |
File details
Details for the file automatic_incremental_uploads-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: automatic_incremental_uploads-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.12.1 Linux/6.6.6-200.fc39.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c14c46de00f4fe67760b806b818281bbeb8917b74da20c0b72032956f82046b |
|
MD5 | 505d961d6dc79cb52b1a11e6ffa94b21 |
|
BLAKE2b-256 | 121257b6b680fd149a6a10fee928f67270e0f7f6621a2643acbac4b350a7b0ec |