updated restore timeshift doc after a small scare

This commit is contained in:
tomit4 2022-04-24 10:49:09 -07:00
parent c99db31809
commit f6dcf3032e
2 changed files with 31 additions and 1 deletions

View file

@ -34,7 +34,19 @@ pacman -S timeshift
Once installed, you will then need to mount your root directory to gain access to the timeshift restore files. Once installed, you will then need to mount your root directory to gain access to the timeshift restore files.
mount / /mnt Find out where your main drive is by invoking lsblk, which should give you out put like this:
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 465.8G 0 disk
└─nvme0n1p1 259:1 0 465.8G 0 part /run/timeshift/backup
/var/lib/docker
/
All drives can be found under the devices folder /dev, mount /dev/nvme0n1p1 to /mnt
mount /dev/nvme0n1p1 /mnt
You should be able to ls or even cd into the /mnt directory and see your various files. You should be able to ls or even cd into the /mnt directory and see your various files.
From here, you'll need to chroot in: From here, you'll need to chroot in:
@ -45,12 +57,24 @@ This essentially drops you into your installation as root. Now you should be abl
timeshift --restore timeshift --restore
Mind this will not always work and should be tested from time to time. I have used this exact method only to find there is no timeshift record to restore... in which case, sadly you are SOL.
But other times it has worked, and therefore should be attempted (better methods using rsync should eventually be considered).
It will then prompt you which backup you wish to use (usually just 0). It will then prompt you which backup you wish to use (usually just 0).
It will also prompt you with a choice to re install grub (usually there is no need to do this). It will also prompt you with a choice to re install grub (usually there is no need to do this).
It will take some time restoring your files from your previous timeshift --create. It will take some time restoring your files from your previous timeshift --create.
Once it has restored. you can safely exit the chroot shell:
exit
And unmount the nvme drive:
umount /mnt
Afterwards reboot and hit F2 once again to enter your BIOS. Afterwards reboot and hit F2 once again to enter your BIOS.
Change the boot order to utilize your main hard drive first and save your changes. Change the boot order to utilize your main hard drive first and save your changes.

View file

@ -11,3 +11,9 @@ tr '\n' ' '
add notation about using find to list only files in current directory and NOT subdirectory: add notation about using find to list only files in current directory and NOT subdirectory:
find $dir -maxdepth 1 -type f find $dir -maxdepth 1 -type f
Install zsh-completions-git
paru -S zsh-completions-git
at 9:06
https://www.youtube.com/watch?v=bTLYiNvRIVI