From f6dcf3032e41e789743beb687d73a060631c2ffb Mon Sep 17 00:00:00 2001 From: tomit4 Date: Sun, 24 Apr 2022 10:49:09 -0700 Subject: [PATCH] updated restore timeshift doc after a small scare --- restore_timeshift_artix.txt | 26 +++++++++++++++++++++++++- updates.txt | 6 ++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/restore_timeshift_artix.txt b/restore_timeshift_artix.txt index 7bb207fd..104d3b1a 100644 --- a/restore_timeshift_artix.txt +++ b/restore_timeshift_artix.txt @@ -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. -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. 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 +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 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. +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. Change the boot order to utilize your main hard drive first and save your changes. diff --git a/updates.txt b/updates.txt index 00f7e9ba..0cb3fbad 100644 --- a/updates.txt +++ b/updates.txt @@ -11,3 +11,9 @@ tr '\n' ' ' add notation about using find to list only files in current directory and NOT subdirectory: 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