Add key persistence documentation

This commit is contained in:
valentinab25 2022-07-08 18:46:26 +03:00 committed by GitHub
parent b574c1f112
commit 5888cc30c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,15 @@ Start client to pack and sync every night:
Copy the client SSH public key printed found in console Copy the client SSH public key printed found in console
### SSH key persistence
To use the same generated keys on docker container re-creation, you need to persist the key directory ( `/root/.ssh` ) in a Docker volume. On first start the keys will be created, and then, on all subsequent starts they will be re-used.
For example, you can use a volume called `ssh-key` like this:
$ docker run --name=rsync_client -v ssh-key:/root/.ssh -v client_vol_to_sync:/data
eeacms/rsync client
### Server setup ### Server setup
Start server on `foo.bar.com` Start server on `foo.bar.com`