Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SyncConfig

This tool is a command-line utility for synchronizing a file from a specified URL to a local directory. It automatically updates the local file if it differs from the remote file.

Installing

This tool is written in Rust, so you'll need a Rust environment to build it.

  1. Clone the repository:
git clone https://github.com/1994/SyncConfig.rs.git
cd SyncConfig.rs
  1. Build with Cargo:
cargo build --release
  1. The executable will be located in target/release/.

Configuration

Before you start, create a configuration file (e.g., config.toml) with the following parameters:

  • url: The URL of the file to synchronize.
  • target_path: The local file path where the file will be stored.
  • update_interval_secs: The synchronization interval in seconds.

Example:

url = "http://example.com/file.txt"
target_path = "local_file.txt"
update_interval_secs = 3600

Usage

./target/release/sync_config --config /path/to/config.toml

About

This tool is a command-line utility for synchronizing a file from a specified URL to a local directory. It automatically updates the local file if it differs from the remote file.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages