Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/borg/archiver/create_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def create_inner(archive, cache, fso):
dry_run = args.dry_run
self.start_backup = time.time_ns()
t0 = archive_ts_now()
logger.info('Creating archive at "%s"' % args.location.processed)
logger.info('Creating archive "%s" in repository %s' % (args.name, args.location.processed))
if not dry_run:
with Cache(
repository,
Expand Down
9 changes: 9 additions & 0 deletions src/borg/testsuite/archiver/create_cmd_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,15 @@ def test_create_stats_store(archivers, request):
assert store_stats["backend_load_volume"] >= 0


def test_create_logs_archive_name(archivers, request):
"""`borg create --info` announces the archive name, not just the repository."""
archiver = request.getfixturevalue(archivers)
cmd(archiver, "repo-create", RK_ENCRYPTION)
create_regular_file(archiver.input_path, "testfile", contents=b"data")
output = cmd(archiver, "create", "--info", "my_archive", archiver.input_path)
assert 'Creating archive "my_archive"' in output


def test_create_json(archivers, request):
archiver = request.getfixturevalue(archivers)
create_regular_file(archiver.input_path, "file1", size=1024 * 80)
Expand Down
Loading