4 Commits
3 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -375,8 +375,6 @@ def main():
snapshots = zsnaplib.get_snapshots(local_zfs_cmd)
failed_send = send_snapshots(fslist, snapshots, config)
if failed_send:
ret = RET_CODES['ERROR']
failed_snapshots.update(failed_send)
for remote in remotes.keys():
failed_send = send_snapshots(
@@ -397,6 +395,7 @@ def main():
failed_snapshots)
os.remove(lockfile)
return ret
if __name__ == '__main__':
log = logging.getLogger(LOGGER)
@@ -409,7 +408,7 @@ if __name__ == '__main__':
for logsocket in ('/var/run/log', '/dev/log'):
try:
mode = os.stat(logsocket).st_mode
except FileNotFoundError:
except (PermissionError, FileNotFoundError):
continue
if stat.S_ISSOCK(mode):
+1 -1
View File
@@ -6,7 +6,7 @@ try:
except ImportError:
from distutils import setup
version = '0.3.4'
version = '0.3.7'
setup(
name='zsnapper',
+1 -1
View File
@@ -93,7 +93,7 @@ def get_snapshots(zfs_cmd):
snapshots = {}
for row in out.splitlines():
row = row.decode('UTF-8').split()[0]
row = row.decode('UTF-8').split('\t')[0]
res = re_snapshot.match(row)
if res:
d = datetime.datetime.strptime(res.group(2), time_format)