Tag Archives: Backup

SQL 2012 DPM Backup Failure – The SQL Server instance refused the connection

Some of my DPM Backups on a new 2012 box were failing with the error The fix can be found here and is pretty straight forward. Add the account NT_AUTHORITY\System to have sysadmin priviledges within SSMS. Once added you should receive no more …

Read more »

Exporting Mailboxes to PST’s using Powershell in Exchange 2010

As part of a user leaving, I decided on protocol to backup their mailbox to a PST before deleting their mailbox from Exchange, just incase. This can be achieved very easily with a bit of powershell.

The full instructions …

Read more »

SQL Backup and Restore Commands

Some useful code snippets for backing up and restoring data in MS SQL. Create full backup: (also output times for reference) select {fn Now()}  as ‘Start Time’ BACKUP DATABASE DBNAME TO DISK = ‘d:\DBNAME.bak’ WITH INIT select {fn Now()}  as …

Read more »

mySQL Restore Batch File / Script

I got bored typing mysql commands so wrote a little script to keep on my box for easy access to restore databases from .sql files. It’s very simple and may not be any use to anyone. It also stores the …

Read more »

3G WAN Failover using PFsense and the Edimax 3G-6200nL

We’ve had a few internet issues lately in the office, mostly occurring late in the afternoon when the internet will just drop. I’ve been on the phone to Zen a lot and the cause is noise on the line, but …

Read more »

Script to 7-zip all files and then delete the originals

I wrote a while back about a script which would go through my backup directory and 7-zip my .bak and .sql files and then delete the originals, so that they were much smaller to then backup to my elephant drive. …

Read more »

Moving and Sharing Files with Dropbox

I came across a handy service today called Dropbox. You can download it here, for free. It’s a great way to sync files between your many devices (PC, Laptop, Netbook, Mac, PDA etc). It  creates a folder in your “My …

Read more »

Restore a MySQL Database Backup from the .sql File

I’ve written a bit on backing up data and have been asked how to restore data to MySQL. Pretty simple, assuming you have your backup file, just run: “C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql.exe” -uUSERNAME -pPASSWORD DATABASENAME < “c:\BACKUPFILENAME.sql” On the box …

Read more »

Online Backups with ElephantDrive

We currently have a few externally hosted dedicated servers that are through a pretty reputable company and we have had these for a couple of years now with no problems. All the machines have RAID and all the data (both …

Read more »