summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbyteback-backup2
-rwxr-xr-xbyteback-snapshot2
-rw-r--r--debian/changelog12
3 files changed, 14 insertions, 2 deletions
diff --git a/byteback-backup b/byteback-backup
index 346dd5d..b5050bc 100755
--- a/byteback-backup
+++ b/byteback-backup
@@ -107,7 +107,7 @@ rescue => err
end
# Check the lockfile first
-if Dir.exists?(File.dirname(@lockfile))
+if File.directory?(File.dirname(@lockfile))
if File.exists? @lockfile
# check the lockfile is sane
exist_pid = File.read(@lockfile).to_i
diff --git a/byteback-snapshot b/byteback-snapshot
index 5a7b8e8..1960085 100755
--- a/byteback-snapshot
+++ b/byteback-snapshot
@@ -150,7 +150,7 @@ class BackupDirectory
protected
def system_no_error(*args)
- args += " > /dev/null" unless @verbose
+ args[-1] += " > /dev/null" unless @verbose
raise RuntimeError.new("Command failed: "+args.join(" ")) unless
system(*args)
end
diff --git a/debian/changelog b/debian/changelog
index 51bd8ed..28ab08e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+byteback (0.2.4-1) stable; urgency=medium
+
+ * Fixed a bug[?] with byteback-snapshot
+
+ -- James Hannah <james.hannah@bytemark.co.uk> Wed, 02 Jul 2014 10:58:22 +0100
+
+byteback (0.2.3-1) stable; urgency=medium
+
+ * Added lockfile to stop >1 backup running at once
+
+ -- James Hannah <james.hannah@bytemark.co.uk> Wed, 02 Jul 2014 10:19:11 +0100
+
byteback (0.2.2-1) stable; urgency=medium
* Updated byteback not to use --one-filesystem flag.