From 5dd315a4473b677887552dd10f31840b9c871a82 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Fri, 12 Apr 2019 12:55:21 -0700 Subject: [PATCH] Ignore PermissionError when creating symlink --- bin/backup | 3 ++- setup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/backup b/bin/backup index a8df920..ff7dac4 100644 --- a/bin/backup +++ b/bin/backup @@ -155,12 +155,13 @@ if __name__ == "__main__": try: snapshot_symlink.unlink() - snapshot_symlink.symlink_to(curr_snapshot, target_is_directory=True) except FileNotFoundError: pass except PermissionError as e: syslog.error(e) + snapshot_symlink.symlink_to(curr_snapshot, target_is_directory=True) + if args.run_post_sync: syslog.info("Running sync operation") os.sync() diff --git a/setup.py b/setup.py index ed94ea3..a4be8b2 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ with open("README", "r") as fh: # ========== Package Setup ========== setuptools.setup( name="rbackup", - version="0.3", + version="0.3.1", author="Eric Torres", author_email="erictorres4@protonmail.com", description="An rsync-based tool for creating backups",