Redis DB Backup/Restore

Follow these instructions to back up and restore the Redis database (and your user data up to the point-in-time of the backup operation). Note that the backup and restore operations should be used for the following scenarios:
  • If you need to change the Redis database port number (by changing the value for <db_port> in aspera.conf, as described in Configuring the Server for the Node API), back up the Redis database, change the port number, then restore the database.
  • Basic backup and restore (after a data-loss event).
  1. Back up the Redis database by running the following command:
    # sudo /opt/aspera/bin/asnodeadmin -b /filepath/database.backup
    Important: When backing up the Redis database, all user data up to that point in time will be saved to the backup file. Restoring the database (see Step 2, below) does not delete users added after this snapshot was taken. Thus, if you added any users after backing up the database, they will still exist in the system and will not be affected by the restore operation.
  2. Restore the Redis database by running the following command:
    # sudo /opt/aspera/bin/asnodeadmin -r /filepath/database.backup
    Note: If you do not want to keep users that have been added since the last backup operation, you can delete them after performing the restore with the following command:
    # sudo /opt/aspera/bin/asnodeadmin-du username
  3. Restart the asperanoded service using the following command.
    $ sudo /etc/init.d/asperanoded restart