Skip to content

Commit 286a0bb

Browse files
Merge pull request #74 from ThomasWaldmann/fix-typos-grammar
Fix typos and grammar
2 parents 6f16376 + ed2d574 commit 286a0bb

File tree

20 files changed

+93
-95
lines changed

20 files changed

+93
-95
lines changed

README.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ borg-import converts backups made with other backup software into the format use
55

66
See ``borg-import -h`` for more information.
77

8-
Potential advantages over manually doing it
8+
Potential advantages over doing it manually
99
===========================================
1010

11-
Note: we have different importers and some importers may not support all the features.
11+
Note: There are different importers, and some may not support all features.
1212

13-
- automation: less manual work, import lots of backups into a borg repo with one command
14-
- automatically makes up borg archive name from what you give + discovered timestamp
15-
- sets borg archive creation timestamp to the historically correct date/time
16-
- temporarily moves the source directory so the borg files cache will speed up borg create
13+
- Automation: less manual work; import many backups into a Borg repository with one command.
14+
- Automatically constructs the Borg archive name from the provided input and the discovered timestamp.
15+
- Sets the Borg archive creation timestamp to the correct historical date and time.
16+
- Temporarily moves the source directory so Borg's files cache can speed up ``borg create``.
1717

1818
Currently supported import formats
1919
==================================
@@ -22,8 +22,8 @@ Currently supported import formats
2222
--------------------------------------------------
2323

2424
Imports archives from an existing Borg repository into a new one.
25-
This is useful when a Borg repository needs to be rebuilt (e.g. if
26-
your borg key and passphrase was compromised).
25+
This is useful when a Borg repository needs to be rebuilt (e.g., if
26+
your Borg key and passphrase were compromised).
2727

2828
Usage: ``borg-import borg SOURCE_REPOSITORY DESTINATION_REPOSITORY``
2929

@@ -48,7 +48,7 @@ See ``borg-import rsynchl -h`` for help.
4848
`rsync-time-backup <https://github.com/laurent22/rsync-time-backup>`_
4949
---------------------------------------------------------------------
5050

51-
Similar to `rsynchl`, except with timestamp extraction optimized for `rsync-time-backup` folder names.
51+
Similar to ``rsynchl``, except with timestamp extraction optimized for ``rsync-time-backup`` folder names.
5252

5353
Usage: ``borg-import rsync_tmbackup --prefix=foo- RSYNC_ROOT BORG_REPOSITORY``
5454

@@ -58,7 +58,7 @@ Backup tools based on rsync with hard links
5858
-------------------------------------------
5959

6060
borg-import should, in principle, be able to import backups from any backup tool that is
61-
based on rsync with hard links. This requires that the tool matches the assumptions listed above for simple
61+
based on rsync with hard links, provided the tool matches the assumptions listed above for simple
6262
rsync.
6363

6464
* `backintime <https://github.com/bit-team/backintime>`_

docs/authors.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. include:: global.rst.inc
22

3-
=================
4-
Authors & License
5-
=================
3+
===================
4+
Authors and License
5+
===================
66

77
.. include:: ../AUTHORS
88

docs/changes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Changelog
22
=========
33

4-
Version 0.1 (not released yet)
5-
------------------------------
4+
Version 0.1 (unreleased)
5+
------------------------
66

77
Bug fixes:
88

docs/faq.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
.. highlight:: none
33
.. _faq:
44

5-
Frequently asked questions
5+
Frequently Asked Questions
66
==========================
77

88
My old backup program isn't officially supported. Can I still use borg-import?
99
------------------------------------------------------------------------------
1010

11-
Chances are good that your old backup program is using some
12-
kind of rsync+hardlinks mechanisms that will work with
13-
Borg-Import's ``rsynchl`` mode. If you're unsure, try to find
14-
out or ask how the program is organizing its backups.
15-
Support for the software `Back In Time`_ was discovered by
16-
simply trying it out.
11+
It is likely that your old backup program uses an
12+
rsync-with-hard-links mechanism that works with
13+
borg-import's ``rsynchl`` mode. If you're unsure, try to find
14+
out or ask how the program organizes its backups.
15+
Support for `Back In Time`_ was discovered simply by
16+
trying it.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. include:: global.rst.inc
22

3-
Borg-Import Documentation
3+
borg-import Documentation
44
=========================
55

66
.. include:: ../README.rst

docs/installation.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,27 @@
55
Installation
66
============
77

8-
To install Borg-Import, you need `Python 3`_ and `pip`_ installed. You can then either `download borg-import directly
8+
To install borg-import, you need `Python 3`_ and `pip`_ installed. You can then either `download borg-import directly
99
<https://github.com/borgbackup/borg-import/archive/master.zip>`_
10-
or clone it from the `githubrepo`_.
10+
or clone it from GitHub_.
1111
Extract the downloaded .zip if necessary.
12-
Open a terminal in the borg-import directory and execute the following to install the program via pip:
13-
:code:`pip install --user -e .`
12+
Open a terminal in the borg-import directory and execute the following to install the program via pip: ``pip install --user -e .``
1413

15-
If you have */home/user/.local/bin/* in your ``PATH`` variable, you can then start using Borg-Import.
14+
If you have */home/user/.local/bin/* in your ``PATH`` variable, you can then start using borg-import.
1615
Otherwise, you will need to add *.local/bin/* to your ``PATH``.
1716

1817
For Developers
1918
--------------
2019

21-
If you're planning to contribute to Borg-Import, you should set up the development environment:
20+
If you're planning to contribute to borg-import, you should set up the development environment:
2221

2322
1. Install development dependencies:
2423

25-
:code:`pip install -r requirements.d/development.txt`
24+
``pip install -r requirements.d/development.txt``
2625

2726
2. Set up pre-commit hooks:
2827

29-
:code:`pre-commit install`
28+
``pre-commit install``
3029

3130
This will automatically run code formatting (black) and linting (flake8) checks before each commit.
3231
The pre-commit hooks will ensure your code follows the project's style guidelines.

docs/quickstart.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.. highlight:: bash
33
.. _quickstart:
44

5-
Quick Start
6-
===========
5+
Quickstart
6+
==========
77

8-
This chapter will get you started with Borg-Import.
8+
This guide will get you started with borg-import.

docs/support.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,33 @@
44
Support
55
=======
66

7-
Please first read the docs, the existing issue tracker issues and mailing
8-
list posts -- a lot of stuff is already documented / explained / discussed /
9-
filed there.
7+
Please read the documentation, existing issue-tracker issues, and mailing list posts first—much is already documented, explained, discussed, or filed there.
108

119
Issue Tracker
1210
-------------
1311

1412
If you've found a bug or have a concrete feature request, please create a new
1513
ticket on the project's `issue tracker`_.
1614

17-
For more general questions or discussions, IRC or mailing list are preferred.
15+
For more general questions or discussions, IRC or the mailing list is preferred.
1816

1917
Chat (IRC)
2018
----------
2119
Join us on channel #borgbackup on chat.freenode.net.
2220

23-
As usual on IRC, just ask or tell directly and then patiently wait for replies.
21+
As is usual on IRC, ask your question and then wait patiently for replies.
2422
Stay connected.
2523

26-
You could use the following link (after connecting, you can change the random
27-
nickname you get by typing "/nick mydesirednickname"):
24+
You can use the following link (after connecting, you can change the random
25+
nickname you get by typing ``/nick mydesirednickname``):
2826

2927
http://webchat.freenode.net/?randomnick=1&channels=%23borgbackup&uio=MTY9dHJ1ZSY5PXRydWUa8
3028

3129

32-
Mailing list
30+
Mailing List
3331
------------
3432

35-
To find out about the mailing list, its topic, how to subscribe, how to
36-
unsubscribe and where you can find the archives of the list, see the
33+
To learn about the mailing list, its topic, how to subscribe, how to
34+
unsubscribe, and where to find the list archives, see the
3735
`mailing list homepage
3836
<https://mail.python.org/mailman/listinfo/borgbackup>`_.

docs/usage.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ Usage
77

88
``borg-import`` consists of a number of commands, one for each
99
backup system supported. Each accepts a number of arguments and
10-
options. The following sections will describe each in detail.
10+
options. The following sections describe each in detail.
1111

1212
General
1313
-------
1414

15-
Note that Borg-Import will ask you for your repo's passphrase
16-
which blocks the import until you enter it. To let Borg-Import
17-
continue automatically, you can pass the environment variable
18-
*BORG_PASSPHRASE*:
19-
:code:`BORG_PASSPHRASE=xxxxxx borg-import ....`
15+
Note that borg-import will prompt for your repository passphrase,
16+
which pauses the import until you enter it. To let borg-import
17+
continue automatically, set the environment variable
18+
BORG_PASSPHRASE:
19+
20+
``BORG_PASSPHRASE=xxxxxx borg-import ...``
2021

2122
.. _rsnapshot:
2223

src/borg_import/borg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55

66
def get_borg_archives(repository):
7-
"""Get all archive metadata discovered in the Borg repository."""
8-
# Get list of archives with their timestamps
7+
"""Return metadata for all archives discovered in the Borg repository."""
8+
# Get a list of archives with their timestamps
99
borg_cmdline = ["borg", "list", "--format", "{name}{TAB}{time}{NL}", repository]
1010
output = subprocess.check_output(borg_cmdline).decode()
1111

0 commit comments

Comments
 (0)