#AT@VPS Script Plugin – Backup Server and Upload to Cloud #!/bin/bash SERVER_NAME=ARROWTRAN_BACKUP_CODE TIMESTAMP=$(date +”%F”) BACKUP_DIR=”/root/backup/$TIMESTAMP” MYSQL=/usr/bin/mysql MYSQLDUMP=/usr/bin/mysqldump SECONDS=0 remote=bkremote mkdir -p “$BACKUP_DIR/mysql” echo “Starting Backup Database”; databases=$MYSQL -e “SHOW DATABASES;” | grep -Ev “(Database|information_schema|performance_schema|mysql)” #for db in $databases; do #$MYSQLDUMP –force –opt $db | gzip > “$BACKUP_DIR/mysql/$db.gz” #done echo “Finished”; echo ”; echo “Starting Backup … Continue reading backup_code
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed