borgbackup / borgbackup/borg

feature request: update/append "command line" metatag

Open
#3,615 7 comments 0 reactions 0 assignees View on GitHub
cmd: recreate
Dominant language
Python
Stars
13.7k
Forks
875
Avg merge
11h 15m
Merged PRs (30d)
192

Description

If one creates a normal archive, one writes "Command line: /usr/bin/borg create --compression lz4 .... REPO::ARCHIVE path1 path2" in the metadata .
If we use borg recreate afterwards, the initiall "command line" is not updated and no new one is appended or some NOTE left.

My proposal is that we add a command line switch to borg recreate - to update the command line rewriting history if we wish so - for example:

initial command line:
Command line: /usr/bin/borg create --compression lz4 --show-rc --numeric-owner --one-file-system REPO::ARCHIVE /path

AFTER we do:
borg recreate REPO --recompress --compression "zstd,10" --rewrite-command-line

we could have the command line be like:
Command line: /usr/bin/borg create --compression zstd,10 --show-rc --numeric-owner --one-file-system REPO::ARCHIVE /path

we could have an alternative switch - not rewrite but --append-to-command-line - so in the end we keep all recreate's command lines...

Same thing could be achieved with recreate's --comment option. Or depending if that's what we want we could create a new archive with the --target option.

I want to start a discussion about this. Seems simple and complex at the same time. Simple because in the end it's all about record keeping of some text strings. Complex because there are 5 ways to do it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.