mirror of
https://github.com/asabino2/dockerbackup.git
synced 2026-09-24 06:36:59 +00:00
adiciona modal para criação e edição de profiles; atualiza estilos e lógica de exibição
This commit is contained in:
@@ -510,6 +510,9 @@ class BackupService {
|
||||
pushLog(`Arquivo gerado via helper: ${absoluteArchivePath}`, 'finalizando');
|
||||
pushLog('Snapshot incremental salvo no diretorio de backup.', 'finalizando');
|
||||
|
||||
containerBackup.fileCount = Math.max(fileCurrent, fileTotal);
|
||||
try { containerBackup.archiveSize = (await fs.stat(absoluteArchivePath)).size; } catch {}
|
||||
|
||||
onProgress({
|
||||
containerName,
|
||||
status: 'ok',
|
||||
@@ -585,6 +588,9 @@ class BackupService {
|
||||
}
|
||||
}
|
||||
|
||||
containerBackup.fileCount = Math.max(fileCurrent, fileTotal);
|
||||
try { containerBackup.archiveSize = (await fs.stat(absoluteArchivePath)).size; } catch {}
|
||||
|
||||
onProgress({
|
||||
containerName,
|
||||
status: 'ok',
|
||||
@@ -655,6 +661,12 @@ class BackupService {
|
||||
await this.dockerService.startContainer(containerId).catch(() => null);
|
||||
}
|
||||
|
||||
containerBackup.fileCount = Math.max(fileCurrent, fileTotal);
|
||||
try {
|
||||
const hostArchivePath = path.join(profile.backupDir, ...archiveRelativePath.split('/'));
|
||||
containerBackup.archiveSize = (await fs.stat(hostArchivePath)).size;
|
||||
} catch {}
|
||||
|
||||
onProgress({
|
||||
containerName,
|
||||
status: 'ok',
|
||||
|
||||
Reference in New Issue
Block a user