so I want to create a script that can turn any vanelia fedora into what I am using now. so basically there 3 parts to this
- backup of my user folder
this is achieved with this rdiff-backup · GitHub
basically I have a script that runs
sudo rdiff-backup --verbosity 5 --print-statistics --include-special-files --include-globbing-filelist /home/zany130/Documents/include-list.txt /home/zany130/ /home/zany130/Rdiff
with the include list looking something like this
- /home/zany130/.cache/
- /home/zany130/.config/Mailspring/
- /home/zany130/.dropbox/
- /home/zany130/.dropbox-dist/
- /home/zany130/.esmtp_queue/
- /home/zany130/.gnupg/
- /home/zany130/.itch/
- /home/zany130/.googleearth/
- /home/zany130/.pcloud/
- /home/zany130/.local/share/flatpak/
- /home/zany130/.local/share/gnome-boxes/
- /home/zany130/.local/share/Steam/steamapps/
- /home/zany130/.local/share/Trash/
- /home/zany130/.local/share/Zeal/
- /home/zany130/.steam/steam/steamapps/
- /home/zany130/.wine/dosdevices/
- /home/zany130/.var/
- /home/zany130/pCloudDrive/
- /home/zany130/Downloads/
- /home/zany130/Documents
- /home/zany130/GAMES/
- /home/zany130/Games/
- /home/zany130/Music/
- /home/zany130/Pictures/
- /home/zany130/Videos/
- /home/zany130/Rdiff/
- /home/zany130/snap
+ /home/zany130/.*
- /home/zany130/**
-
would be a backup of Documents and other folders like that which I excluded in step 1. I Just sync those files to pcloud
-
a list of packages that I have installed
this is the hard one and where I need help
from googling around it seems I can just do a
rpm --queryformat="%{NAME}.%{ARCH}\n" -qa | sort > new.list
and then restore it with
yum install `cat package.list
but this is going to include all packges including dependencies right? is there a better way to do this?
also how would I handle the diffrent repos I have?