|0.2.15||Oct 27, 2022|
|0.2.14||Oct 27, 2022|
|0.1.6||Oct 13, 2022|
#15 in #sync
52 downloads per month
ServerSync is a small simple tool which synronizes files between on your server.
To install server sync you will require the cargo package manager. You can install cargo by running the following command:
curl https://sh.rustup.rs -sSf | sh
This will work on any distro however you may want to instead use your package manager to install cargo.
Once you have cargo installed you can install server sync by running the following command:
cargo install server_sync
Required environment variables:
SERVER_SYNC_ENV- The env file to load data from.
SERVER_SYNC_REPO- The git repository to clone sync from. (e.g.
SERVER_SYNC_BRANCH- The branch to sync from.
SERVER_SYNC_DESTINATION- The final destination for your files.
SERVER_SYNC_CONTEXTS- A string of contexts to sync. (e.g.
SERVER_SYNC_REPO_STORAGE- The location to store the git repository. (e.g.
UID | USER- The user that should own the files.
GID | GROUP- The group that should own the files.
To use server sync cd into the git repository you want to sync. Once you are in the git repository you can run the following command: