summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-02 06:41:00 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-02 06:41:00 +0900
commitb9cfc58e97e55a8aa1b2333f58187b461127dd52 (patch)
treef19b09366f5cb652280670f2281a5dca56cc5f09 /ar
parent0da34808a395b347f0697830be533e401bd1d52c (diff)
modified bin/rbackup
Diffstat (limited to 'ar')
-rwxr-xr-xar/.local/bin/rbackup4
1 files changed, 3 insertions, 1 deletions
diff --git a/ar/.local/bin/rbackup b/ar/.local/bin/rbackup
index c78c029..748075a 100755
--- a/ar/.local/bin/rbackup
+++ b/ar/.local/bin/rbackup
@@ -90,7 +90,9 @@ sync_server() {
ssh "$THESIAH_SERVER" "mkdir -p /root/.config/bash /root/.config/shell /root/.config/vim /root/.local/bin /root/.local/share /root/.local/state /var/www/thesiah"
# Sync operations with explicit error checking
- rsync -vrazPlu --delete "$thesiah_path/" "$THESIAH_SERVER:/var/www/thesiah/" >/dev/null 2>&1
+ cd "$THESIAH_WWW" && echo "1" || exit 1
+ [ -d "$thesiah_path" ] || hugo --cleanDestinationDir
+ rsync -vrazPlu --delete "$thesiah_path/" "$THESIAH_SERVER:/var/www/thesiah/" >/dev/null 2>&1 && rm -rf "$thesiah_path"
rsync -vrazPlu --delete "$vim_path/vimrc" "$THESIAH_SERVER:/root/.config/vim/" >/dev/null 2>&1
rsync -vrazPlu --delete "$shell_path/inputrc" "$THESIAH_SERVER:/root/.config/shell/" >/dev/null 2>&1
sudo cp /root/.config/shell/rootshortcutrc ~/.cache/