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:09] – usera | backup [2026/06/19 09:14] (current) – usera | ||
|---|---|---|---|
| Line 130: | Line 130: | ||
| < | < | ||
| + | which will give the following output: | ||
| + | < | ||
| + | repository 7d765fa4 opened (repository version 2) successfully, | ||
| + | ID Time | ||
| + | ------------------------------------------------------------------------------------------ | ||
| + | 9e4398a4 | ||
| + | ------------------------------------------------------------------------------------------ | ||
| + | 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: | ||
| + | < | ||
| - | Once this is done, you can do another backup of your / | + | which will give the following output: |
| - | <code> | + | <pre>restic -r testdir ls 9e4398a4 |
| - | sudo apt install backintime-qt | + | enter password for repository: |
| - | </code> | + | 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: | ||
| - | Before launching it, we need to decrypt | + | < |
| - | < | + | < |
| - | sudo cryptsetup luksOpen /dev/sdb2 cryptsetup | + | restoring snapshot of [/home/user/work] at 2015-05-08 21: |
| - | 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. | + | It is possible to restore only a folder or file by changing '' |
| - | + | ||
| - | 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" | + | |
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | you can then unmount and remove your backup disk: | + | |
| - | + | ||
| - | < | + | |
| - | sudo umount | + | |
| - | sudo vgchange -an vgbackup | + | |
| - | sudo cryptsetup luksClose cryptodisk | + | |
| - | </code> | + | |
backup.1781856597.txt.gz · Last modified: by usera
