1 | <?php |
||
12 | class CLI extends \WP_CLI_Command { |
||
13 | |||
14 | /** |
||
15 | * Perform a Backup. |
||
16 | * |
||
17 | * ## OPTIONS |
||
18 | * |
||
19 | * [--files_only] |
||
20 | * : Backup files only, default to off |
||
21 | * |
||
22 | * [--database_only] |
||
23 | * : Backup database only, defaults to off |
||
24 | * |
||
25 | * [--destination] |
||
26 | * : dir that the backup should be save in, defaults to your existing backups directory |
||
27 | * |
||
28 | * [--root] |
||
29 | * : dir that should be backed up, defaults to site root. |
||
30 | * |
||
31 | * [--archive_filename] |
||
32 | * : filename for the resulting zip file |
||
33 | * |
||
34 | * [--excludes] |
||
35 | * : list of paths you'd like to exclude |
||
36 | * |
||
37 | * ## Usage |
||
38 | * |
||
39 | * wp backupwordpress backup [--files_only] [--database_only] [--path<dir>] [--root<dir>] [--zip_command_path=<path>] [--mysqldump_command_path=<path>] |
||
40 | * |
||
41 | * @todo errors should be bubbled from Backup, Scheduled_Backup and the like instead of being repeated. |
||
42 | */ |
||
43 | public function backup( $args, $assoc_args ) { |
||
102 | |||
103 | } |
||
104 | |||
106 |