Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
fa0dd684
Commit
fa0dd684
authored
Jul 27, 2015
by
Leo Koppelkamm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add archive-dir argument to collection-status
parent
43fb7fe6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
backup.py
management/backup.py
+6
-5
No files found.
management/backup.py
View file @
fa0dd684
...
...
@@ -32,6 +32,10 @@ def backup_status(env):
config
=
get_backup_config
()
now
=
datetime
.
datetime
.
now
(
dateutil
.
tz
.
tzlocal
())
backups
=
{
}
backup_dir
=
os
.
path
.
join
(
backup_root
,
'encrypted'
)
backup_cache_dir
=
os
.
path
.
join
(
backup_root
,
'cache'
)
def
reldate
(
date
,
ref
,
clip
):
if
ref
<
date
:
return
clip
rd
=
dateutil
.
relativedelta
.
relativedelta
(
ref
,
date
)
...
...
@@ -57,16 +61,13 @@ def backup_status(env):
shell
(
'check_call'
,
[
"/usr/bin/duplicity"
,
"collection-status"
,
"--archive-dir"
,
backup_cache_dir
,
"--log-file"
,
os
.
path
.
join
(
backup_root
,
"duplicity_status"
),
"--gpg-options"
,
"--cipher-algo=AES256"
,
config
[
"target"
],
],
get_env
())
backups
=
{
}
backup_dir
=
os
.
path
.
join
(
backup_root
,
'encrypted'
)
# Parse backup data from status file
with
open
(
os
.
path
.
join
(
backup_root
,
"duplicity_status"
),
'r'
)
as
status_file
:
for
line
in
status_file
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment