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:32] – usera | backup [2026/06/19 09:14] (current) – usera | ||
|---|---|---|---|
| Line 125: | Line 125: | ||
| More infos can be found [[https:// | More infos can be found [[https:// | ||
| - | |||
| - | |||
| First, you can see the existing snapshots in your backup folder by entering: | First, you can see the existing snapshots in your backup folder by entering: | ||
| Line 132: | Line 130: | ||
| < | < | ||
| - | <pre>(base) <span style=" | + | which will give the following output: |
| - | enter password for repository: | + | |
| - | wrong password or no key found. Try again | + | < |
| - | enter password for repository: | + | |
| repository 7d765fa4 opened (repository version 2) successfully, | repository 7d765fa4 opened (repository version 2) successfully, | ||
| ID Time | ID Time | ||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ||
| - | 9e4378a4 | + | 9e4398a4 |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ||
| 1 snapshots | 1 snapshots | ||
| </ | </ | ||
| + | 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: | ||
| + | < | ||
| - | ==== If you need to restore a snapshot ==== | + | which will give the following output: |
| - | + | <pre>restic | |
| - | + | enter password for repository: | |
| - | + | repository 7d767fa4 opened (repository version 2) successfully, password is correct | |
| - | Once this is done, you can do another backup of your / | + | snapshot 9e4398a4 of [/path/to/the/folder/you/ |
| - | <code> | + | /testdir2 |
| - | sudo apt install backintime-qt | + | /testdir2/hi</pre> |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | 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/vgbackup-home /mnt | + | |
| - | </code> | + | |
| - | + | ||
| - | now everything written on /mnt on your computer will be written on your disk. | + | |
| - | + | ||
| - | You can then launch backintime with: | + | |
| - | < | + | |
| - | sudo backintime-qt | + | |
| - | </code> | + | |
| - | + | ||
| - | you can then configure it to save things in /mnt: | + | |
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | And then click on "Take snapshot" | + | |
| - | {{ :: | + | if you would like to restore the whole snapshot to a specific directory, enter: |
| - | you can then unmount and remove your backup disk: | + | < |
| + | < | ||
| + | restoring snapshot of [/ | ||
| - | < | + | It is possible to restore only a folder or file by changing '' |
| - | sudo umount | + | |
| - | sudo vgchange -an vgbackup | + | |
| - | sudo cryptsetup luksClose cryptodisk | + | |
| - | </code> | + | |
backup.1781857966.txt.gz · Last modified: by usera
