[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: command-line report of account status
On 10/08/13 16:12, ed wrote:
> I would love to have a command-line app that outputs the same information that I
> can get from the Tarsnap Account Management Interface on the webpage. Perhaps a
> default output of my current account balance with options to output Recent
> Account Activity, Recent Activity for an Individual Machine, etc.
Have you tried wget? ;-)
> I run a daily script that backs up my server, builds a logfile of the process,
> and then emails me the logfile. I include a listing of all archives currently
> in storage. I keep wishing that I could add my current account status so that I
> could know when I need to add funds.
>
> I realize that this may not be trivial, as the account information may not be
> available through tarsnap key authentication. I'm hoping that I'm wrong and
> that it'll be relatively simple either to add a command-line option to tarsnap
> or to create a separate small binary.
You're correct that the keys held by an individual machine are not sufficient
to view *account* information, since they're specific to that one machine. If
someone manages to steal the keys for one machine you probably wouldn't want
them to be able to get a list of all your other machines and how much data they
have stored anyway.
I know there are tarsnap users who are using wget or curl to download the "CSV"
formatted account data from the tarsnap website and then feed that into scripts;
right now this is the only supported way to automate this process.
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid