From 21bc391fd5f8100a0ff0a617cfdb5b0a5827bf3d Mon Sep 17 00:00:00 2001 From: Matt Grubb Date: Sat, 30 May 2020 10:21:39 -0400 Subject: [PATCH] Remove debug code, add comments to backup --- src/FilerDB/Core/Utilities/Backup.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/FilerDB/Core/Utilities/Backup.php b/src/FilerDB/Core/Utilities/Backup.php index cc90c9c..41bfaa2 100644 --- a/src/FilerDB/Core/Utilities/Backup.php +++ b/src/FilerDB/Core/Utilities/Backup.php @@ -25,12 +25,15 @@ public function __construct ($config = null) { $this->config = $config; } + /** + * Makes use of PhpZip to create a zipped backup file + * of the database path. + * @param string $output + * @return boolean|exception + */ public function create ($output = './backup.zip') { $zipFile = new ZipFile(); - var_dump($this->config->DATABASE_PATH); - var_dump($output); - try { $zipFile