# oss-backupd Backup file or directory to OSS, can be encrypted. Config read order: 1. from command line, `--config` or `-c` 1. from `./oss-backupd-config.json` 1. from `~/.oss-backupd-config.json` 1. from `/etc/oss-backupd/config.json` Usage: Help ```shell $ oss-backupd -h Usage: ./target/debug/oss-backupd [OPTIONS] oss_backupd - command line OSS backup tool. Optional arguments: -h,--help Show this help message and exit -V,--version Print version -v,--verbose Verbose -c,--config CONFIG Config file ``` Run with config file ```shell $ oss-backupd -c sample-backupd-config.json Compressing opt.rs, Finished: 1.16KB, Speed: - Compressing oss_util.rs, Finished: 5.28KB, Speed: - Compressing pgp_util.rs, Finished: 3.00KB, Speed: - Compressing config_util.rs, Finished: 10.84KB, Speed: - Compressing main.rs, Finished: 9.25KB, Speed: - Compressing zip_util.rs, Finished: 2.57KB, Speed: - [OK ] Success, at item index: 0 [OK ] Backup all file(s) finished! ```
Use direct signed URL or SDK? OSS SDK in Rust: * https://crates.io/crates/oss_rust_sdk * https://github.com/NoXF/oss-rust-sdk PGP in Rust: * https://crates.io/crates/pgp * https://crates.io/crates/openpgp * https://github.com/rpgp/rpgp * https://crates.io/crates/gpgrv * https://crates.io/crates/sequoia-openpgp **keys.openpgp.org** uses: Sequoia-PGP ( https://sequoia-pgp.org/ )
On Linux: ``` git clone https://git.lysator.liu.se/nettle/nettle cd nettle ./.bootstrap ./configure make sudo make install ```