SCP syncer
Project description
SCPSyncer
SCPSyncer is a python module that syncs files to a remote machine. It does this by calculating file hashes on both sides, and pushing the files that have different hashes to the remote machine.
Configuration files
There are 2 files that configure the behaviour of syncing
.syncconfig
.syncconfig
is a YAML file with the sync configuration
CONFIG_NAME:
inherit: CONFIG_NAME OF OTHER CONFIGURATION TO INHERIT MISSING KEYS FROM
host: IP_OR_HOSTNAME
user: USERNAME
password: PASSWORD
target_path: /PATH/ON/REMOTE
commands:
sync_start: COMMAND TO EXECUTE BEFORE SYNCING
post_hash: COMMAND TO EXECUTE AFTER HASHES ARE CALCULATED
sync_end: COMMAND TO EXECUTE AFTER SYNCING
diff_extensions: ['.py', '.json'] # EXTENSIONS OF FILES THAT SHOULD HAVE DIFFS PRINTED
diff_only: SET TO TRUE IF IT SHOULD JUST CALCULATE HASHES AND PRINT DIFFS
.syncignore
A text file with globs of files to ignore when syncing - same structure as .gitignore file.
Multiple .syncignore
files can be in (sub)directories
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
SCPSyncer-0.1.tar.gz
(6.3 kB
view details)
Built Distribution
SCPSyncer-0.1-py3-none-any.whl
(10.3 kB
view details)
File details
Details for the file SCPSyncer-0.1.tar.gz
.
File metadata
- Download URL: SCPSyncer-0.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c759b0598d93eae2a22c51021c576328e327c2816dae2d17d9e45fa20b02c0db |
|
MD5 | 010d0d9d56171987ef3a799838703ae2 |
|
BLAKE2b-256 | 0cfbf145d782fe79329a5076fc8f1270ebcdafe358f812844d68132af7122c4d |
File details
Details for the file SCPSyncer-0.1-py3-none-any.whl
.
File metadata
- Download URL: SCPSyncer-0.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 153c44713d3b32bde9657114b8e4500ac55a8cacc9b72c5581060865d875dbe1 |
|
MD5 | f47555ca839c2d1f1be612e740800b56 |
|
BLAKE2b-256 | cb8ee2bccd9862dd2e4560fa1139691ec529ed69fbf54cc1114572871dd2b8c9 |