recovery by package re-install

asked 2016-03-03 16:53:26 -0500

zug234zwang gravatar image

In case of hard disk failure, I want my recovery to (ideally) re-create the pre-hard-disk-crash environment. After researching backup strategies for my Fedora 22 home pc, I've decided to only use rsync on my /home and /etc directories, and to (during recovery) manually re-install packages and manually upgrade packages. After examining the dnf documentation and recovery-related forum entries, I'm confused about the explicit recovery steps to take. The following chart shows the number of entries for various commands:

00042_lines dnf history list
00026_lines dnf history userinstalled
49112_lines dnf list all
02542_lines dnf list installed
02505_lines rpm -qa

With no linux recovery experience, my tentative strategy is shown below: I REQUEST CRITICISM FROM EXPERIENCED LINUX USERS. I ALSO REQUEST SPECIFIC OPTIONS TO USE WITH THE "dnf [options] upgrade" COMMAND (STEP # 5 BELOW).

(1) In addition to using rsync to maintain an independent copy of my /home and /etc directories, maintain a copy of dnf_history_userinstalled.txt, et al. Ignore the other 4 entries above.

(2) Maintain a bootable flashdrive of Fedora 22 Workstation Live, updating it whenever fedoraproject.org updates the corresponding iso.

To recover when the (boot) hard disk fails:

(3) Use the flashdrive to install the "full" Fedora 22 to a new hard disk.

(4) Use dnf_history_userinstalled.txt to manually install the (less than 50) packages.

(5) Execute the "dnf [options] upgrade" command. Hopefully, since I kept the flashdrive of Fedora 22 Workstation Live "current", this process will be "streamlined".

(6) Use rsync to update the /home and /etc directories on the new hard disk.

edit retag flag offensive close merge delete