mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
container id fix
This commit is contained in:
+1
-1
@@ -779,7 +779,7 @@ services:
|
||||
- redis
|
||||
environment:
|
||||
- _APP_CONNECTIONS_DB_REPLICAS
|
||||
- _APP_CONNECTIONS_BACKUPS_STORAGE
|
||||
- _APP_CONNECTIONS_BACKUPS_STORAGE=dospaces://DO00ZZLVBLWLP6JJJVM2:aaEZ+eu8k80raNoDPlcwX8fwzSr3CzL5P+4UiwMnugw@default/cloud-fra1-stg-backups-1?region=fra1
|
||||
|
||||
appwrite-restore:
|
||||
command: sleep infinity
|
||||
|
||||
@@ -87,8 +87,7 @@ class Backup extends Action
|
||||
sleep($sleep);
|
||||
}
|
||||
} while ($attempts < $max);
|
||||
|
||||
$containerId = shell_exec('docker ps -aqf "name=xtrabackup"');
|
||||
$containerId = shell_exec('docker ps -aqf "name=xtrabackup" --format "{{.ID}}"');
|
||||
$containerId = str_replace(PHP_EOL, '', $containerId);
|
||||
if (empty($containerId)) {
|
||||
Console::error('Xtrabackup Container ID not found');
|
||||
|
||||
Reference in New Issue
Block a user