emborg icon indicating copy to clipboard operation
emborg copied to clipboard

Support --timestamp and --comment for create

Open drws opened this issue 1 month ago • 4 comments

borg create allows for setting the archive timestamp with --timestamp, which is a very basic and useful option. Emborg doesn't seem to support it, except for possibly with raw command(s). It would be very useful if emborg create was able to pass the --timestamp flag.

A similar one is --comment, which also seems like one Emborg should recognize and allow, if it doesn't already.

drws avatar Oct 28 '25 17:10 drws

I don't understand the need for --timestamp. Can you explain its use?

KenKundert avatar Oct 29 '25 04:10 KenKundert

Presumably, you want --timestamp and --comment to be command line arguments of the emborg create command?

KenKundert avatar Oct 29 '25 04:10 KenKundert

Presumably, you want --timestamp and --comment to be command line arguments of the emborg create command?

Yes, to be recognized by emborg create, taken into account and passed to borg create (which already supports them).

I don't understand the need for --timestamp. Can you explain its use?

  • Importing older non-Borg backups, from any filesystem. import-tar is somewhat limited, create --timestamp seems like a more versatile replacement.
  • Better control of archive timestamps, for example to make timestamp of the archive exactly the same as of a certain file in the archive (newest file of the archive, a selected log file, ...). And also better control of archive timezones, if needed.
  • Having a useful low-level argument that can be useful in a manual repository recovery/rebuild.

drws avatar Oct 29 '25 14:10 drws

Went through Borg 1.4 manpages and found more cases of missing arguments that seem crucial or very useful for Emborg users:

  • Sparse-file-related: While create --sparse is already supported (but missing from manpage/help/docs?), extract --sparse isn't.
  • While delete --force is supported, it's not clear whether delete --force --force is as well.
  • While delete --force is supported, prune --force and prune --force --force aren't.
  • Cache-space-related: create --no-cache-sync, check --save-space, delete --save-space and prune --save-space.
  • mount -o and mount --consider-checkpoints
  • init --storage-quota

These are selected from many more Borg arguments, keeping in mind the KISS principle of Emborg.

drws avatar Oct 29 '25 16:10 drws