Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
rdiff-manager
Commits
7eb7d806
Commit
7eb7d806
authored
Jan 09, 2012
by
David Adam
Browse files
fix output times
parent
071d98cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
rdiff-manager.py
View file @
7eb7d806
...
...
@@ -10,6 +10,7 @@ concurrent_num = 0
duration_to_keep
=
'4W'
from
multiprocessing
import
Pool
import
time
from
time
import
strftime
import
subprocess
,
os
,
glob
...
...
@@ -66,6 +67,9 @@ def rdiff_backup(config):
return
target
.
run_all
()
if
__name__
==
'__main__'
:
starttime
=
time
.
localtime
()
config_files
=
glob
.
iglob
(
configs_path
+
'/*.conf'
)
filenames
=
(
os
.
path
.
basename
(
x
)
for
x
in
config_files
)
hostnames
=
(
x
.
replace
(
'.conf'
,
''
)
for
x
in
filenames
)
...
...
@@ -92,7 +96,7 @@ if __name__ == '__main__':
divider
=
'-'
*
76
# Header
print
(
divider
)
print
(
'RDIFF-MANAGER REPORT for run started'
,
strftime
(
'%c'
))
print
(
'RDIFF-MANAGER REPORT for run started'
,
strftime
(
'%c'
,
starttime
))
print
(
divider
)
# Summary
...
...
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