This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
############################################################ | |
# MIGRATED TO REPOSITORY | |
# https://github.com/tavinus/cloudsend.sh | |
# | |
# This gist will NOT be updated anymore | |
############################################################ | |
############################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# crontab -e | |
# 0 6 * * * /opt/scripts/backup_daily.sh > /var/backups/latest.log 2>&1 | |
# thanks to founderio i was able to create this script | |
MYSQL_CONF=/etc/mysql/debian.cnf | |
# Ignore mysql system dbs and the cloud db, as that is backed up independently (to reduce downtime of owncloud) | |
IGNORE="cloud|phpmyadmin|mysql|information_schema|performance_schema|test" | |
BACKUP_DIR=/var/backups |