summaryrefslogtreecommitdiff
path: root/rybackup.py
diff options
context:
space:
mode:
Diffstat (limited to 'rybackup.py')
-rwxr-xr-xrybackup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rybackup.py b/rybackup.py
index 47dbb2f..450689b 100755
--- a/rybackup.py
+++ b/rybackup.py
@@ -115,7 +115,7 @@ def sync(arg):
if not path.isdir("%s/%s.1/%s" % (bak['dst'], arg, i[1:])):
makedirs("%s/%s.1/%s" % (bak['dst'], arg, i[1:]))
- # Mirror directories with rsync (auto. unlinks files that changed)
+ # Mirror directories with rsync and unlink files that changed
call("%s %s %s %s/%s.1/%s" % (bin['rsync'], " ".join(rsyncopt),
i, bak['dst'], arg, i[1:]), shell=True)
@@ -125,9 +125,9 @@ def sync(arg):
# Managing mount points
-def mount(action):
+def mount(action, arg=""):
if action == "mount":
- if bak['efs']:
+ if bak['efs'] and arg == "hourly":
# Exit with EAGAIN if eCryptfs is mounted
if call("%s -qs ecryptfs %s"
% (bin['grep'], files['mounts']), shell=True) == 0:
@@ -156,7 +156,7 @@ def main():
raise SystemExit("Error: super user privileges required")
try:
if argv[1] in count:
- mount("mount")
+ mount("mount", argv[1])
rotate(argv[1])
if argv[1] == "hourly":
sync(argv[1])