diff --git a/src/DbBackupCommand.php b/src/DbBackupCommand.php index ce5708b..e044d15 100644 --- a/src/DbBackupCommand.php +++ b/src/DbBackupCommand.php @@ -1,5 +1,6 @@ validateArguments(); } + $destinations = [ + new Destination( + $this->option('destination'), + $this->option('destinationPath') + ) + ]; + $this->info('Dumping database and uploading...'); $this->backupProcedure->run( $this->option('database'), - $this->option('destination'), - $this->option('destinationPath'), + $destinations, $this->option('compression') );