summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-10-03 21:37:29 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-10-03 21:37:29 +0800
commit52177410361bef03cb2902eb069fc8e446a8712f (patch)
treed96a3f4e882e214c2abd4ebe83f23397b58fa1f3
parent78bdc577e711a9c9aaee3e1757291b9984eb3b95 (diff)
upd better commentHEADmaster
-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