SSH instructions
# Check there is enough available local storage to make a tar
df -h
# Find apache root (http://www.cyberciti.biz/faq/howto-find-unix-linux-apache-documentroot/)
grep -i 'DocumentRoot' /etc/httpd/conf/httpd.conf
# Generate tar with output of previous: DocumentRoot "/var/www/html"
tar -cvzf ~/realweddingsmag.com-2016-10-31.tar.gz -C /var/www/ html/ --exclude .git
# Check tar size
du -sh ~/realweddingsmag.com-2016-10-31.tar.gz
# Download latest rclone and unzip
wget http://downloads.rclone.org/rclone-current-linux-amd64.zip && unzip rclone-current-linux-amd64.zip
# Configure rclone with Dropbox
cd rclone-v1.33-linux-amd64/
./rclone config
n
Anchor-Dropbox
4
# Enter app sercret and key from https://www.dropbox.com/developers/apps/info/27ey5l9arcvs5ls
y
q
# Moves snapshot to Dropbox archive folder
./rclone move ~/realweddingsmag.com-2016-10-31.tar.gz Anchor-Dropbox:Backup/Archive