-
Notifications
You must be signed in to change notification settings - Fork 6
/
zelta.env
66 lines (56 loc) · 2.29 KB
/
zelta.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
#
# zelta.env
#
# These environment variables change zelta's default behavior and
# locations. To function, the PATH must contains the dir with the
# "zelta" wrapper, and the ZELTA_SHARE dir must contain the awk scripts.
#
# Note that this file should only to be used to change the defaults
# globally. Consider changing these values in your crontab, shell, or
# other contexts instead. For example, you might want a progress viewer
# by default in your shell and a bandwidth limiter in a crontab.
# # "zelta" shell wrapper defaults:
# ZELTA_SHARE="/usr/local/share/zelta"
# ZELTA_ETC="/usr/local/etc/zelta"
# ZELTA_CONFIG="$ZELTA_ETC/zelta.conf
# # Change the awk below. For mawk, you may want 'mawk -Winteractive' for
# # realtime output during multithreaded operations.
# AWK="`which awk`"
# # If you'd like to override this file's location, set ZELTA_ENV before
# # running "zelta", e.g., in your shell RC.
# ZELTA_ENV="$ZELTA_ETC/zelta.env"
# # Change SSH executable. Note that we need `ssh -n` to avoid pipes.
# REMOTE_SEND_COMMAND="ssh -n"
# REMOTE_RECEIVE_COMMAND="ssh"
# # time(1) is required for JSON output (and to suppress some errors)
# TIME_COMMAND="/usr/bin/time -p"
# # "zelta time" uses bash's built-in time:
# TIME_COMMAND="zelta time"
# # Use the following command to override the snapshot name when one isn't
# # specified. By default, we use the date command to make YYYY-MM-DD_MM.SS
#
# # zfsnap style:
# ZELTA_SNAP_NAME="date -u +%Y-%m-%d_%H.%M.%S"
#
# # TrueNAS auto style:
# ZELTA_SNAP_NAME="date -u +auto-%Y-%m-%d_%H-%M"
#
# # Sanoid autosnap style:
# ZELTA_SNAP_NAME="date -u +autosnap_%Y-%m-%d_%H:%M:%S_yearly"
# # You can override these Zelta defaults:
# ZELTA_SEND_FLAGS="-Lcpw"
# ZELTA_RECEIVE_FLAGS="-ux mountpoint -o readonly=on"
# ZELTA_INTR_FLAGS="-I"
# ZELTA_DEPTH=""
# # Zelta attempts to detect pv(1) or dd(1) for progress (-p) and pv(1) for
# # limiting bandwidth (-L ###). You can add a custom filter below which will
# # be used by default. Note that "-vv" may also be required:
#
# # Always use pv for progress and a 10m limit:
# ZELTA_RECEIVE_PREFIX="pv -ptr -L 1m |"
# # For zeport, read a Slack hook from here:
# SLACK_HOOK="$HOME/.zeport-hook"
#
# For logging purposes, zelta also looks for $USER and attempts to identify
# the hostname with $HOST, $HOSTNAME, or `hostname`.