summaryrefslogtreecommitdiff
path: root/sh/upd
diff options
context:
space:
mode:
Diffstat (limited to 'sh/upd')
-rwxr-xr-xsh/upd8
1 files changed, 6 insertions, 2 deletions
diff --git a/sh/upd b/sh/upd
index 44f750f..fe3d28d 100755
--- a/sh/upd
+++ b/sh/upd
@@ -60,7 +60,9 @@ backup () {
(
umask 077
- # need to pull VPS cfgs repos (ca, ib, ba, etc.) to /root/programs for insp to rsync to external HDD to satisfy 321 backup rule
+ # need to pull VPS cfgs repos (ca, ib, ba, etc.) to /root/programs
+ # for insp to duplicity backup to ca and ib to satisfy 321 backup
+ # rule
for dir in $(sudo find /root/programs -maxdepth 1 -mindepth 1 -type d -name 'config_local_arch_secrets*'); do
sudo -E git -C "$dir" pull
done
@@ -141,7 +143,9 @@ clean () {
fast () {
# After linux upgrade, if not reboot, plug in external HDD will not be
# detected. backup() needs to plugin external HDD, so backup() needs to run
- # before pac()
+ # before pac(). Now, I do not use an external HDD for frequent bakcup any
+ # more, but I still would like to put it in this order to consider in the
+ # future I maybe use one again.
if [ "$hostname" = xyzinsp ] || [ "$hostname" = xyzpp ]; then
backup
fi