Overview
This is a memo on how to perform simple backups of Omeka S using gdrive.
As an example, we target Omeka S installed on a LAMP environment launched on Amazon Lightsail. Please refer to the following for installation instructions.
Installing gdrive
This time, we will back up files to Google Drive. For this purpose, we use gdrive. Please install gdrive by referring to the following article.
Prepare a Backup Script
In the $HOME directory, create a file such as backup.sh. An example of the file contents is as follows.
After creating the above file, execute the following command.
As a result, a folder based on the date is created, and the zip file and SQL file are saved within it.

Setting Up cron
Set up the above backup.sh script to run periodically. Execute the following.
Add the following. The example below runs at 0:00 every day.
With the above, periodic backups using Google Drive become possible.
Summary
The contents of backup.sh shown here may need to be modified depending on your environment, but we hope this serves as a useful reference for simple backup methods of Omeka S using Google Drive.