orderly_backup_ | R Documentation |
Object for managing backing up orderly db
Object for managing backing up orderly db
config
Orderly config
backup_period
How frequently should backup be run
last_backup
Date-time when last backup was run
new()
Create object, and do first backup.
orderly_backup_$new(config, backup_period)
config
Orderly config.
backup_period
Period (in seconds) between DB backups. This
is a guide only as backups happen on a API preroute - if more than
this many seconds have elapsed when the API receives a request then
a backup of the db will be performed. This creates a copy of
orderly's destination database inbackup/db
with the same
filename as the destination database, even if that database typically
lives outside of the orderly tree. In case of corruption of the
database, this backup can be manually moved into place. This is only
needed if you are storing information alongside the core orderly
tables (as done by OrderlyWeb). If NULL then backup is skipped.
check_backup()
Check if a backup is due to be run, and run it if it is due.
orderly_backup_$check_backup()
do_backup()
Backup the orderly database.
orderly_backup_$do_backup()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.