Backing up your PypeServer Databases

Backing up your PypeServer Databases

Backing up your PypeServer Databases

Backing up your PypeServer Databases

Using SQL Backup and FTP

Out of the box, PypeServer comes with SQL Backup and FTP (free version). It backs up the databases on the local computer disc, and an extra smaller disk (typically an SD card or thumb drive, sometimes and actual disk). You are welcome to use that to direct backups to other locations on your LAN or cloud shares.

Using Microsofts SQL Server Express Backup (+script + scheduler)

We've configured the backup device for this as well, though we do not automatically schedule it. This was an article copied from: http://www.fmsinc.com/free/newtips/sql/sqlserverexpressdatabase/automated_backup.asp

Automate the Backup of Your Microsoft SQL Server Express Databases

Provided by: John Litchfield, Database Analyst

Have you ever attempted to setup an automated backup of your SQL Server Express database server, only to discover that the handy job scheduler maintenance options that you are accustomed to using with the full version of SQL Server are not available with the express edition? After a brief search of Google, you may have noticed that others have managed to implement this procedure, but they either ended up purchasing a 3rd party product solution or they are using the less than ideal practice of pausing the SQL Server Express Service in order to create a backup copy of the MDF and LDF files (this means that the SQL Server is briefly taken offline). This works, but for servers that must be live on a 24/7 basis, this is not the best solution.

Of course you can upgrade your SQL Server Express to the full edition of SQL Server; however, this is very expensive. If your current implementation of SQL Server Express meets your needs with the exception of this dilemma with obtaining a backup, you will be enthused to discover that there is a way to accomplish this task using the Express Edition (without pausing the SQL Server service and without the purchase of a 3rd party utility). Simply follow these steps:

Install SQL Server Management Studio Express

Backups require installing the SQL Server Management Studio Express. This is a free download that comes with recent versions of SQL Server Express. Select it from the same place you download the main program. If you are using SQL Server Express 2008 R2 SP1 or earlier, there is a separate download link. For more information on the different versions and links for downloads, visit our?SQL Server Express: Version Comparison Matrix and Free Downloads?page.

The examples below show screenshots from SQL Server Management Studio Express 2014, which is similar to earlier versions of SQL Server Express.

Create the Backup Job

Run SQL Server Management Studio Express.

  1. In the tree view, expand Server Objects => New Backup Device.
    SQL Server Express New Backup Device Menu

  2. The Backup Device dialog opens
    SQL Server Express Backup Device Dialog

    1. For Device Name, type in a name for your new backup job.

    2. For Destination, select the path to store the backups. In most cases, it is best to use an location on another device.

    3. Press OK.

  3. Right click on the new backup device that you just created and select the option called "Backup Database".
    SQL Server Express Backup Type

    1. Select the backup type (most often this is "Full").

  4. On the left side, select Backup Options and set the following:
    Backup Database

    1. Name: Create a name for the backup job.

    2. Description (optional).

    3. Press OK.

  5. SQL Server runs the backup job to test it. If successful, it confirms this with the following message:
    Database backup confirmed

  6. To verify the backup output yourself, check the destination folder to ensure that the backup file exists. The backup of the database is in the form of a .bak file.

The setup of the backup job is now complete. Repeat these steps for each database you wish to backup.

Create a Batch Command to Run the Job

A batch file can be used to run the SQL Server backup job that you just created. Here's an example (remember to save this file with a "BAT" file extension):

--- < Begin Code Batch Script > ---

sqlcmd -S MYSERVER\OFFICESERVERS -E -Q

"BACKUP DATABASE MASTER TO TESTBACKUP"

--- < End Code Batch Script > -----

..where "MYSERVER" is the name of the SQL Server physical machine.
..where "OFFICESERVERS" is the name of the SQL Server.
..where "TESTBACKUP" is the name of the backup job.
..where "MASTER" is the name of the database.

Schedule the Job

For this task to run automatically, it must be assigned to a scheduler program. Here are a few options:

  1. The built in Microsoft Windows Scheduler and assign the batch file created above to a scheduled event.

  2. FMS offers a program?Total Visual Agent, which includes the ability to execute and run a specified batch command on the schedule that best suits your needs and maintain an audit log.

    • Related Articles

    • Getting Started with PypeServer

      Getting Started with PypeServer (and Frequently Asked Questions) This document covers what to do in preparation for using the PypeServer software, and maintaining the PypeServer system. Contents 1 User Information 3 1.1 Overview 3 1.2 General Layout ...
    • Getting Started with PypeServer

      1 User Information 1.1 Overview · The PypeServer Kiosk is an industrially enclosed computer system that sits next to the pipe cutting machine. · PypeServer is currently (as of 2020) running Windows 10 Professional. It can also be run on Window 7 ...
    • Importing Into PypeServer

      Importing Into PypeServer How Importing Works This document describes the process of importing data that describes pipe parts. PypeServer creates these importers, though customers may contact PypeServer if they are interested in developing their own ...
    • Pypeserver with EdgeConnect Machines

      Pypeserver with EdgeConnect Machines PypeServer with EdgeConnect machines Machine configuration When configuring your machine, some preparatory steps are required in order to get meaningful test results. Getting axial directions correct This is done ...
    • Checks for Running PypeServer Remotely

      Checks for Running PypeServer Remotely Basic Checking for Running PypeServer Across the LAN On Kiosk Make Sure the remote seat firewall is not blocking the connection between the two computers.? Check if the firewall is on. It must either be off, or ...