Minor fixes to file paths and log messages
This commit is contained in:
parent
cebb418be5
commit
88e5aa56d4
@ -51,7 +51,7 @@ EXTRA_RSYNC_OPTS = {
|
|||||||
# ----- File Options -----
|
# ----- File Options -----
|
||||||
CONFIG_DIR = "/etc/rbackup"
|
CONFIG_DIR = "/etc/rbackup"
|
||||||
FILE_OPTS = [f"--exclude-from={CONFIG_DIR}/home-exclude.conf"]
|
FILE_OPTS = [f"--exclude-from={CONFIG_DIR}/home-exclude.conf"]
|
||||||
INCLUDE_PATHS = [f"{CONFIG_DIR}/etc-include.conf", "{CONFIG_DIR}/system-include.conf"]
|
INCLUDE_PATHS = [f"{CONFIG_DIR}/etc-include.conf", f"{CONFIG_DIR}/system-include.conf"]
|
||||||
COMMENT_REGEX = r"^[^#; ]+"
|
COMMENT_REGEX = r"^[^#; ]+"
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ def merge_files(*config_files):
|
|||||||
l for l in opened_file.readlines() if re.match(COMMENT_REGEX, l)
|
l for l in opened_file.readlines() if re.match(COMMENT_REGEX, l)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
syslog.warning(f"{config_file} does not exist, ignoring")
|
syslog.warning(f"{config_file} does not exist, ignoring.")
|
||||||
|
|
||||||
include_lines.sort()
|
include_lines.sort()
|
||||||
|
|
||||||
|
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.2.1",
|
version="0.2.2",
|
||||||
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