From 1df51bd2c3a3ee53834c89a074e56c361b051460 Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Wed, 11 May 2016 08:28:06 +0100 Subject: Prevent accumulator from being set to Nil --- bin/byteback-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/byteback-receive b/bin/byteback-receive index 0d7d025..1326bba 100755 --- a/bin/byteback-receive +++ b/bin/byteback-receive @@ -116,7 +116,7 @@ end # Make sure we don't get crazy option combinations. # n_modes = opts.keys.inject(0) do |s,m| - s += 1 if [:ping, :complete, :list].include?(m) + [:ping, :complete, :list].include?(m) ? s += 1 : s end error('Please only choose one mode') unless n_modes == 1 -- cgit v1.2.3 From d7e7be0de90d0a028be00a05de25048f379a1b1b Mon Sep 17 00:00:00 2001 From: James Carter Date: Wed, 27 Jul 2016 10:01:50 +0100 Subject: fixed a typo --- bin/byteback-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 bin/byteback-backup (limited to 'bin') diff --git a/bin/byteback-backup b/bin/byteback-backup old mode 100755 new mode 100644 index 0a50909..3e0d5af --- a/bin/byteback-backup +++ b/bin/byteback-backup @@ -253,7 +253,7 @@ if __FILE__ == $PROGRAM_NAME e.gsub(/\/+/, '/') end - fatal('Must suply --destination or put it into /etc/bytebackup/destination') unless @destination + fatal('Must supply --destination or put it into /etc/bytebackup/destination') unless @destination # # Test that we have an SSH-key which we can read. -- cgit v1.2.3 From e0ec7c2ff72ba158bf088af65cad6f6bad61f2c3 Mon Sep 17 00:00:00 2001 From: James Lawrie Date: Wed, 27 Jul 2016 12:48:03 +0100 Subject: Fixes the essence of #2 --- bin/byteback-backup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/byteback-backup b/bin/byteback-backup index 3e0d5af..0b81e79 100644 --- a/bin/byteback-backup +++ b/bin/byteback-backup @@ -230,11 +230,11 @@ if __FILE__ == $PROGRAM_NAME COMMON_JUNK = %w( /swap.file - /tmp - /var/backups/localhost - /var/cache/apt/archives - /var/lib/php5 - /var/tmp + /tmp/ + /var/backups/localhost/ + /var/cache/apt/archives/ + /var/lib/php5/ + /var/tmp/ ) MOUNT_HEADINGS = %w( spec file vfstype mntops freq passno ).map(&:to_sym) -- cgit v1.2.3 From 2e96f802b1aa2cd374ef727c5573b30ab38001ce Mon Sep 17 00:00:00 2001 From: James Lawrie Date: Wed, 27 Jul 2016 12:48:50 +0100 Subject: Exclude /var/lib/mysql/ --- bin/byteback-backup | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/byteback-backup b/bin/byteback-backup index 0b81e79..8268353 100644 --- a/bin/byteback-backup +++ b/bin/byteback-backup @@ -235,6 +235,7 @@ if __FILE__ == $PROGRAM_NAME /var/cache/apt/archives/ /var/lib/php5/ /var/tmp/ + /var/lib/mysql/ ) MOUNT_HEADINGS = %w( spec file vfstype mntops freq passno ).map(&:to_sym) -- cgit v1.2.3