summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--[-rwxr-xr-x]bin/byteback-backup13
-rwxr-xr-xbin/byteback-receive2
2 files changed, 8 insertions, 7 deletions
diff --git a/bin/byteback-backup b/bin/byteback-backup
index 0a50909..8268353 100755..100644
--- a/bin/byteback-backup
+++ b/bin/byteback-backup
@@ -230,11 +230,12 @@ 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/
+ /var/lib/mysql/
)
MOUNT_HEADINGS = %w( spec file vfstype mntops freq passno ).map(&:to_sym)
@@ -253,7 +254,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.
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