Skip to content

Commit 5fcd5be

Browse files
committed
Implement new features to config and command
1 parent ba5bad2 commit 5fcd5be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

config/singlestore-backup.php

+2
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,6 @@
7676
'multipart_chunk_size' => (int) env('SINGLESTORE_BACKUP_MULTIPART_CHUNK_SIZE'),
7777

7878
'force_path_style' => (bool) env('SINGLESTORE_BACKUP_FORCE_PATH_STYLE'),
79+
80+
'compatibility_mode' => (bool) env('SINGLESTORE_BACKUP_COMPATIBILITY_MODE'),
7981
];

src/Console/SinglestoreBackupCommand.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class SinglestoreBackupCommand extends Command
1414
*
1515
* @var string
1616
*/
17-
protected $signature = 'singlestore:backup {--timeout=} {--init} {--differential}';
17+
protected $signature = 'singlestore:backup {--timeout=} {--init} {--differential} {--with-date} {--with-time}';
1818

1919
/**
2020
* The console command description.
@@ -52,7 +52,10 @@ public function handle()
5252
differential: $this->option('differential'),
5353
region: config('singlestore-backup.region'),
5454
multipartChunkSizeMb: config('singlestore-backup.multipart_chunk_size'),
55-
s3ForcePathStyle: config('singlestore-backup.force_path_style')
55+
s3ForcePathStyle: config('singlestore-backup.force_path_style'),
56+
compatibilityMode: config('singlestore-backup.compatibility_mode'),
57+
withDate: $this->option('with-date'),
58+
withTime: $this->option('with-time'),
5659
);
5760

5861
try {

0 commit comments

Comments
 (0)