backrest icon indicating copy to clipboard operation
backrest copied to clipboard

Allow for 'restore latest'

Open zz0rk opened this issue 1 year ago • 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

zz0rk avatar Apr 19 '24 00:04 zz0rk

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

garethgeorge avatar Apr 19 '24 02:04 garethgeorge

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

zz0rk avatar Apr 19 '24 02:04 zz0rk

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 /

garethgeorge avatar Apr 19 '24 08:04 garethgeorge

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

Excellent, thank you!

zz0rk avatar Apr 19 '24 22:04 zz0rk

Addressed in https://github.com/garethgeorge/backrest/commit/6045c87cdf5a68afd81203602ee5827eda5af8e7

garethgeorge avatar May 12 '24 07:05 garethgeorge