Blesta Source Documentation

Backup extends AppModel

Backup

Creates and delivery backups of the database.

Table of Contents

Methods

__construct() Initialize Backup
download() Creates a backup and forces a download of it
frequencies() Returns an array of frequencies that may be set for backup scheduling
sendBackup() Creates and sends a backup to the SFTP and/or AmazonS3 account configured for this system
buildDump() Builds a dump of the database, returns the path to the file
getRules() Returns all rules set for building database dumps
Methods

__construct()

Initialize Backup

public __construct() : mixed

download()

Creates a backup and forces a download of it

public download() : mixed

frequencies()

Returns an array of frequencies that may be set for backup scheduling

public frequencies() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of key/value pairs where each key is a number of hours and each value is a string representing that number of hours.

sendBackup()

Creates and sends a backup to the SFTP and/or AmazonS3 account configured for this system

public sendBackup([string $type = 'all' ]) : mixed
Parameters
$type : string = 'all'

The type of backup to send (i.e. "ftp", "amazons3", "all") (optional, default "all")

buildDump()

Builds a dump of the database, returns the path to the file

private buildDump() : string
Return values
string

The full path to the database dump

getRules()

Returns all rules set for building database dumps

private getRules() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of rules to check

Tags
subpackage

app.models

copyright

Copyright (c) 2010, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results