Compare commits
2 commits
a07759a11d
...
fac66d905e
| Author | SHA1 | Date | |
|---|---|---|---|
| fac66d905e | |||
| 46c3ebf579 |
2 changed files with 5 additions and 2 deletions
|
|
@ -80,7 +80,10 @@ class BackupManager:
|
|||
|
||||
def main():
|
||||
config = read_config()
|
||||
os.chdir(config["BACKUP_DOCKER_DIR"])
|
||||
try:
|
||||
os.chdir(config["common"]["BACKUP_DOCKER_DIR"])
|
||||
except KeyError:
|
||||
pass
|
||||
backup_manager = BackupManager()
|
||||
if not backup_manager.export_data():
|
||||
exit(1)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"BACKUP_DIRS": ["list of directories to backup"],
|
||||
"EXCLUDE_DIRS": ["list of directories to exclude"],
|
||||
"TIME_FORMAT": "utcnow:%Y-%m-%d_%H:%M:%S",
|
||||
"REPO_SUBDIR": "paperless-ngx"
|
||||
"REPO_SUBDIR": "paperless-ngx"
|
||||
},
|
||||
"remotes": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue