Skip to content

Commit 6f1af4f

Browse files
borg importer: add hint about numeric ids
1 parent 7656a65 commit 6f1af4f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/borg_import/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ class borgImporter(Importer):
302302
you need to give either absolute paths for the source and destination repositories
303303
or ssh:// URLs.
304304
305+
To avoid issues with user/group id-to-name mappings, the importer will only
306+
transfer the numeric user and group ids for the files inside the archives.
307+
305308
By default, archive names are preserved. Use --prefix to add a prefix to
306309
the imported archive names.
307310
"""

src/borg_import/testsuite/test_borg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def test_borg_import(tmpdir, monkeypatch):
2525

2626
# Create archives in the source repository
2727
subprocess.check_call([
28-
"borg", "create", "--numeric-ids",
28+
"borg", "create",
2929
f"{source_repo}::archive1",
3030
"."
3131
], cwd=str(archive1_data))
3232

3333
subprocess.check_call([
34-
"borg", "create", "--numeric-ids",
34+
"borg", "create",
3535
f"{source_repo}::archive2",
3636
"."
3737
], cwd=str(archive2_data))

0 commit comments

Comments
 (0)