garethgeorge/backrest

Allow for 'restore latest'

Closed this issue · 5 comments

Note: if you have a question or want discussion please post in the discussions area.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
N/A

Describe the solution you'd like
A clear and concise description of what you want to happen.
restic restore allows for a full snapshot/backup restore using 'restore latest'. Could the same be implemented in Backrest?

Additional context
Add any other context or screenshots about the feature request here.
Add an option under 'Browse and Restore Files in Backup' to select and run a full 'restore latest', e.g. 'Restore Latest' [checkbox] Run.

image

Hey, not sure I understand the feature request -- the latest snapshot is always visible in the GUI and should be restorable.

I am new to Backrest and restic for that matter, so I may be missing something.

This would restore the latest backup (all files/folders)
restic -r /mnt/backup/restic/5520/full_system/ restore latest --target /tmp/5520

In Backrest I only see the option to restore/browse individual files/folders one at a time but not restore the complee backup all at once.
image

Ah, I see — sounds like the major problem is that there isn’t a single entry in the tree to restore the whole snapshot from. I’ll aim to fix this by inserting an extra directory node for the root of the backup tree /

inserting an extra directory node for the root of the backup tree /

Excellent, thank you!

Addressed in 6045c87