Fix some bugs See merge request Bullet64/restic_ui_pywebio!71
faviconGitLab (gitlab.com)
For each backup we store the following data in a JSON file.
(*) optional
Data | Explanation |
---|---|
BACKUP DATA | |
name | The name of the backup, this name must be unique |
repository | The path of the backup |
source | The path of the data to be saved |
password | The Restic password used to encrypt the data |
init | Status whether the backup has already been initialized. 1 = done 0 = not done |
exclude | Path to exclude.txt |
REST DATA | |
REST Domain | Domain from REST-server example.com |
REST Port | Port from REST-server |
REST User | username from HTTP-user |
REST Password | password from HTTP-user |
REST Folder | Folder on REST-server for storing backup |
Every now and then I have a repo lying around here somewhere that I want to take a look at. Comes very often from testing. I want to take a look before I delete it.
Now you can look inside, list snapshots and so on.
What you can't do is a new backup. For that the source would have to be set first.
Here we can create and save a backup
Here we can edit and save a backup
With this menu we can delete a backup AND it's data!
We will use this restic command
restic -r /home/frank/restic_test/ init
We will use this restic command
restic -r /home/frank/restic_test/ backup /home/frank/Bilder --exclude-file=excludes.txt
We will use this restic command
restic -r /home/frank/restic_test/ mount /tmp/restic
We will use this command
umount mount_path
We will use this restic command
restic -r /srv/restic-repo restore <ID> --target /tmp/restore-work
You will be ask for a snapshot <ID>. Use Tools/Snapshots and copy and paste the <ID>
We will use this restic command
restic -r /home/frank/restic_test/ snapshots
Example output
reading repository password from stdin
ID Time Host Tags Paths
----------------------------------------------------------------------------
af5080e4 2021-08-04 21:22:10 frank-MS-7C37 /home/frank/Bilder
----------------------------------------------------------------------------
1 snapshots
We will use this restic command
restic -r /home/frank/restic_test/ ls <ID>
Example output
reading repository password from stdin
snapshot af5080e4 of [/home/frank/Bilder] filtered by [] at 2021-08-04 21:22:10.320165238 +0200 CEST):
/home
/home/frank
/home/frank/Bilder
/home/frank/Bilder/20210603_161.zip
/home/frank/Bilder/20210603_161548.jpg
/home/frank/Bilder/20210603_161601.jpg
/home/frank/Bilder/20210721_140856.jpg
/home/frank/Bilder/20210722_101305.jpg
/home/frank/Bilder/Bildschirmfoto vom 2021-06-15 17-39-09.png
/home/frank/Bilder/Bildschirmfoto vom 2021-06-24 18-48-52.png
/home/frank/Bilder/Bildschirmfoto vom 2021-06-24 18-49-55.png
/home/frank/Bilder/Cinebar
............
We will use this restic command
restic -r /home/frank/restic_test/ check
We will use this restic command
restic -r /home/frank/restic_test/ unlock
We will use this restic command
restic -r /home/frank/restic_test/ stats
We will use this restic command
restic -r /home/frank/restic_test/ forget --keep-last 3 --keep-monthly 3 --prune
We will use this command
restic version
Here you can store
Here we can set some restic parameters
Then restic will only load 75% from data to check
--keep-last n never delete the n last (most recent) snapshots
--keep-monthly n for the last n months which have one or more snapshots, only keep the last one for that month.
Quelle: https://restic.readthedocs.io/en/latest/060_forget.html
Since restic version 0.14.0 compression has been added.
The repo format has changed.
There is the restic migrate command to migrate old repos V1 to V2.
For this there is a new menu 'Migrate' with two commands
migrate check and migrate update
Migrate check will show available migrations for the repo.
export RESTIC_PASSWORD="I9n7G7G0ZpDWA3GOcJbIuwQCGvGUBkU5"
Migrate Update will change repo version from V1 to V2. No data will be compressed, only with a new backup the data will be saved compressed.
For more infos read -> https://linux-nerds.org/topic/1257/restic-ui-migrate
Restic documentation you can read here
Translated with www.DeepL.com/Translator (free version)