User Tools

Site Tools


backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
backup [2026/06/19 09:13] – [If you need to restore a snapshot] userabackup [2026/06/19 09:14] (current) usera
Line 162: Line 162:
  
 It is possible to restore only a folder or file by changing ''snapshot_id'' to ''snapshot_id:/path/to/folder/or/file'' in the above expression It is possible to restore only a folder or file by changing ''snapshot_id'' to ''snapshot_id:/path/to/folder/or/file'' in the above expression
- 
- 
- 
- 
-==== 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: 
-<code> 
-sudo apt install backintime-qt 
-</code> 
- 
- 
-Before launching it, we need to decrypt the encrypted disk, and mount the logical volume we intend to use: 
-<code> 
-sudo cryptsetup luksOpen /dev/sdb2 cryptsetup 
-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: 
-<code> 
-sudo backintime-qt 
-</code> 
- 
-you can then configure it to save things in /mnt: 
- 
-{{ ::backintime_1.png?600 |}} 
- 
- 
-{{ ::backintime_2.png?600 |}} 
- 
- 
-{{ ::backintime_3.png?600 |}} 
- 
-And then click on "Take snapshot" and wait for it to finish: 
- 
-{{ ::backintime_4.png?600 |}} 
- 
-you can then unmount and remove your backup disk: 
- 
-<code> 
-sudo umount /mnt 
-sudo vgchange -an vgbackup 
-sudo cryptsetup luksClose cryptodisk 
-</code> 
  
backup.1781860430.txt.gz · Last modified: by usera