Backups Latest Topicshttps://exile.majormittens.co.uk/forum/102-backups/Backups Latest TopicsenComplete Backup Scriptshttps://exile.majormittens.co.uk/topic/12491-complete-backup-scripts/ Simple scripts that can be run from task scheduler or BEC/MRCON etc...

.bat files the will Backup MySQL and any important Arma 3 server files. These .bat files can be uses for multiple applications. 

Feel free to download and amend the files here: Link

If you want to automate the Arma 3 server backup, insure you remove the “pause” from around line 96.

Avoid spaces in your file patch, this has been known to break the script.

If you would like help visit: http://darkmattergaming.com

Useful tools:
Notepad++: https://notepad-plus-plus.org/download/v6.9.html 
CMTools (for log files): https://www.microsoft.com/en-us/download/details.aspx?id=50012
7zip: http://7-zip.org/download.html
Visual Studio Code: https://code.visualstudio.com/Download

]]>
12491Sun, 13 Mar 2016 08:06:18 +0000
MySQL Dumper - web based auto backup to FTPhttps://exile.majormittens.co.uk/topic/26533-mysql-dumper-web-based-auto-backup-to-ftp/ MySQL Dumper created by Daniel Schlichtholz

Grab it here: https://sourceforge.net/projects/mysqldumper or here https://github.com/aussie-battler/MySql-Dumper

About: MySQLDumper is a free web based backup/restore script for MYSQL which can handle huge dbs. You can use cpanel's cron jobs to create regular backups of multiple databases to FTP sites. Unfortunately there is no longer any support, however install / setup is easy.

Installation is very easy: Upload the install files to your website. Configure the databases & ftp site to backup to.

Here is a tutorial: https://www.1and1.com/digitalguide/hosting/technical-matters/creating-backups-with-mysqldumper/

Schedule backups: 

1. in MySQLDumper click in the "backup" tab.

2. Click "Backup Perl"

3. Copy the "Commandline in the Shell or for the Crontab" (your path to MysqlDumper will be different):
 

Spoiler

    perl /home/your_user_name/public_html/mybackups/msd_cron/crondump.pl -config=mysqldumper -html_output=0

4. Open Cpanel on your website.

5. Click "cron Jobs".
6. Schedule how often you would like to backup & if you want to receive an email notification.

7. Paste in the MysqlDumper command into the "command section".

Sit back & crack a beer.

20171214010247_1.jpg

]]>
26533Sun, 03 Jun 2018 03:34:07 +0000
MySQL Backups using Shadow Copieshttps://exile.majormittens.co.uk/topic/25719-mysql-backups-using-shadow-copies/

I created this so people could be made aware of Shadow Copy Service in Windows. 

Thanks, 

Josh

]]>
25719Sun, 18 Feb 2018 05:27:57 +0000
MySql Backup for Dedicated Servers , and MYSQL passwordhttps://exile.majormittens.co.uk/topic/25078-mysql-backup-for-dedicated-servers-and-mysql-password/ Here is an excellent DB backup utility I found you can backup every hour , day , whatever you want  https://www.redolive.com/utah-web-designers-blog/automated-mysql-backup-for-windows/

Do you have a server you created the db for .. but forgot to put a password on the db or change the password  see here to resolve that http://howtolamp.com/lamp/mysql/5.6/securing#secure-users
 If you're using XAMPP and you need to make changes like the password above .. open up your XAMPP control panel .. click the shell button this is where you log into your mysql server the # _ you see is where you type in mysql .. if you don't have a password it wont ask for one if you do have one it will prompt you for password. then follow the instructions above from there to set or change your password.
 

xampp_mysql.png

]]>
25078Thu, 07 Dec 2017 11:26:50 +0000
WIP Simple Backup Scripts -w/mysqlhttps://exile.majormittens.co.uk/topic/1355-wip-simple-backup-scripts-wmysql/FOR GAWD SAKES READ, and make your own Batchfiles, dont be a dum ass and run my personal scripts... If you dont know how to use batchfiles dont mess around here. Go away.

 

Here is one i use, that does very well. V1.0

It Xcopies C:\Arma stored server (directory) all files *.* then copies the files to your backup Location

it passes arguments /e/h/k/y/z

/e : Copies all subdirectories, even if they are empty. Use /e with the /s and /t command-line options.

