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 08:07] – usera | backup [2026/06/19 09:14] (current) – usera | ||
|---|---|---|---|
| Line 124: | Line 124: | ||
| ==== If you need to restore a snapshot ==== | ==== If you need to restore a snapshot ==== | ||
| - | 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: | + | More infos can be found [[https://restic.readthedocs.io/en/ |
| - | < | + | |
| - | sudo apt install backintime-qt | + | |
| - | </code> | + | |
| + | First, you can see the existing snapshots in your backup folder by entering: | ||
| - | Before launching it, we need to decrypt the encrypted disk, and mount the logical volume we intend to use: | + | < |
| - | < | + | |
| - | sudo cryptsetup luksOpen | + | |
| - | sudo vgchange -ay | + | |
| - | sudo mount /dev/mapper/ | + | |
| - | </ | + | |
| - | now everything written on /mnt on your computer | + | which will give the following output: |
| - | You can then launch backintime with: | + | <pre>enter password for repository: |
| - | <code> | + | repository 7d765fa4 opened (repository version 2) successfully, |
| - | sudo backintime-qt | + | ID Time |
| - | </code> | + | ------------------------------------------------------------------------------------------ |
| + | 9e4398a4 | ||
| + | ------------------------------------------------------------------------------------------ | ||
| + | 1 snapshots | ||
| + | </pre> | ||
| - | you can then configure it to save things | + | 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 |
| - | {{ :: | + | To see all files in this snapshot, enter: |
| + | < | ||
| - | {{ ::backintime_2.png?600 |}} | + | which will give the following output: |
| + | < | ||
| + | enter password for repository: | ||
| + | repository 7d767fa4 opened (repository version 2) successfully, | ||
| + | snapshot 9e4398a4 of [/ | ||
| + | /testdir2 | ||
| + | / | ||
| + | if you would like to restore the whole snapshot to a specific directory, enter: | ||
| - | {{ ::backintime_3.png?600 |}} | + | < |
| + | < | ||
| + | restoring snapshot of [/ | ||
| - | And then click on "Take snapshot" | + | It is possible |
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | you can then unmount and remove your backup disk: | + | |
| - | + | ||
| - | < | + | |
| - | sudo umount | + | |
| - | sudo vgchange -an vgbackup | + | |
| - | sudo cryptsetup luksClose cryptodisk | + | |
| - | </code> | + | |
backup.1781856420.txt.gz · Last modified: by usera
