1
0
Fork 0
forked from RP1/RaveOS-arch

backup/restore WIP

This commit is contained in:
RP1 2025-02-04 20:27:21 +01:00
parent 8385e4d4d3
commit ad1760a8df
2 changed files with 67 additions and 10 deletions

View file

@ -23,33 +23,89 @@ user_choice=$(zenity --list --checklist --width='1000' --height='700' \
--title="Backup script by RavePriest1" \ --title="Backup script by RavePriest1" \
--text="Select from the options below" \ --text="Select from the options below" \
--column="Select" --column="Name" \ --column="Select" --column="Name" \
FALSE "MangoHud/Goverlay setup" \ FALSE "BACKUP All of My Data and Settings" \
FALSE "Mozilla Browser - Deb Package") FALSE "RESTORE All of My Data and Settings")
if [[ $? -eq 1 ]]; then if [[ $? -eq 1 ]]; then
echo You did not pick an ${bold}${yellow}option.${normal} Exiting! echo You did not pick an ${bold}${yellow}option.${normal} Exiting!
exit 1 exit 1
fi fi
if [[ $user_choice = *"MangoHud/Goverlay"* ]]; then if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then
echo echo
echo ----------------------------------------------------- echo -----------------------------------------------------
echo Copying ${bold}${yellow}Goverlay settings${normal} into ${bold}${yellow}$FOLDER/${normal} echo Copying ${bold}${yellow}$USER settings${normal} into ${bold}${yellow}$FOLDER/${normal}
sudo rsync -ap --info=progress2 /home/$USER/.config/goverlay $FOLDER/
echo ${bold}${yellow}Goverlay settings${normal} copied. # GNOME SECTION
dconf dump / > $FOLDER/$USER-ui
# HU lang
rsync -ap --info=progress2 --relative /home/$USER/Asztal/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Dokumentumok/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Letöltések/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Zenék/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Képek/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Videók/ $FOLDER/
# EN lang
rsync -ap --info=progress2 --relative /home/$USER/Desktop/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Documents/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Downloads/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Music/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Pictures/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Videos/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/Games/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/.librewolf/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/.config/Bitwarden $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/heroic $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/input-remapper-2 $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/Mumble $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/libvirt $FOLDER/.config/
rsync -ap --info=progress2 --relative /etc/libvirt $FOLDER/etc/
rsync -ap --info=progress2 --relative /home/$USER/.config/corectrl.ini $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/vivaldi $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/BraveSoftware $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/FreeTube $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/dosbox-x $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/pavucontrol.ini $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/keepassxc $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/spotify $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/spotube $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/qBittorrent $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/Telegram $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/kdeglobals $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/kdenliverc $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/kdenlive-layoutsrc $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.config/ $FOLDER/.config/
rsync -ap --info=progress2 --relative /home/$USER/.local/share/gnome-shell $FOLDER/.local/share
rsync -ap --info=progress2 --relative /home/$USER/.local/share/flatpak/overrides/ $FOLDER/.local/share/flatpak/
rsync -ap --info=progress2 --relative /home/$USER/.local/share/lutris $FOLDER/.local/share/
rsync -ap --info=progress2 --relative /home/$USER/.steam/ $FOLDER/
rsync -ap --info=progress2 --relative /home/$USER/.var/app/ $FOLDER/.var/app/
echo ${bold}${yellow}$USER settings${normal} copied.
echo ----------------------------------------------------- echo -----------------------------------------------------
sudo chown -R $USER:$GROUP $FOLDER sudo chown -R $USER:$GROUP $FOLDER
echo echo
fi fi
if [[ $user_choice = *"Mozilla Browser - Deb Package"* ]]; then if [[ $user_choice = *"Restore all of my data and settings"* ]]; then
echo echo
echo ----------------------------------------------------- echo -----------------------------------------------------
echo Copying ${bold}${yellow}Mozilla settings${normal} into ${bold}${yellow}$FOLDER/${normal} echo Copying ${bold}${yellow}Mozilla settings${normal} into ${bold}${yellow}$FOLDER/${normal}
sudo rsync -ap --info=progress2 /home/$USER/.mozilla $FOLDER/
echo ${bold}${yellow}Mozilla settings${normal} copied. echo ${bold}${yellow}Mozilla settings${normal} copied.
echo ----------------------------------------------------- echo -----------------------------------------------------
sudo chown -R $USER:$GROUP $FOLDER sudo chown -R $USER:$GROUP /home/$USER
echo echo
fi fi

View file

@ -35,7 +35,8 @@ if [[ "$desktop" == GNOME ]]; then
cd cd
rm -rf cosmetics rm -rf cosmetics
echo ${bold}${yellow}KDE Program Pkg Updated successfully!${normal} echo ${bold}${yellow}KDE Program Pkg Updated successfully!${normal}
fi fi
# rave full-upgrade frissites keruljon be ide
zenity --info --text='Program Csomag Frissitve! Nincs szukseg ujrainditasra!' zenity --info --text='Program Csomag Frissitve! Nincs szukseg ujrainditasra!'