mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-05-30 01:19:16 +03:00
conflicting name
This commit is contained in:
parent
e74e50d4e8
commit
e872d79677
@ -488,13 +488,13 @@ def zfs_autobackup():
|
|||||||
|
|
||||||
if latest_target_snapshot not in source_snapshots[source_filesystem]:
|
if latest_target_snapshot not in source_snapshots[source_filesystem]:
|
||||||
#cant find latest target anymore. find first common snapshot and inform user
|
#cant find latest target anymore. find first common snapshot and inform user
|
||||||
error="Cant find latest target snapshot on source, did you destroy it accidently? "+source_filesystem+"@"+latest_target_snapshot
|
error_msg="Cant find latest target snapshot on source, did you destroy it accidently? "+source_filesystem+"@"+latest_target_snapshot
|
||||||
for latest_target_snapshot in reversed(target_snapshots[target_filesystem]):
|
for latest_target_snapshot in reversed(target_snapshots[target_filesystem]):
|
||||||
if latest_target_snapshot in source_snapshots[source_filesystem]:
|
if latest_target_snapshot in source_snapshots[source_filesystem]:
|
||||||
error=error+"\nYou could solve this by rolling back to: "+target_filesystem+"@"+latest_target_snapshot;
|
error_msg=error_msg+"\nYou could solve this by rolling back to: "+target_filesystem+"@"+latest_target_snapshot;
|
||||||
break
|
break
|
||||||
|
|
||||||
raise(Exception(error))
|
raise(Exception(error_msg))
|
||||||
|
|
||||||
#send all new source snapshots that come AFTER the last target snapshot
|
#send all new source snapshots that come AFTER the last target snapshot
|
||||||
latest_source_index=source_snapshots[source_filesystem].index(latest_target_snapshot)
|
latest_source_index=source_snapshots[source_filesystem].index(latest_target_snapshot)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user