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.

##OO#U##P#DF#m#m#z##r#MU#S##A#AOkyi/mCETESTLCdSsCpUgDoOKPMRMcSOADriQqopoe-nmAUyNyaWmBEerLlm-llrfe_TSAStOeARadpqbefikD_QMQRkS_t-buraitgaIDLEL/DaEIepame$dne$uRI=h=_DcpsO/OrSNRurpo<SN=o"ksUtgoUaANsoampA<u$u-ToduTtiMAeoseadMGtOpuOPrtPinEMrts/saEopUmUGipUos=Enwbst=ouT$eTovuTnth=aoiwa<gtPUk_oet_at`mrtobdlUSaDgDvlddednraaefTE-IlufIaloa.adst_o_RrRepoRlactm>eaDlDNeNllNutseCibrdIAlADodAeia/naieRMaMraeMso+nbasvrNEtEidrEn%imeeAe/vybte__(M-d$ed-en.nffEpO-i%aaoo"$fMrrmcmEmllPoEee-hixeddAlKcc%e_a>eeSdAutdcamrrSe_ro`kpp_WrDsreplInOsIiydleDaRRvi:>mDNewceAiao$MttmbDE-hieaApoksT-atnaeArrh_sdBeepA$naoSOtfsnEMos_E$lwdNKFloaAAOortM_LwdeEDDi)IEn>RRgN_$AIcOMDoUEmT$mPOaUUnTTd_P:DUITR_NDAIMREN/AdMuEmp.sql

After creating the above file, execute the following command.

bCUUirpptellnaooataamiddinii@gnniggpd-i221r227e--2c00-t552o--6r11-y221//-2hd22tu1-dm00op:5c.~-ss$1.q2zlsihpbackup.sh

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.

bitnami@ip-172-26-1-210:~$crontab-e

Add the following. The example below runs at 0:00 every day.

00sh/home/bitnami/backup.sh

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.