File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
# Software Foundation; either version 2 of the License, or (at your option)
6
6
# any later version.
7
7
8
- __version__ = '0.6.8 '
8
+ __version__ = '0.6.9 '
9
9
__author__ = 'Marco Schindler'
10
10
11
11
__maintainer__ = '[email protected] '
Original file line number Diff line number Diff line change @@ -966,6 +966,9 @@ def run(self):
966
966
# btrfs send command/subprocess
967
967
source_parent_path = None
968
968
if len (self .source .snapshots ) > 0 :
969
+ # Indicates if an incremental snapshot can/should be performed
970
+ incremental = False
971
+
969
972
# Latest source and destination snapshot timestamp has to match for incremental transfer
970
973
if self .destination is not None :
971
974
if len (self .destination .snapshots ) > 0 :
@@ -974,10 +977,16 @@ def run(self):
974
977
('Latest timestamps of source [%s] and destination [%s] do not match. A full snapshot will '
975
978
'be transferred' )
976
979
% (self .source .snapshots [0 ].name .timestamp , self .destination .snapshots [0 ].name .timestamp ))
980
+ else :
981
+ incremental = True
977
982
else :
978
983
_logger .warn ('Destination has no snapshots, a full snapshot will be transferred' )
979
984
980
985
else :
986
+ incremental = True
987
+
988
+ # Set source parent path in case incremental transfer is applicable
989
+ if incremental :
981
990
source_parent_path = os .path .join (self .source .container_subvolume_path ,
982
991
str (self .source .snapshots [0 ].name ))
983
992
You can’t perform that action at this time.
0 commit comments