|
|
|
@ -5,7 +5,7 @@ from logging import getLogger, basicConfig, DEBUG, INFO, WARN, ERROR, CRITICAL |
|
|
|
|
from subprocess import CompletedProcess, run, PIPE, CalledProcessError |
|
|
|
|
from json import loads |
|
|
|
|
from tempfile import NamedTemporaryFile, _TemporaryFileWrapper |
|
|
|
|
from os import environ, access, X_OK |
|
|
|
|
from os import environ, access, X_OK, unlink |
|
|
|
|
from argparse import ArgumentParser, BooleanOptionalAction, ArgumentTypeError |
|
|
|
|
from pathlib import Path |
|
|
|
|
from typing import Optional, Any, Dict |
|
|
|
@ -369,6 +369,7 @@ class NextcloudBackup: |
|
|
|
|
|
|
|
|
|
dump_file = self.dump_db() |
|
|
|
|
self.copy_db(dump_file.name) |
|
|
|
|
unlink(dump_file.name) |
|
|
|
|
|
|
|
|
|
self.copy_s3(rclone_remote_control) |
|
|
|
|
|
|
|
|
|