diff --git a/docs/faq.rst b/docs/faq.rst index 134a52dbb..7832d5da9 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -94,7 +94,7 @@ retransfer the data since the last checkpoint. If a backup was interrupted, you normally do not need to do anything special, just invoke ``borg create`` as you always do. If the repository is still locked, -you may need to run ``borg break-lock`` before the next backup. You may use the +you may need to run ``borg break-lock`` before the next backup. You may use the same archive name as in previous attempt or a different one (e.g. if you always include the current datetime), it does not matter. @@ -265,7 +265,7 @@ Say you want to prune ``/var/log`` faster than the rest of archive *names* and then implement different prune policies for different prefixes. For example, you could have a script that does:: - borg create $REPOSITORY:main-$(date +%Y-%m-%d) --exclude /var/log / + borg create --exclude /var/log $REPOSITORY:main-$(date +%Y-%m-%d) / borg create $REPOSITORY:logs-$(date +%Y-%m-%d) /var/log Then you would have two different prune calls with different policies:: diff --git a/docs/usage/create.rst b/docs/usage/create.rst index ec49f5fa8..d221c4e65 100644 --- a/docs/usage/create.rst +++ b/docs/usage/create.rst @@ -23,7 +23,7 @@ Examples # Backup the root filesystem into an archive named "root-YYYY-MM-DD" # use zlib compression (good, but slow) - default is lz4 (fast, low compression ratio) - $ borg create -C zlib,6 /path/to/repo::root-{now:%Y-%m-%d} / --one-file-system + $ borg create -C zlib,6 --one-file-system /path/to/repo::root-{now:%Y-%m-%d} / # Backup a remote host locally ("pull" style) using sshfs $ mkdir sshfs-mount diff --git a/docs/usage/tar.rst b/docs/usage/tar.rst index 3b63afb4d..dc79b708e 100644 --- a/docs/usage/tar.rst +++ b/docs/usage/tar.rst @@ -11,11 +11,11 @@ Examples $ borg export-tar /path/to/repo::Monday Monday.tar.gz --exclude '*.so' # use higher compression level with gzip - $ borg export-tar testrepo::linux --tar-filter="gzip -9" Monday.tar.gz + $ borg export-tar --tar-filter="gzip -9" testrepo::linux Monday.tar.gz - # export a gzipped tar, but instead of storing it on disk, + # export a tar, but instead of storing it on disk, # upload it to a remote site using curl. - $ borg export-tar ... --tar-filter="gzip" - | curl --data-binary @- https://somewhere/to/POST + $ borg export-tar /path/to/repo::Monday - | curl --data-binary @- https://somewhere/to/POST # remote extraction via "tarpipe" $ borg export-tar /path/to/repo::Monday - | ssh somewhere "cd extracted; tar x"