Skip to content

Having direct access to the latest backup (of an optional prefix) #128

Description

@oderwat

I would love to have the possibility to directly refer to the latest backup like in "bup" where you can access the latest one by specifying "latest" as location.

Currently I use something list this:

borg list vps-borg:mt02-df-dbs.borg::$(borg list vps-borg:mt02-df-dbs.borg | tail -1 | awk '{ print $1 }')

With that change this would be:

borg list vps-borg:mt02-df-dbs.borg::latest

Of course latest could than not be an archive name anymore.

I would like if this also would support --prefix definitions and use the latest backup of an archive with that prefix.

P.S.: I know that all of this could be done with scripting. But that would be harder to handle all kinds of possible errors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions