Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenNebula 3PAR Backup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
FeldHost Public Projects
OpenNebula 3PAR Backup
Commits
2ce2287e
Commit
2ce2287e
authored
Oct 23, 2019
by
Kristian Feldsam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed forgoten prints and added marks to verbose output
Signed-off-by:
Kristián Feldsam
<
feldsam@gmail.com
>
parent
2ff33949
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
backup.py
backup.py
+8
-3
No files found.
backup.py
View file @
2ce2287e
...
...
@@ -36,9 +36,6 @@ datastores = functions.prepare_datastores(one, args)
all_images
=
functions
.
prepare_images
(
one
,
args
)
images
=
functions
.
filter_images
(
all_images
,
datastores
,
args
)
print
datastores
print
images
# connect and login to 3PAR
from
drivers
import
_3par
_3par
.
login
()
...
...
@@ -51,6 +48,10 @@ for image_key in images:
if
datastore
.
TM_MAD
!=
'3par'
:
continue
# mark start of backup in verbose output
if
args
.
verbose
:
print
'#============================================================'
# set info abut backup start to image template
one
.
image
.
update
(
image
.
ID
,
'BACKUP_IN_PROGRESS=YES BACKUP_FINISHED_UNIX=--- BACKUP_FINISHED_HUMAN=--- BACKUP_STARTED_UNIX=%d BACKUP_STARTED_HUMAN="%s"'
%
(
int
(
time
.
time
()),
datetime
.
datetime
.
now
().
ctime
()),
1
)
...
...
@@ -131,5 +132,9 @@ for image_key in images:
# set info abut backup start to image template
one
.
image
.
update
(
image
.
ID
,
'BACKUP_IN_PROGRESS=NO BACKUP_FINISHED_UNIX=%d BACKUP_FINISHED_HUMAN="%s"'
%
(
int
(
time
.
time
()),
datetime
.
datetime
.
now
().
ctime
()),
1
)
# mark end of backup in verbose output
if
args
.
verbose
:
print
'#============================================================'
# disconnect form 3PAR
_3par
.
logout
()
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