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:
  1. Back up the Redis database by running the following command:
    $ sudo /opt/aspera/bin/asnodeadmin -b /your/backup/dir/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 /your/backup/dir/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 asnodeadmin command:
    -duusername
  3. Restart the asperanoded service using the following command.
    $ sudo /etc/init.d/asperanoded restart