summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 622ab14)
raw | patch | inline | side by side (parent: 622ab14)
author | Ian Kelling <ian@iankelling.org> | |
Mon, 23 Jan 2017 00:21:53 +0000 (16:21 -0800) | ||
committer | Ian Kelling <ian@iankelling.org> | |
Mon, 23 Jan 2017 00:21:53 +0000 (16:21 -0800) |
btrbk-run | patch | blob | history | |
distro-end | patch | blob | history | |
install-btrfs-sync-tools | patch | blob | history | |
mail-setup | patch | blob | history |
diff --git a/btrbk-run b/btrbk-run
index 961208e739bb359500f62c897d9152647bd08195..759b3a4782ae32407c86e5a5e5ba745a589d10f4 100755 (executable)
--- a/btrbk-run
+++ b/btrbk-run
# only make a snapshot if things have changed
snapshot_create onchange
-# much less snapshots because I have less space on the
-# local filesystem.
-#snapshot_preserve 2h 2d
-# for now, keeping them equal for simplicity sake
-snapshot_preserve 48h 14d 8w 24m
-snapshot_preserve_min 6h
+# I could make this different from target_preserve,
+# if one disk had less space.
+# for now, keeping them equal.
+snapshot_preserve 36h 14d 8w 24m
+snapshot_preserve_min 4h
snapshot_dir btrbk
# so, total backups = ~89
-target_preserve 48h 14d 8w 24m
-target_preserve_min 6h
+target_preserve 36h 14d 8w 24m
+target_preserve_min 4h
# if something fails and it's not obvious, try doing
# btrbk -l debug -v dryrun
diff --git a/distro-end b/distro-end
index 1e5303e9fd08172d4b16ab18a4b84f428634c657..22e732683bb1244b7c2dba3f5eb2dc395a0b0fda 100755 (executable)
--- a/distro-end
+++ b/distro-end
case $distro in
- debian|ubuntu) spa android-tools-adb/unstable ;;
+ debian|ubuntu) spa android-tools-adbd/unstable ;;
arch) spa android-tools ;;
# other distros unknown
esac
@@ -725,7 +725,7 @@ walletnotify=curl -sI --connect-timeout 1 http://localhost:62602/walletnotify?%s
alertnotify=curl -sI --connect-timeout 1 http://localhost:62602/alertnotify?%s
EOF
;;
- # other distros unknown
+ # other distros unknown
esac
if [[ $HOSTNAME == treetowl ]]; then
pi libsodium-dev python3-pip
# run "control userpasswords2", turn on automatic login.
# note: when changing devices, I just undefine, the create the vm again.
- s virt-install --noautoconsole --graphics spice,listen=0.0.0.0 \
- --disk=/a/images/win10.qcow2,bus=virtio --vcpus 2 -r 4096 -w bridge=br0 \
- -n win10 --import --os-variant $variant --cpu host-model-only
-
- s virsh destroy win10
+ if [[ -e /a/images/win10.qcow2 ]]; then
+ s virt-install --noautoconsole --graphics spice,listen=0.0.0.0 \
+ --disk=/a/images/win10.qcow2,bus=virtio --vcpus 2 -r 4096 -w bridge=br0 \
+ -n win10 --import --os-variant $variant --cpu host-model-only
- # this one hasn\'t had the virtio fix done yet.
- s virt-install --noautoconsole --graphics spice,listen=0.0.0.0 \
- --disk=/a/images/win7.qcow2 --vcpus 2 -r 4096 -w bridge=br0 \
- -n win7 --import --os-variant win7 --cpu host-model-only
- s virsh destroy win7
- # had a problem with --cpu host, so trying out
- # --cpu host-model-only
+ s virsh destroy win10
+ fi
+ if [[ -e /a/images/win7.qcow2 ]]; then
+ # this one hasn\'t had the virtio fix done yet.
+ s virt-install --noautoconsole --graphics spice,listen=0.0.0.0 \
+ --disk=/a/images/win7.qcow2 --vcpus 2 -r 4096 -w bridge=br0 \
+ -n win7 --import --os-variant win7 --cpu host-model-only
+ s virsh destroy win7
+ # had a problem with --cpu host, so trying out
+ # --cpu host-model-only
+ fi
fi
index bbf5194fefa73907ecd21f795e4b580697854605..e912664efd3ece766757d4f3e936e205654fd16f 100755 (executable)
--- a/install-btrfs-sync-tools
+++ b/install-btrfs-sync-tools
[[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@"
-cd $(dirname $(readlink -f "${BASH_SOURCE}"))
+x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*}
echo install mount-latest-subvol check-subvol-stale /usr/local/bin
diff --git a/mail-setup b/mail-setup
index ffd6f8ca90a0374fd4af11b53b72e21d60e5c8f9..47d0710096b387b9d24db9c58ff7a5201bd581e1 100755 (executable)
--- a/mail-setup
+++ b/mail-setup
printf "[%s]:587 %s" "$domain" "${pass/@/#}" | s dd of=/etc/postfix/sasl_passwd 2>/dev/null
s postmap hash:/etc/postfix/sasl_passwd
s service postfix reload
-else
+
+else # exim
# wording of question from dpkg-reconfigure exim4-config
# 1. internet site; mail is sent and received directly using SMTP