From a87e4ff44908ff8c10cc9d59bd0595c002c52e37 Mon Sep 17 00:00:00 2001 From: clsty Date: Tue, 7 Oct 2025 08:07:52 +0800 Subject: [PATCH] Not backup Steam This is far from perfect because ideally it should only backup the possible overwritten destinations. --- scriptdata/step/3.install-files.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scriptdata/step/3.install-files.sh b/scriptdata/step/3.install-files.sh index 5a1615a1e..260903306 100644 --- a/scriptdata/step/3.install-files.sh +++ b/scriptdata/step/3.install-files.sh @@ -9,7 +9,11 @@ function backup_configs(){ rsync -av --progress "$XDG_CONFIG_HOME/" "$backup_dir/config_backup/" echo "Backing up $HOME/.local to $backup_dir/local_backup" - rsync -av --progress "$HOME/.local/" "$backup_dir/local_backup/" + declare -a arg_excludes=() + arg_excludes+=(--exclude "$HOME/.local/share/Steam") + arg_excludes+=(--exclude "$HOME/.local/share/steam") + rsync -av --progress "${arg_excludes[@]}" "$HOME/.local/" "$backup_dir/local_backup/" + declare -a arg_excludes=() } function warning_rsync(){