Backing Up Shares and the Database

Aspera recommends backing up Shares and the MySQL database before any major changes to your Shares installation, such as installing a patch or upgrading to a newer version of Shares.
Note: The Shares web application and the nginx service are still available when performing a backup.
  1. Create a backup directory.
    Run the following in a Command Prompt, where C:\backups is your backup directory:
    > mkdir C:\backups
  2. Stop Shares services.
    Click Start > Control Panel > Administrative Tools > Services and stop the following services:
    • Aspera Nginx Service
    • Aspera Delayed Job Service
    • Aspera Web Services
    • Aspera Stats Collector
  3. Run the backup command.
    > cd C:\shares\www
    > bundle exec rake backup DIR=C:\backups
  4. Copy the files in C:\backups to the backup machine.
  5. Copy the following files to the backup machine:
    • C:\shares\nginx\conf\cert.pem
    • C:\shares\nginx\conf\cert.key
    • C:\shares\www\config\database.yml
  6. Restart Shares services.
    Click Start > Control Panel > Administrative Tools > Services and start the following services:
    • Aspera Nginx Service
    • Aspera Delayed Job Service
    • Aspera Web Services
    • Aspera Stats Collector
For instructions on how to restore a backup of Shares, see Restoring Shares from a Backup.