You will need to have 7zip installed for this method to work.
You may download the files reference in this article here
Dear All,
I would like to share my OC daily backup script and OC daily archive backup script to the community, both of them should works with both OC 3.0.x and OC 3.1.x (please note that both of scripts are for OC installed on Windows only).
Please see the description of individual script file below:
1. OC_Daily_Backup.txt (please rename its extension to .cmd after copied to OC server)
Description:
– Configurable OC backup related parameters
– Expect to scheduled execute on daily basis
– Steps are VACUUM DB (db maintenance), OC DB backup, OC configuration file backup, and OC data directory backup
– After successfully executed, it will create single zip file with the following name format OC_Daily_[Year]-[Month]-[Date]-[Date Init]–[Hour]-[Min].zip
(i.e. OC_Daily_2012-02-29-Wed–001-49.zip) in configured OC backup path
– The script also perform zip self test and generate test results file with the following name format OC_Daily_[Year]-[Month]-[Date]-[Date Init]–[Hour]-[Min]_Zip_Status.txt
(i.e. OC_Daily_2012-02-29-Wed–001-49_Zip_Status.txt) in configured OC backup path, sample of file is in attached.
2. OC_Daily_Backup_Archive.txt (please rename its extension to .cmd after copied to OC server)
Description:
– Configurable OC backup archive related parameters
– Expect to scheduled execute on periodically basis (every xx days)
– Steps are added all existing OC daily backup zip files and OC daily backup zip status files into single archive file with the following name format OC_Archive_[Year]-[Month]-[Date]- –[Hour]-[Min].zip
(i.e. OC_Archive_2012-02-29–01-48.zip) in configured OC backup archive path
– After successfully executed, it will delete all existing daily backup zip file(s) and zip status file(s)
– The script also perform zip self test and generate test results file with the following name format OC_Archive_[Year]-[Month]-[Date]- –[Hour]-[Min]_Zip_Status.txt
(i.e. OC_Archive_2012-02-29–01-48_Zip_Status.txt) in configured OC backup archive path, sample of file is in attached.
Please feel free to edit/modify them according to your environment or your need, any comment/feedback are welcome J
Hope it helps & cheers,
Montri