Info from rsync.net for photo-dash
The photo-dash
project is a series of modules and an endpoint. This repository specifically features some integration with rsync.net, specifically in regards to quotas.
After setup, run photo-dash-rsync.net.sh.
This code is designed around the following:
- Bash
bc
: mathcurl
: requestsjq
: JSON parsingssh
should already be set up with password-less login, ideally restricting a key to only call thequota
command- have a look at the example for ideas
- Make sure both
bc
,curl
, andjq
are installed on your local machine. You should also already havessh
installed and set up on the rsync.net host. You may restrict the command for your key to only callquota
. You should also add an entry to~/.ssh/config
for quicker access. - Copy and rename the configuration to
config.json
. Bothssh_host
andendpoint
are not optional;ssh_user
is optional.ssh_host
is your host but can be represented in~/.ssh/config
, a more granular approach to host management. - Try connecting to the host, preferably with a command like this:
ssh rsync.net quota
. (In this example,rsync.net
is a host configuration with user and server defined.) You will need to accept the fingerprint before your command will continue. If you plan to run this automatically, also make sure that password-less login works. - Run photo-dash-rsync.net.sh, preferably with
cron
.
This project is not affiliated with or endorsed by rsync.net. See LICENSE for more detail.