Skip to content

Commit d72e349

Browse files
authored
Add VSS fallback (#11)
* Add VSS fallback * Add changes to Changelog * Increment version
1 parent e4bf61a commit d72e349

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog for OnyxBackupVM
22
### VM Backup for XenServer/XCP-NG
33

4+
### v1.2.1 - ??
5+
#### Features and Enhancements
6+
- VSS snapshots should have fallback #10
7+
48
### v1.2.0 - 26 June 2018
59
#### Bugs
610
- Snapshot checking too eager #6

onyxbackup-vm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Cli(object):
3131
def __init__(self):
3232
self.logger = getLogger('onyxbackup')
3333
self.program_name = 'OnyxBackupVM'
34-
self.program_version = 'v1.2.0'
34+
self.program_version = 'v1.2.1'
3535
self.config = self._setup()
3636

3737
# API Functions

onyxbackup/service/service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,9 @@ def _snapshot(self, uuid, snapshot_type='vm', snap_name='ONYXBACKUP'):
830830

831831
snap_uuid = self._get_xe_cmd_result(cmd)
832832
if not snap_uuid:
833+
if snapshot_type == 'vm-vss':
834+
self._add_status('warning', '(!) VSS snapshot failed. Falling back to standard snapshot.')
835+
return self._snapshot(uuid)
833836
self._add_status('error', '(!) Failed to create a snapshot')
834837
return False
835838
return snap_uuid

0 commit comments

Comments
 (0)