Restoring Aspera Shares from a Backup

Note: To perform a backup see Backing Up Aspera Shares and the Database.
  1. Ensure that your Aspera Shares™ backup is available.

    Verify that you have copied the Aspera Shares backup files to your new machine. See Backing Up Aspera Shares and the Database.

  2. Stop Aspera Shares services.

    Stop the following services:

    • Aspera Nginx Service
    • Aspera Delayed Job Service
    • Aspera Web Services
    • Aspera Stats Collector

    You can stop these services from the Computer Management window, accessible from Manage > Services and Applications > Services:

  3. Update database.yml, cert.pem, and cert.key
    Replace following files with the versions you backed up manually during the backup:
    C:\shares\www\config\database.yml
    C:\shares\nginx\conf\cert.pem
    C:\shares\nginx\conf\cert.key 
  4. Run the restore command.

    To restore Aspera Shares, run the following command in a command prompt, where in this example, E:\aspera-shares-restore is the directory where the backup files are stored on the new server.

    > cd C:\shares\www
    > bundle exec rake restore DIR=E:\aspera-shares-restore
    > bundle exec rake db:migrate  
    > bundle exec rake init  
    > bundle exec rake aspera:stats_collector:add_all_nodes  
  5. Start Aspera Shares services.

    Restart the following services:

    • Aspera Nginx Service
    • Aspera Delayed Job Service
    • Aspera Web Services
    • Aspera Stats Collector

    You can start these services from the Computer Management window.