backup/restore WIP
This commit is contained in:
parent
8385e4d4d3
commit
ad1760a8df
2 changed files with 67 additions and 10 deletions
|
@ -23,33 +23,89 @@ user_choice=$(zenity --list --checklist --width='1000' --height='700' \
|
|||
--title="Backup script by RavePriest1" \
|
||||
--text="Select from the options below" \
|
||||
--column="Select" --column="Name" \
|
||||
FALSE "MangoHud/Goverlay setup" \
|
||||
FALSE "Mozilla Browser - Deb Package")
|
||||
FALSE "BACKUP All of My Data and Settings" \
|
||||
FALSE "RESTORE All of My Data and Settings")
|
||||
if [[ $? -eq 1 ]]; then
|
||||
echo You did not pick an ${bold}${yellow}option.${normal} Exiting!
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [[ $user_choice = *"MangoHud/Goverlay"* ]]; then
|
||||
if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then
|
||||
echo
|
||||
echo -----------------------------------------------------
|
||||
echo Copying ${bold}${yellow}Goverlay settings${normal} into ${bold}${yellow}$FOLDER/${normal}
|
||||
sudo rsync -ap --info=progress2 /home/$USER/.config/goverlay $FOLDER/
|
||||
echo ${bold}${yellow}Goverlay settings${normal} copied.
|
||||
echo Copying ${bold}${yellow}$USER settings${normal} into ${bold}${yellow}$FOLDER/${normal}
|
||||
|
||||
# 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 -----------------------------------------------------
|
||||
sudo chown -R $USER:$GROUP $FOLDER
|
||||
echo
|
||||
fi
|
||||
|
||||
if [[ $user_choice = *"Mozilla Browser - Deb Package"* ]]; then
|
||||
if [[ $user_choice = *"Restore all of my data and settings"* ]]; then
|
||||
echo
|
||||
echo -----------------------------------------------------
|
||||
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 -----------------------------------------------------
|
||||
sudo chown -R $USER:$GROUP $FOLDER
|
||||
sudo chown -R $USER:$GROUP /home/$USER
|
||||
echo
|
||||
fi
|
||||
|
||||
|
|
|
@ -35,7 +35,8 @@ if [[ "$desktop" == GNOME ]]; then
|
|||
cd
|
||||
rm -rf cosmetics
|
||||
echo ${bold}${yellow}KDE Program Pkg Updated successfully!${normal}
|
||||
|
||||
fi
|
||||
|
||||
# rave full-upgrade frissites keruljon be ide
|
||||
|
||||
zenity --info --text='Program Csomag Frissitve! Nincs szukseg ujrainditasra!'
|
Loading…
Reference in a new issue