Sync to Web Server
Add your user to the www-data
group.
$ sudo usermod -a -G www-data $USER
Edit the sudoers
file.
$ sudo visudo
Add the following line to the end of the file.
caleb ALL=NOPASSWD:/usr/bin/rsync
Push to the server with the following command:
$ rsync -auv --rsync-path="sudo rsync" source/ caleb@calebh.top:/var/www/calebh.top/destination/