#!/bin/bash
FILENAME=backups/backup_$(date +'%Y%m%d-%H%M%S').sql.gz
mysqldump cmc | gzip > $FILENAME
rclone copy $FILENAME gdrivebackups:database/
rclone sync cmc-sales/app/webroot/pdf gdrivebackups:pdf/
