Skip to content

Commit

Permalink
Avoid deleting the .git directory in the backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
hdgarrood committed Sep 26, 2020
1 parent 5983d0d commit d80db81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
SOURCE_DIR="$1"
DEST_DIR="$2"

rsync --archive --verbose --delete "$SOURCE_DIR" "$DEST_DIR"
rsync --archive --verbose --delete --exclude .git "$SOURCE_DIR" "$DEST_DIR"
pushd "$DEST_DIR"

git add . # add new files
Expand Down

0 comments on commit d80db81

Please sign in to comment.