Fix rsync wine prefix symlink loop issue
- Exclude `dosdevices` to avoid symlink loop issue - Sync entire `Games` folder
This commit is contained in:
@@ -12,10 +12,7 @@ declare -a source_dirs=(
|
|||||||
"$home_path/Music/"
|
"$home_path/Music/"
|
||||||
"$home_path/Pictures/"
|
"$home_path/Pictures/"
|
||||||
"$home_path/Videos/"
|
"$home_path/Videos/"
|
||||||
"$home_path/Games/PolyMC/"
|
"$home_path/Games/"
|
||||||
"$home_path/Games/Retro/"
|
|
||||||
"$home_path/Games/Steam/steamapps/common/"
|
|
||||||
"$home_path/Games/Lutris/"
|
|
||||||
"$home_path/.config/lutris/"
|
"$home_path/.config/lutris/"
|
||||||
"$home_path/.config/dolphin-emu/"
|
"$home_path/.config/dolphin-emu/"
|
||||||
"$home_path/.config/PCSX2/"
|
"$home_path/.config/PCSX2/"
|
||||||
@@ -29,10 +26,7 @@ declare -a target_dirs=(
|
|||||||
"$backup_path/Music/"
|
"$backup_path/Music/"
|
||||||
"$backup_path/Pictures/"
|
"$backup_path/Pictures/"
|
||||||
"$backup_path/Videos/"
|
"$backup_path/Videos/"
|
||||||
"$backup_path/Games/PolyMC/"
|
"$backup_path/Games/"
|
||||||
"$backup_path/Games/Retro/"
|
|
||||||
"$backup_path/Games/Steam/"
|
|
||||||
"$backup_path/Games/Lutris/"
|
|
||||||
"$backup_path/Config/Lutris/"
|
"$backup_path/Config/Lutris/"
|
||||||
"$backup_path/Config/Dolphin-Emu/"
|
"$backup_path/Config/Dolphin-Emu/"
|
||||||
"$backup_path/Config/PCSX2/"
|
"$backup_path/Config/PCSX2/"
|
||||||
@@ -47,6 +41,7 @@ for i in ${!source_dirs[@]}; do
|
|||||||
|
|
||||||
# Copy source dirs to target dirs
|
# Copy source dirs to target dirs
|
||||||
rsync -a -v -L --progress --delete \
|
rsync -a -v -L --progress --delete \
|
||||||
|
--exclude '*/dosdevices/' \
|
||||||
"${source_dirs[$i]}" \
|
"${source_dirs[$i]}" \
|
||||||
"${target_dirs[$i]}"
|
"${target_dirs[$i]}"
|
||||||
done
|
done
|
||||||
|
11
README.org
11
README.org
@@ -8116,10 +8116,7 @@ declare -a source_dirs=(
|
|||||||
"$home_path/Music/"
|
"$home_path/Music/"
|
||||||
"$home_path/Pictures/"
|
"$home_path/Pictures/"
|
||||||
"$home_path/Videos/"
|
"$home_path/Videos/"
|
||||||
"$home_path/Games/PolyMC/"
|
"$home_path/Games/"
|
||||||
"$home_path/Games/Retro/"
|
|
||||||
"$home_path/Games/Steam/steamapps/common/"
|
|
||||||
"$home_path/Games/Lutris/"
|
|
||||||
"$home_path/.config/lutris/"
|
"$home_path/.config/lutris/"
|
||||||
"$home_path/.config/dolphin-emu/"
|
"$home_path/.config/dolphin-emu/"
|
||||||
"$home_path/.config/PCSX2/"
|
"$home_path/.config/PCSX2/"
|
||||||
@@ -8133,10 +8130,7 @@ declare -a target_dirs=(
|
|||||||
"$backup_path/Music/"
|
"$backup_path/Music/"
|
||||||
"$backup_path/Pictures/"
|
"$backup_path/Pictures/"
|
||||||
"$backup_path/Videos/"
|
"$backup_path/Videos/"
|
||||||
"$backup_path/Games/PolyMC/"
|
"$backup_path/Games/"
|
||||||
"$backup_path/Games/Retro/"
|
|
||||||
"$backup_path/Games/Steam/"
|
|
||||||
"$backup_path/Games/Lutris/"
|
|
||||||
"$backup_path/Config/Lutris/"
|
"$backup_path/Config/Lutris/"
|
||||||
"$backup_path/Config/Dolphin-Emu/"
|
"$backup_path/Config/Dolphin-Emu/"
|
||||||
"$backup_path/Config/PCSX2/"
|
"$backup_path/Config/PCSX2/"
|
||||||
@@ -8151,6 +8145,7 @@ for i in ${!source_dirs[@]}; do
|
|||||||
|
|
||||||
# Copy source dirs to target dirs
|
# Copy source dirs to target dirs
|
||||||
rsync -a -v -L --progress --delete \
|
rsync -a -v -L --progress --delete \
|
||||||
|
--exclude '*/dosdevices/' \
|
||||||
"${source_dirs[$i]}" \
|
"${source_dirs[$i]}" \
|
||||||
"${target_dirs[$i]}"
|
"${target_dirs[$i]}"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user