A basic backup script for Nginx on Ubuntu.
Backs up everything in /var/www/ and /etc/nginx/
Create a directory titled "backup" in your $HOME directory:
user@computer:~$ mkdir backup
Edit the user variable in the script to match your user account.
Run the script with sudo.