[Feature request] Option to extract/mount lastest archive #289

Closed
opened 2020-01-29 15:10:47 +00:00 by lambtho12 Β· 4 comments

It would be practical to have an option that automatically mounts or extract the latest archive in a repository instead of requiring user to specify the archive name. This way the same command could be reuse without changes (easier to alias).

Examples:

borgmatic extract --latest
borgmatic mount --repository repo.borg --latest --mount-point /mnt
It would be practical to have an option that automatically mounts or extract the latest archive in a repository instead of requiring user to specify the archive name. This way the same command could be reuse without changes (easier to alias). Examples: ``` borgmatic extract --latest borgmatic mount --repository repo.borg --latest --mount-point /mnt ```
Owner

That's a fantastic idea.. and something that I've often wanted myself. I think the syntax I'd use though is --archive latest, just for ease/consistency of argument parsing. And I could imagine this working for all actions that take an --archive argument, not just extract and mount.

That's a fantastic idea.. and something that I've often wanted myself. I think the syntax I'd use though is `--archive latest`, just for ease/consistency of argument parsing. And I could imagine this working for all actions that take an `--archive` argument, not just `extract` and `mount`.
Owner

This is implemented in master now.. It'll be part of the next release. Thanks for the ticket!

This is implemented in master now.. It'll be part of the next release. Thanks for the ticket!
Owner

This is now released in borgmatic 1.5.1!

This is now released in borgmatic 1.5.1!
Author

Nice! Thank you for the quick implementation.

Nice! Thank you for the quick implementation.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#289
No description provided.