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.
Run the following script as a root user.
The script stops Shares services, backs up all necessary files, and restarts
Shares.
Note:
The rake task runs as an unprivileged user. Ensure ensure the destination
directory is writable by all users. Aspera recommends using
/tmp.
For example:
# /opt/aspera/shares/u/setup/bin/backup /tmp
Creating backup directory /tmp/20130627025459 ...
Checking status of aspera-shares ...
Status is running
mysqld is alive
Backing up the Shares database and config files ...
Backing up the SSL certificates ...
Done
Make a note of the ID of the created backup directory for future use. In the
above example: 20130627025459.