Merge pull request #15 from ThomasWaldmann/master

better docs
This commit is contained in:
TW 2015-05-15 19:45:59 +02:00
commit 10c0f4e1d4
2 changed files with 6 additions and 6 deletions

View File

@ -146,10 +146,10 @@ or::
Remote operations over SSH can be automated with SSH keys. You can restrict the Remote operations over SSH can be automated with SSH keys. You can restrict the
use of the SSH keypair by prepending a forced command to the SSH public key in use of the SSH keypair by prepending a forced command to the SSH public key in
the remote server's authorized_keys file. Only the forced command will be run the remote server's authorized_keys file. Only the forced command will be run
when the key authenticates a connection. This example will start attic in server when the key authenticates a connection. This example will start |project_name| in server
mode, and limit the attic server to a specific filesystem path:: mode, and limit the |project_name| server to a specific filesystem path::
command="attic serve --restrict-to-path /mnt/backup" ssh-rsa AAAAB3[...] command="borg serve --restrict-to-path /mnt/backup" ssh-rsa AAAAB3[...]
If it is not possible to install |project_name| on the remote host, If it is not possible to install |project_name| on the remote host,
it is still possible to use the remote host to store a repository by it is still possible to use the remote host to store a repository by

View File

@ -24,7 +24,7 @@ Examples
# Local repository # Local repository
$ borg init /mnt/backup $ borg init /mnt/backup
# Remote repository # Remote repository (accesses a remote borg via ssh)
$ borg init user@hostname:backup $ borg init user@hostname:backup
# Encrypted remote repository # Encrypted remote repository
@ -175,8 +175,8 @@ Examples
~~~~~~~~ ~~~~~~~~
:: ::
# Allow an SSH keypair to only run attic, and only have access to /mnt/backup. # Allow an SSH keypair to only run |project_name|, and only have access to /mnt/backup.
# This will help to secure an automated remote backup system. # This will help to secure an automated remote backup system.
$ cat ~/.ssh/authorized_keys $ cat ~/.ssh/authorized_keys
command="attic serve --restrict-to-path /mnt/backup" ssh-rsa AAAAB3[...] command="borg serve --restrict-to-path /mnt/backup" ssh-rsa AAAAB3[...]