Automated Backup Script | Local & External | MySQL, Server Files, & More! 1.5.1

Backup your server files in ease
FOR BTC, message me on discord: markd#0001

Mark's Backup Script

Features
- MySQL Backup (External and internal
- Server/Other files backup
- Multiple directories
- Automated Backups
- FTP, SFTP Support
- MOTD to show the last backup
- Super configurable
- Local Backups
- Fail checks
- Enable/Disable Everything
- Delete Old Backups!
- Discord Notifications (https://i.markdav.id/PcfoT1cON2)
& many more <3

About
I created this script a while ago to easily backup my client's servers. I thought I might share it.

How to install
Firstly, upload the two files in the zip provided to the / directory of your server. Read the .rc file on how to set up the script.

Feel free to contact me on discord if you need it set up, I will do it for free.

Todo list
- Amazon s3 support
- Redis, mongo
- Easier setup?
..? PM me suggestions!

# ███╗░░░███╗░█████╗░██████╗░██╗░░██╗  ██████╗░░█████╗░██╗░░░██╗██╗██████╗░
# ████╗░████║██╔══██╗██╔══██╗██║░██╔╝  ██╔══██╗██╔══██╗██║░░░██║██║██╔══██╗
# ██╔████╔██║███████║██████╔╝█████═╝░  ██║░░██║███████║╚██╗░██╔╝██║██║░░██║
# ██║╚██╔╝██║██╔══██║██╔══██╗██╔═██╗░  ██║░░██║██╔══██║░╚████╔╝░██║██║░░██║
# ██║░╚═╝░██║██║░░██║██║░░██║██║░╚██╗  ██████╔╝██║░░██║░░╚██╔╝░░██║██████╔╝
# ╚═╝░░░░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝╚═╝░░╚═╝  ╚═════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝╚═════╝░
#
# Script created by https://markdav.id/
# All rights reserved to myself
# Please contact me for support.
# Shoutout to dovy#7868 for assistance with file checks! <3
#
############## SETUP GUIDE ##############
# Upload the script & this file to your server in the / directory.
# Run chmod +x backup.sh && chmod backup_settings.rc
# If you have no clue what you're doing, contact me on discord (markd#0001) and I'll set it up.
# To setup the script firstly make sure you have a backup server
# Configure the options below, if you don't know what it does contact me
# Test the script by running ./backup.sh, if no errors occur then move onto the automatic settings

############## AUTOMATIC BACKUPS ##############
# To automatically backup follow one of these.
# NOTE: Cron is very dangerous system, if you do not know what you are doing, please consult with me or your system admin!
# Please use https://crontab.guru/ if you need help.

# Run daily, change the digit (ex: 6) to the time you want it to run at:
# echo "0 6 * * * /backup.sh" >> /etc/crontab

# Run every x hours (change the X to what run at a set time):
# echo "0 */X * * * /backup.sh" >> /etc/crontab

# For a custom time, please consult with me or your system admin.
############## CONFIGURATION ##############
# Should it send a discord webhook?
WEBHOOK_SELECT=true
# Discord Webhook for backup notifications
WEBHOOK=
# How the file will be named
DATETIME=`date +%Y-%m-%d-%H:%M`
# Name of the file (dont change)
BACKUP_FILENAME=$DATETIME.zip
# Type files which should be backed up here, seperaete them by a space. For the whole folder put /home
FILES=/testbackupss
# Username for FTP
USER=u231527
# Password for FTP
PASS=FTP PASS HERE
# Host/Server
HOST=HOST HERE
# Where files should be stored on backup server
BACKUPFOLDER=backups
# Where the script is located on the current server
SCRIPT_LOCATION=/backupscript
# Should the script backup locally or externally (if set to local, it will backup to the variable above/backups ( ex: /script/backups)
LOCAL=false

############## MYSQL CONFIG ##############
# Enable/Disable backups (1=enabled 2=disabled)
MYSQLENABLE=true
# MySQL User (make sure it has full perms to localhost)
SQLUSER="backup"
# SQL user Pass (shouldnt matter on security because its localhost)
SQLPASS="s3cr3t"
# Backup Directory (gets deleted)
OUTPUTDIR=/tmp/backup/$DATETIME-SQL
# MySQL Dump (dont change by default)
MYSQLDUMP="/usr/bin/mysqldump"
MYSQL="/usr/bin/mysql"

Support
For support- you can reach me on discord at: markd#0001

Latest updates

  1. Urgent Bug Fix

    Yet again another bug fix YAABF
  2. Delete Old Files & Bug fix

    There is now a config option to delete the old backup. A bug fix was also pushed out to resolve...
  3. External MySQL Backup

    You can now externally backup a database from another server.

Latest reviews

Issue with the script, Mark said he would fix it over 5 weeks ago. and still northing
markd
markd
Hello. The script works fine on my server and my clients haven't had an issue with it. I will send you a message later tonight.
markd, is one of the best people I know, he will definitely get the job done. Huge vouch.
markd
markd
markd the builder <3
Vouch great backup script, help me set it up too!
markd
markd
thanks captn!

Author

markd

Owner
Author
markd
Downloads
26
Type
Digital product
License duration
Unlimited
Price
4.00 USD
Views
1,238
First release
Last update
Rating
3.67 star(s) 3 ratings
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.