BackupUtils
in package
A utility class for carrying out various backup tasks.
Tags
Table of Contents
Methods
- backupAttachmentsAndLogs() : void
- Backs up the attachments and logs directories to the destination backup directory.
- backupDatabase() : void
- Uses the mysqldump command line program to back-up the system database into an .sql file in the supplied target directory.
Methods
backupAttachmentsAndLogs()
Backs up the attachments and logs directories to the destination backup directory.
public
static backupAttachmentsAndLogs(string $backupDir) : void
Parameters
- $backupDir : string
Tags
backupDatabase()
Uses the mysqldump command line program to back-up the system database into an .sql file in the supplied target directory.
public
static backupDatabase(string $backupDir) : void
Parameters
- $backupDir : string
-
The directory where we will write the .sql back-up file