Add -I to rsync to overwrite files in the dest

This commit is contained in:
Stephan Raabe
2023-11-24 13:19:48 +01:00
parent 1a662915b3
commit 8d52e744e4
4 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
if [ ! -z $1 ] ;then
if [ -d ~/dotfiles-versions/"$1" ] ;then
echo "Folder exists. Start rsync now ..."
rsync -avzh --exclude-from=excludes.txt ~/dotfiles-versions/$1/ ~/dotfiles
rsync -avzh -I --exclude-from=excludes.txt ~/dotfiles-versions/$1/ ~/dotfiles
else
echo "Folder ~/dotfiles-versions/$1 not found."
fi