/h : Copies files with hidden and system file attributes. By default, xcopy does not copy hidden or system files.

/k : Copies files and retains the read-only attribute on destination files if present on the source files. By default, xcopy removes the read-only attribute.

/y : Suppresses prompting to confirm that you want to overwrite an existing destination file.

/z : Copies over a network in restartable mode.

For more arguments visit:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/xcopy.mspx?mfr=true

Or google it for other great sites.

Windows based.

ECHO OFF
CLS
color b1
ECHO.
ECHO ...............................................
ECHO ...............................................
ECHO .........SCHEDULED TASK BACKUP.................
ECHO ...............................................
ECHO ...............................................
XCOPY "c:\Arma3Servers\Server3\*.*" C:\Arma3Servers\Backup\Server3\ /e/h/k/Y/z

Change your settings to your own Server Directory, and Backup Drive file locations.

Create a task Scheduler, and link it to this bat file which can be stored in your server root folder.

http://windows.microsoft.com/en-US/windows/schedule-task#1TC=windows-7

You can modify this,  and backups with no flaws i have noticed yet.

** Working on adding in the Mysql Simple backup included in this.**

Sneaks

]]>
1355Sat, 19 Sep 2015 23:50:54 +0000
Deleted - Out of datehttps://exile.majormittens.co.uk/topic/12650-deleted-out-of-date/ .

]]>
12650Thu, 17 Mar 2016 03:24:42 +0000
Manual Backupshttps://exile.majormittens.co.uk/topic/10790-manual-backups/ Does anyone know how to perform a manual backup using HeidiSQL?  Is it just the "export database as SQL"?

 

Thanks in advance for helping a newbie! 

]]>
10790Thu, 28 Jan 2016 14:25:57 +0000
SQL Backuphttps://exile.majormittens.co.uk/topic/7055-sql-backup/Hello,

 

I thought I would share an SQL Backup .bat file, make sure you run this with Task Scheduler and change the directories to your preferences.

 

SET backupTime="%date:~0,2%-%date:~3,2%-%date:~6,6%_%time:~0,2%-%time:~3,2%"

mysqldump --user=root --password=[password] exile > E:\Backup\SQL\%backupTime%.sql

 

]]>
7055Thu, 29 Oct 2015 13:08:07 +0000
Linux scheduled backups and cleanup.https://exile.majormittens.co.uk/topic/7424-linux-scheduled-backups-and-cleanup/Here is a couple of scripts that will backup database with date/time stamps and cleanup old backups.

First let's create the backup script.

dbbackup.sh

#!/bin/sh
#----------------------------------------------------
# Change DATABASE, USER, and PASS to match your
# mysql parameters.
# DBSERVER can be changed IF you have enabled remote
# access to your MySQL server.
# Change DEST to where you would like to store backups.
# No trailing /
#----------------------------------------------------
DEST=/home/unbound/A3Exile/dbbackup
FILE=$DEST/exile.`date +"%Y_%m_%d_%H%M"`.sql
DBSERVER=127.0.0.1
DATABASE=exile
USER=exile
PASS=password12345

mysqldump --opt --user=${USER} --password=${PASS} ${DATABASE} > ${FILE}

gzip $FILE

Now we create the cleanup script.

dbcleanup.sh

#!/bin/bash
#----------------------------------------------------
# Database Cleanup Script
# Change DEST to your backup directory, no trailing /
# Change +30 to the age in days to delete. (+7 = 7 days +30 = 30 Days)
#----------------------------------------------------
DEST=/home/unbound/A3Exile/dbbackup
find $DEST/* -mtime +7 -exec rm {} \;

Use the "crontab -e" command to schedule these scripts. You can use this to help with your schedule.

I add this to the end of my cron to schedule backups every 30 minutes and cleanup once a week. (4am sundays)

You will want to change the locations of your scripts accordingly.

#Exile Database Backup
*/30 * * * * /home/unbound/scripts/dbbackup.sh

#Exile Backup Cleanup
0 4 * * 0 /home/unbound/scripts/dbcleanup.sh

]]>
7424Sat, 07 Nov 2015 19:35:20 +0000
backupshttps://exile.majormittens.co.uk/topic/56-backups/What are you peeps using for backups? I'm hosting mine on windows environment. any thoughts?

 

]]>
56Thu, 10 Sep 2015 04:04:28 +0000