backup
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| backup [2026/06/19 09:05] – [If you need to restore a snapshot] usera | backup [2026/06/19 09:14] (current) – usera | ||
|---|---|---|---|
| Line 143: | Line 143: | ||
| Note that you need to know your password to do this, as all backups made by restic are encrypted. Pick up the ID of the snapshot you want to restore, for example in our case '' | Note that you need to know your password to do this, as all backups made by restic are encrypted. Pick up the ID of the snapshot you want to restore, for example in our case '' | ||
| + | To see all files in this snapshot, enter: | ||
| + | < | ||
| + | which will give the following output: | ||
| + | < | ||
| + | enter password for repository: | ||
| + | repository 7d767fa4 opened (repository version 2) successfully, | ||
| + | snapshot 9e4398a4 of [/ | ||
| + | /testdir2 | ||
| + | / | ||
| - | ==== If you need to restore | + | if you would like to restore |
| + | < | ||
| + | < | ||
| + | restoring snapshot of [/ | ||
| - | + | It is possible | |
| - | Once this is done, you can do another backup of your /home, which contains all your regular files. For this you can use the software backintime. You can install it with: | + | |
| - | < | + | |
| - | sudo apt install backintime-qt | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | Before launching it, we need to decrypt the encrypted disk, and mount the logical volume we intend | + | |
| - | < | + | |
| - | sudo cryptsetup luksOpen | + | |
| - | sudo vgchange -ay | + | |
| - | sudo mount /dev/mapper/vgbackup-home /mnt | + | |
| - | </ | + | |
| - | + | ||
| - | now everything written on /mnt on your computer will be written on your disk. | + | |
| - | + | ||
| - | You can then launch backintime with: | + | |
| - | < | + | |
| - | sudo backintime-qt | + | |
| - | </ | + | |
| - | + | ||
| - | you can then configure it to save things | + | |
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | And then click on "Take snapshot" | + | |
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | you can then unmount and remove your backup disk: | + | |
| - | + | ||
| - | < | + | |
| - | sudo umount /mnt | + | |
| - | sudo vgchange -an vgbackup | + | |
| - | sudo cryptsetup luksClose cryptodisk | + | |
| - | </ | + | |
backup.1781859929.txt.gz · Last modified: by usera
