...
- Log in to the server from which you want to take backup.
Open context.xml file from $TOMCAT_HOME/conf/context.xml to get a Username and Password of that database.
Code Block language xml title Username and Password from the context.xml file <Resource name="jdbc/openspecimen" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="root" password="<password>" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/<database name>" validationInterval="3600" testOnBorrow="true" validationQuery="Select 1 from dual" />
- Access the database using mysql -u<username> -p command
Take the backup of the database using db_export_script.sh script. (Fill the appropriate values in the script for DB name, user, root password, hostname etc..)
- Take the backup of the data folder of OpenSpecimen.
...