diff --git a/backup-raveos.sh b/backup-raveos.sh index 65648f7..36c0dd6 100644 --- a/backup-raveos.sh +++ b/backup-raveos.sh @@ -28,16 +28,15 @@ if [[ $? -eq 1 ]]; then exit 1 fi sudo echo -# locale | grep LANG -# $XDG_CURRENT_DESKTOP - if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then cd + Locale=$(locale | grep "LANG" -c) + Desktop=$XDG_CURRENT_DESKTOP echo echo ----------------------------------------------------- echo Copying ${bold}${yellow}$USER Settings and Files${normal} into ${bold}${yellow}$FOLDER/${normal} - + if [[ "$desktop" == GNOME ]]; then # GNOME SECTION dconf dump / > $FOLDER/$USER-ui # HU lang @@ -57,8 +56,8 @@ if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then rsync -ap --info=progress2 /home/$USER/Games/ $FOLDER 2>/dev/null rsync -ap --info=progress2 /home/$USER/.librewolf $FOLDER 2>/dev/null rsync -ap --info=progress2 /home/$USER/.steam $FOLDER 2>/dev/null - mkdir -p $FOLDER/.config - rsync -ap --info=progress2 /home/$USER/.config/Bitwarden $FOLDER/.config 2>/dev/null + #mkdir -p $FOLDER/.config + rsync -ap --info=progress2 --relative /home/$USER/.config/Bitwarden $FOLDER/.config 2>/dev/null rsync -ap --info=progress2 /home/$USER/.config/heroic $FOLDER/.config 2>/dev/null rsync -ap --info=progress2 /home/$USER/.config/input-remapper-2 $FOLDER/.config 2>/dev/null rsync -ap --info=progress2 /home/$USER/.config/Mumble $FOLDER/.config 2>/dev/null @@ -90,8 +89,8 @@ if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then rsync -ap --info=progress2 /home/$USER/.config/kdeconnect $FOLDER/.config 2>/dev/null rsync -ap --info=progress2 /home/$USER/.config/Helvum $FOLDER/.config 2>/dev/null rsync -ap --info=progress2 /home/$USER/.config/calibre $FOLDER/.config 2>/dev/null - mkdir -p $FOLDER/.local/share/ - rsync -ap --info=progress2 /home/$USER/.local/share/gnome-shell $FOLDER/.local/share/ 2>/dev/null + #mkdir -p $FOLDER/.local/share/ + rsync -ap --info=progress2 --relative /home/$USER/.local/share/gnome-shell $FOLDER/.local/share/ 2>/dev/null rsync -ap --info=progress2 /home/$USER/.local/share/flatpak/overrides/ $FOLDER/.local/share/flatpak/ 2>/dev/null rsync -ap --info=progress2 /home/$USER/.local/share/lutris $FOLDER/.local/share/ 2>/dev/null rsync -ap --info=progress2 /home/$USER/.local/share/TelegramDesktop $FOLDER/.local/share/ 2>/dev/null @@ -113,6 +112,8 @@ if [[ $user_choice = *"BACKUP All of My Data and Settings"* ]]; then fi if [[ $user_choice = *"Restore all of my data and settings"* ]]; then + Locale=$(locale | grep "LANG" -c) + Desktop=$XDG_CURRENT_DESKTOP echo echo ----------------------------------------------------- echo Copying ${bold}${yellow}Restoring $USER Settings and Files ${normal} into ${bold}${yellow}$FOLDER/${normal}