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:17] – usera | backup [2026/06/19 09:14] (current) – usera | ||
|---|---|---|---|
| Line 130: | 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: | ||
| + | < | ||
| + | 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: | ||
| - | 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: | + | < |
| - | < | + | <pre>enter password for repository: |
| - | sudo apt install backintime-qt | + | restoring snapshot of [/home/user/work] at 2015-05-08 21:40:19.884408621 +0200 CEST to / |
| - | </code> | + | |
| - | + | ||
| - | + | ||
| - | Before launching it, we need to decrypt | + | |
| - | < | + | |
| - | sudo cryptsetup luksOpen | + | |
| - | sudo vgchange -ay | + | |
| - | sudo mount /dev/mapper/vgbackup-home | + | |
| - | </ | + | |
| - | + | ||
| - | now everything written on /mnt on your computer will be written on your disk. | + | |
| - | + | ||
| - | You can then launch backintime with: | + | |
| - | <code> | + | |
| - | sudo backintime-qt | + | |
| - | </code> | + | |
| - | + | ||
| - | you can then configure it to save things in /mnt: | + | |
| - | + | ||
| - | {{ ::backintime_1.png?600 |}} | + | |
| - | + | ||
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | And then click on "Take snapshot" | + | |
| - | + | ||
| - | {{ :: | + | |
| - | + | ||
| - | you can then unmount and remove your backup disk: | + | |
| - | < | + | It is possible to restore only a folder or file by changing '' |
| - | sudo umount | + | |
| - | sudo vgchange -an vgbackup | + | |
| - | sudo cryptsetup luksClose cryptodisk | + | |
| - | </code> | + | |
backup.1781857026.txt.gz · Last modified: by usera
