RSyncDaemon
Python based CLI Remote Syncing Daemon service.
Features
- Real time Remote syncing
- Used secure shell session for data transfer
- Configurable with custom config
Installation
pip install rsyncdaemon
Configuration
configuration file present at ~/.rsyncdaemon/rsyncdaemon.conf.
- please create configuration file if not present.
- replace values with correct values
- remove configs that does not require
default configuration:
[SyncConfig]
local_dir = ""
remote_dir = ""
ssh_host = "localhost"
ssh_port = 22
ssh_username = "jackson"
ssh_password = ""
ssh_private_key_path = ""
rsync_command = "rsync"
rsync_options = [ "-az", "--delete",]
exclude_patterns = []
[LogConfig]
log_file_path = "/home/jackson/.rsyncdaemon/rsyncdaemon.log"
log_max_size = 10485760
log_backup_count = 5
minimum configuration:
[SyncConfig]
local_dir = ""
remote_dir = ""
ssh_host = "localhost"
ssh_port = 22
ssh_username = "jackson"
ssh_password = ""
ssh_private_key_path = ""
NOTE:
- Remember to remove one of the option either
ssh_passwordorssh_private_key_path - configuration supports toml file type/format, i.e. it supports list/object inside config file
Usage
with Default config file
rsyncdaemon
with Custom config file
rsyncdaemon -c <config file path>
eg: rsyncdaemon -c ~/Documents/rsyncdaemon_custom_config.conf
Help
rsyncdaemon -h
Version
rsyncdaemon -v
Use as a system service
NOTE: Required sudo permission
# install Package
sudo pip install rsyncdaemon
# Create rsyncdaemon home directory somewhere. for eg /tmp/rsyncdaemon/
mkdir /tmp/rsyncdaemon/
# create config file at /tmp/rsyncdaemon/rsyncdaemon.conf inside rsyncdaemon home directory created above
[SyncConfig]
local_dir = ""
remote_dir = ""
ssh_host = "localhost"
ssh_port = 22
ssh_username = ""
ssh_password = ""
ssh_private_key_path = ""
rsync_command = "rsync"
rsync_options = [ "-az", "--delete",]
exclude_patterns = []
[LogConfig]
log_file_path = "/var/log/rsyncdaemon.log"
log_max_size = 10485760
log_backup_count = 5
# replace with correct values
# create service file at /etc/systemd/system/rsyncdaemon.service with following content
[Unit]
Description=RSync daemon Service
After=network.target
[Service]
User=root
Group=root
ExecStart=/usr/bin/rsyncdaemon -c /tmp/rsyncdaemon/rsyncdaemon.conf
Restart=always
[Install]
WantedBy=multi-user.target
# Reloading Change to Systemd Unit Files
sudo systemctl daemon-reload
# Start service
sudo systemctl start rsyncdaemon
# Enable service to start on boot
sudo systemctl enable rsyncdaemon
# check status
sudo systemctl status rsyncdaemon
# check logs
sudo tail -f /var/log/rsyncdaemon.log
# To stop service
sudo systemctl stop rsyncdaemon
# To remove service
sudo systemctl disable rsyncdaemon
sudo rm /etc/systemd/system/rsyncdaemon.service
Uninstall
pip uninstall rsyncdaemon
Who do I talk to?
- Repo owner or admin
- Other community or team contact
Metadata
Release files for rsyncdaemon 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rsyncdaemon-0.0.1.tar.gz | 43.2 kB | Without provenance | Details for rsyncdaemon-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rsyncdaemon-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for rsyncdaemon-0.0.1-py3-none-any.whl |
Total release size: 73.9 kB
Release files / rsyncdaemon-0.0.1.tar.gz
| Download URL | rsyncdaemon-0.0.1.tar.gz |
|---|---|
| Size | 43.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99e23fd01c21099827eef74020f6de239fa8907b3b047a83544b2688fbf25f91
|
|
BLAKE2b-256 checksum How to use checksums |
e678644d251f68635787dff4d58762eb5dd75fbcdf2425ab0fb0f4332c3f233e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / rsyncdaemon-0.0.1-py3-none-any.whl
| Download URL | rsyncdaemon-0.0.1-py3-none-any.whl |
|---|---|
| Size | 30.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50d06c284815c7e3012107c6007c9d9cb5ccfb41b0a4fc325a6b7637e133adbb
|
|
BLAKE2b-256 checksum How to use checksums |
719e39623a31710eb10ed1743070baa9ea9bf74a827e654f05e5ddd322ba1f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for rsyncdaemon 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.