From 8f9eb05ddb5a5b268a8d975f897c8d30d45e5cc3 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Tue, 25 Jan 2022 22:54:11 +1030 Subject: [PATCH] Update docs --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3145b56..f503c3e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ as part of a pipeline, obviating the need for dealing with temporary files. host-B$ netgiv | psql restoredb Note that since netgiv uses a persistent server, there is no need to setup both ends -of the pipeline in advance. +of the pipeline in advance (compared to netcat or similar tools). All data is encrypted in flight (though not in the temporary files on the server). Access to the server is granted by an authentication token (preshared key) of your choice. @@ -76,6 +76,16 @@ To check the list of files on the server: netgiv -l +If you would like to fetch (paste) a particular file: + + netgiv -p 2 > file.png + +Where '2' comes from the information provided in the `-l` output. It is the +second most recent file that was copied to the server. + +Note that providing no `-p` option is the same as `-p 1` which means "the most +recent file". + ### Alternative ways of providing the authtoken It's possible that you do not trust the hosts you are running the `netgiv` client on,