I'm trying to simply sync a folder using rsync over my local network from my computer in front of me to the destination computer.
#!/bin/bash
echo "This script will sync from my Macbook Dropbox/scripts/ folder to [email protected] @ Norms house"
OPTIONS="--recursive --ignore-existing --progress"
SRC_DIR="~/Dropbox/scripts/"
DST_DIR="[email protected]:~/scripts/"
rsync "$OPTIONS" "$SRC_DIR" "$DST_DIR"
To give myself write privileges
chmod +x nameofscript.sh
When I run it, it outputs:
rsync: --recursive --ignore-existing --progress: unknown option
How do I properly store these options and run it as a script?