Skip to content

Commit

Permalink
bug hunting
Browse files Browse the repository at this point in the history
  • Loading branch information
ndenny committed Oct 3, 2024
1 parent 5328fed commit 79e8133
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/Bastion/Vaults/BFD.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,29 +138,32 @@ def push(self, asset, basis = None, **kwargs):
"""
detail = 'F'
whence = None
genus = None
basis = None
blonded = None
tarp = None
ark = asset.ARK
opts = { }

if anchor:
if basis:
detail = 'D'
if isinstance(basis, BLONDE):
whence = basis.when.earliest
genus = basis.genus
#-- I was given a BLONDE (a reference to a full backup)
anchor = basis
whence = anchor.when.earliest
genus = anchor.genus
blonded = BLONDE.forDiffBackup(anchor)

if isinstance(basis, datetime.datetime):
whence = basis
genus = "___"
blonded = BLONDE(asset.ARK, detail, genus)
blonded = BLONDE(asset.ARK, detail, genus)

tarp = "{}.tar".format(str(blonded))
opts['since'] = whence

else:
blonded = BLONDE(asset.ARK, detail, branch)
tarp = "{}.tar".format(str(blonded))
blonded = BLONDE.forFullBackup(asset.ARK)

tarp = "{}.tar".format(str(blonded))

#-- assure that the scratch and bank paths exist.
(self.scratch / ark.site / ark.zone / ark.asset).mkdir(parents = True, exist_ok = True)
Expand Down

0 comments on commit 79e8133

Please sign in to comment.