We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c775f41 + 03513fe commit d7e6d12Copy full SHA for d7e6d12
src/DbBackupCommand.php
@@ -1,5 +1,6 @@
1
<?php namespace BackupManager\Laravel;
2
3
+use BackupManager\Filesystems\Destination;
4
use Illuminate\Console\Command;
5
use Symfony\Component\Console\Input\InputOption;
6
use BackupManager\Databases\DatabaseProvider;
@@ -85,11 +86,17 @@ public function fire() {
85
86
$this->validateArguments();
87
}
88
89
+ $destinations = [
90
+ new Destination(
91
+ $this->option('destination'),
92
+ $this->option('destinationPath')
93
+ )
94
+ ];
95
+
96
$this->info('Dumping database and uploading...');
97
$this->backupProcedure->run(
98
$this->option('database'),
- $this->option('destination'),
- $this->option('destinationPath'),
99
+ $destinations,
100
$this->option('compression')
101
);
102
0 commit comments