Skip to content

Instantly share code, notes, and snippets.

View founderio's full-sized avatar

Oliver Kahrmann founderio

View GitHub Profile
@tavinus
tavinus / cloudsend.sh
Last active July 24, 2023 11:58
Send files to Nextcloud/Owncloud shared folder using curl
#!/usr/bin/env bash
############################################################
# MIGRATED TO REPOSITORY
# https://github.com/tavinus/cloudsend.sh
#
# This gist will NOT be updated anymore
############################################################
############################################################
#!/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