1. Home
  2. Config
  3. Backup Settings

Backup Settings

Powercode will automatically backup your database, uploaded files and networking monitoring data nightly. Personal settings and external backups can be set up under Config > Backup Settings.

Storing your backups offsite is a critical part of maintaining your system – we do not backup or store any of your data, so if your server fails, all your data will be lost!

This video contains basic information about backups as of July 17, 2017. See the bottom of this article for changes to remote backup integrations since then.

Enable Backups: Allows the disabling of system backups.  Disabling Backups is not recommended outside of extreme circumstances.

Backup Schedule

Incremental/Full Toggle: A full backup will store all files whether they have changed or not. An incremental backup will store only updated files. At least one backup each week will need to be a full backup.

Weeks to Store Backups: The minimum in this field is one week.

Confirmation Settings

Email Confirmations: Daily email confirmations will alert you to any problems with offsite backup or backup completion.  Enabling this is heavily recommended.

From Email: If you have trouble receiving emails make sure you are using an address the remote server credentials or local Powercode email server have permission to send as.

Remote Backup Settings

There are currently four options for remote backups:

Dropbox

Dropbox is a popular cloud based storage system. This article explains how to set up Dropbox Backups.  Dropbox is currently the least complicated remote backup method to activate, however, large amounts of space can be expensive.

AWS

Amazon Web Services offers a flexible service that is cheaper than Dropbox for large installations but requires additional configuration. Once you have your AWS environment set up you can follow this guide to setting up AWS backups in Powercode.

SCP

SCP backups do not actually use the SCP protocol. Instead they currently make use of ssh2.connect. Certain security settings may interfere with this backup.

SCP transfers backups using SCP (secure copy) – this is typically used to backup to Linux systems but it can be used with any remote server that supports SSH/SCP. An example of a company that offers offsite backup using SCP is rsync.net. SCP backups can either be initiated using password or key based authentication. Password, while not recommended, is the easiest to configure (simply enter your username and password). Key based removes the need to store your password in the Powercode database. Powercode supports RSA or DSA keys for key-based backup.

When using SCP backups you need to ssh into the backup server from the billing server and the billing server from the backup server using the backup user and password to save the RSA key and filepath. If this cannot be done validation will fail and the files will not be sent.

Due to technical limitations, if you authenticate SCP using a username and password, backup files exceeding 2GB will be split into 1GB blocks and transmitted in parts with a sequential suffix appended to the file. Once all pieces have been sent to the remote server, they will be rejoined. If you authenticate using a key based authentication, we do not have this limitation. The file split process can be taxing on some systems and adds another avenue for error so using key based authentication is strongly recommended if you are using SCP.

Regardless of the size of the file, once transmission is complete, an MD5 checksum is generated and compared with the original backup. Email notifications will alert you of any failures during transmission or if the checksum of the remote file does not match that of the original backup.

FTP

FTP transfers backups using File Transfer Protocol. This is fairly easy to setup but the least secure as the transmission is not encrypted. FTP backups are authenticated by username and password.

Due to technical limitations, FTP backup files exceeding 2GB will be split into 1GB blocks and transmitted in parts with a sequential suffix appended to the file. Email notifications will alert you of any failures during transmission. For restoration, a simple

cat

command on the files will rejoin them. For example:

cat 20130401.Mon.Full.tgz.a* > 20130401.Mon.Full.tgz
Updated on July 19, 2018

Was this article helpful?

Related Articles