From 26e5c160fd38bf80a5b6a6b8556e025770547d12 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 21 May 2022 06:40:53 -0400 Subject: [PATCH] Update External HDD Rsync Script - Reformatted external HDD as exFAT due to NTFS permission issues - Change `external_hdd_path` to "/mnt/Seagate 5TB" - Add Pictures directory to backup - Add Lutris system settings and configuration to backup - Add Dolphin, PCSX2, RetroArch, and RPCS3 system settings to backup --- .scripts/rsync_laptop_to_external_hdd.sh | 16 +++++++++++++++- README.org | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.scripts/rsync_laptop_to_external_hdd.sh b/.scripts/rsync_laptop_to_external_hdd.sh index 558fc91..577d873 100755 --- a/.scripts/rsync_laptop_to_external_hdd.sh +++ b/.scripts/rsync_laptop_to_external_hdd.sh @@ -1,6 +1,6 @@ #!/bin/bash # Define base paths -external_hdd_path="/mnt/5TB External HDD" +external_hdd_path="/mnt/Seagate 5TB" backup_path="$external_hdd_path/Backups" home_path="/home/sravan" @@ -10,20 +10,34 @@ declare -a source_dirs=( "$home_path/Documents/" "$home_path/ISOs/" "$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/.config/lutris/" + "$home_path/.config/dolphin-emu/" + "$home_path/.config/PCSX2/" + "$home_path/.config/retroarch/" + "$home_path/.config/rpcs3/" ) declare -a target_dirs=( "$backup_path/Calibre_Library/" "$backup_path/Documents/" "$backup_path/ISOs/" "$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/Config/Lutris/" + "$backup_path/Config/Dolphin-Emu/" + "$backup_path/Config/PCSX2/" + "$backup_path/Config/RetroArch/" + "$backup_path/Config/RPCS3/" ) # Loop through arrays diff --git a/README.org b/README.org index 5d967a4..74a26e3 100644 --- a/README.org +++ b/README.org @@ -8104,7 +8104,7 @@ done #+BEGIN_SRC shell :shebang #!/bin/bash :tangle .scripts/rsync_laptop_to_external_hdd.sh # Define base paths -external_hdd_path="/mnt/5TB External HDD" +external_hdd_path="/mnt/Seagate 5TB" backup_path="$external_hdd_path/Backups" home_path="/home/sravan" @@ -8114,20 +8114,34 @@ declare -a source_dirs=( "$home_path/Documents/" "$home_path/ISOs/" "$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/.config/lutris/" + "$home_path/.config/dolphin-emu/" + "$home_path/.config/PCSX2/" + "$home_path/.config/retroarch/" + "$home_path/.config/rpcs3/" ) declare -a target_dirs=( "$backup_path/Calibre_Library/" "$backup_path/Documents/" "$backup_path/ISOs/" "$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/Config/Lutris/" + "$backup_path/Config/Dolphin-Emu/" + "$backup_path/Config/PCSX2/" + "$backup_path/Config/RetroArch/" + "$backup_path/Config/RPCS3/" ) # Loop through arrays