diff --git a/doc/030_preparing_a_new_repo.rst b/doc/030_preparing_a_new_repo.rst index c1e4377bf..2d457494a 100644 --- a/doc/030_preparing_a_new_repo.rst +++ b/doc/030_preparing_a_new_repo.rst @@ -819,7 +819,7 @@ should belong to the appropriate group. .. code-block:: console - $ restic backup -r sftp:restic@repohost:/srv/restic-repo + $ restic -r sftp:restic@repohost:/srv/restic-repo backup In the example, the command could be run by the local user ``root`` who can read all the files on the client host, and send them for backup using a remote user ``restic`` diff --git a/doc/045_working_with_repos.rst b/doc/045_working_with_repos.rst index 1a7db7d6e..32984ac7a 100644 --- a/doc/045_working_with_repos.rst +++ b/doc/045_working_with_repos.rst @@ -374,7 +374,7 @@ perform. version of restic or some third-party implementation. To convert a snapshot into the format expected by the ``rewrite`` command - use ``restic repair snapshots ``. + use ``restic -r /srv/restic-repo repair snapshots ``. Modifying metadata of snapshots =============================== @@ -385,7 +385,7 @@ This is possible using the ``rewrite`` command with the option ``--new-host`` fo .. code-block:: console - $ restic rewrite --new-host newhost --new-time "1999-01-01 11:11:11" + $ restic -r /srv/restic-repo rewrite --new-host newhost --new-time "1999-01-01 11:11:11" repository b7dbade3 opened (version 2, compression level auto) [0:00] 100.00% 1 / 1 index files loaded diff --git a/doc/manual_rest.rst b/doc/manual_rest.rst index 4083762d9..2382e7c87 100644 --- a/doc/manual_rest.rst +++ b/doc/manual_rest.rst @@ -253,9 +253,7 @@ repository. .. code-block:: console - $ restic -r backup find test.txt - debug log file restic.log - debug enabled + $ restic -r /srv/restic-repo find test.txt enter password for repository: found 1 matching entries in snapshot 196bc5760c909a7681647949e80e5448e276521489558525680acf1bd428af36 -rw-r--r-- 501 20 5 2015-08-26 14:09:57 +0200 CEST path/to/test.txt @@ -457,7 +455,7 @@ If the relevant environment variables are not set, restic exits with an error message. The command line parameter ``--cache-dir`` or the environment variable -``$RESTIC_CACHE_DIR`` can be used to override the default cache location. The +``$RESTIC_CACHE_DIR`` can be used to override the default cache location. The parameter ``--no-cache`` disables the cache entirely. In this case, all data is loaded from the repository.