aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2014-06-10 16:52:37 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2014-06-10 16:52:37 +0200
commit8b85ee500c4a2095df42abab641863d93d36797c (patch)
tree2f9cf58e92cc3362af5a9226a6f77ba0582ab93b
parentdf7f4aad9455abb71b777780fdb24802eb54b6e1 (diff)
downloadzfs-backup-8b85ee500c4a2095df42abab641863d93d36797c.tar.gz
zfs-backup-8b85ee500c4a2095df42abab641863d93d36797c.tar.bz2
source user profile to get full PATH etc.
-rwxr-xr-xzb-cleanup2
-rwxr-xr-xzb-pull2
-rwxr-xr-xzb-snap2
3 files changed, 6 insertions, 0 deletions
diff --git a/zb-cleanup b/zb-cleanup
index 9761ebf..1c4a97c 100755
--- a/zb-cleanup
+++ b/zb-cleanup
@@ -1,5 +1,7 @@
#!/bin/bash
+source /etc/profile >&/dev/null
+
if [[ -z "$1" || -z "$2" ]] ; then
echo "usage: $0 <zfs_object> <density_percent> [max_age]" >&2
exit 1
diff --git a/zb-pull b/zb-pull
index 0dabade..2aaeac8 100755
--- a/zb-pull
+++ b/zb-pull
@@ -1,5 +1,7 @@
#!/bin/sh
+source /etc/profile >&/dev/null
+
if [[ -z "$1" || -z "$2" || -z "$3" ]] ; then
echo "usage: $0 <ssh_remote> <remote_zfs_object> <local_zfs_object>" >&2
exit 1
diff --git a/zb-snap b/zb-snap
index bd94e5d..18ef74b 100755
--- a/zb-snap
+++ b/zb-snap
@@ -1,5 +1,7 @@
#!/bin/sh
+source /etc/profile >&/dev/null
+
if [ -z "$1" ] ; then
echo "usage: $0 <zfs_object>" >&2
exit 1