Ignore PermissionError when creating symlink
This commit is contained in:
parent
53b4fb69b3
commit
5dd315a447
@ -155,12 +155,13 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
snapshot_symlink.unlink()
|
snapshot_symlink.unlink()
|
||||||
snapshot_symlink.symlink_to(curr_snapshot, target_is_directory=True)
|
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
except PermissionError as e:
|
except PermissionError as e:
|
||||||
syslog.error(e)
|
syslog.error(e)
|
||||||
|
|
||||||
|
snapshot_symlink.symlink_to(curr_snapshot, target_is_directory=True)
|
||||||
|
|
||||||
if args.run_post_sync:
|
if args.run_post_sync:
|
||||||
syslog.info("Running sync operation")
|
syslog.info("Running sync operation")
|
||||||
os.sync()
|
os.sync()
|
||||||
|
2
setup.py
2
setup.py
@ -11,7 +11,7 @@ with open("README", "r") as fh:
|
|||||||
# ========== Package Setup ==========
|
# ========== Package Setup ==========
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="rbackup",
|
name="rbackup",
|
||||||
version="0.3",
|
version="0.3.1",
|
||||||
author="Eric Torres",
|
author="Eric Torres",
|
||||||
author_email="erictorres4@protonmail.com",
|
author_email="erictorres4@protonmail.com",
|
||||||
description="An rsync-based tool for creating backups",
|
description="An rsync-based tool for creating backups",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user