Don't backup files in .gitignore
1 files changed, 6 insertions(+), 1 deletions(-) M backup
M backup => backup +6 -1
@@ 8,7 8,12 @@ fi dir="$1" comm -23 <(pacman -Qqe | sort) <((echo base; pacman -Qqg base-devel) | sort) > "$dir/packages.txt" rsync -ar --delete --progress --files-from="$HOME/.config/backup/config" "$HOME" "$dir/$(basename "$HOME")" rsync -ar \ --delete-excluded \ --files-from="$HOME/.config/backup/config" \ --filter ":-n .gitignore" \ --progress \ "$HOME" "$dir/$(basename "$HOME")" function is_btrfs_subvolume { local dir="$1"