From 789435a1bda64530cb897f89fb670ef756df39f1 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 21 May 2022 20:38:25 -0400 Subject: [PATCH] Fix rsync wine prefix symlink loop issue - Exclude `dosdevices` to avoid symlink loop issue - Sync entire `Games` folder --- .scripts/rsync_laptop_to_external_hdd.sh | 11 +++-------- README.org | 11 +++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/.scripts/rsync_laptop_to_external_hdd.sh b/.scripts/rsync_laptop_to_external_hdd.sh index 577d873..3c7e3f8 100755 --- a/.scripts/rsync_laptop_to_external_hdd.sh +++ b/.scripts/rsync_laptop_to_external_hdd.sh @@ -12,10 +12,7 @@ declare -a source_dirs=( "$home_path/Music/" "$home_path/Pictures/" "$home_path/Videos/" - "$home_path/Games/PolyMC/" - "$home_path/Games/Retro/" - "$home_path/Games/Steam/steamapps/common/" - "$home_path/Games/Lutris/" + "$home_path/Games/" "$home_path/.config/lutris/" "$home_path/.config/dolphin-emu/" "$home_path/.config/PCSX2/" @@ -29,10 +26,7 @@ declare -a target_dirs=( "$backup_path/Music/" "$backup_path/Pictures/" "$backup_path/Videos/" - "$backup_path/Games/PolyMC/" - "$backup_path/Games/Retro/" - "$backup_path/Games/Steam/" - "$backup_path/Games/Lutris/" + "$backup_path/Games/" "$backup_path/Config/Lutris/" "$backup_path/Config/Dolphin-Emu/" "$backup_path/Config/PCSX2/" @@ -47,6 +41,7 @@ for i in ${!source_dirs[@]}; do # Copy source dirs to target dirs rsync -a -v -L --progress --delete \ + --exclude '*/dosdevices/' \ "${source_dirs[$i]}" \ "${target_dirs[$i]}" done diff --git a/README.org b/README.org index 74a26e3..0f3790f 100644 --- a/README.org +++ b/README.org @@ -8116,10 +8116,7 @@ declare -a source_dirs=( "$home_path/Music/" "$home_path/Pictures/" "$home_path/Videos/" - "$home_path/Games/PolyMC/" - "$home_path/Games/Retro/" - "$home_path/Games/Steam/steamapps/common/" - "$home_path/Games/Lutris/" + "$home_path/Games/" "$home_path/.config/lutris/" "$home_path/.config/dolphin-emu/" "$home_path/.config/PCSX2/" @@ -8133,10 +8130,7 @@ declare -a target_dirs=( "$backup_path/Music/" "$backup_path/Pictures/" "$backup_path/Videos/" - "$backup_path/Games/PolyMC/" - "$backup_path/Games/Retro/" - "$backup_path/Games/Steam/" - "$backup_path/Games/Lutris/" + "$backup_path/Games/" "$backup_path/Config/Lutris/" "$backup_path/Config/Dolphin-Emu/" "$backup_path/Config/PCSX2/" @@ -8151,6 +8145,7 @@ for i in ${!source_dirs[@]}; do # Copy source dirs to target dirs rsync -a -v -L --progress --delete \ + --exclude '*/dosdevices/' \ "${source_dirs[$i]}" \ "${target_dirs[$i]}" done