Compare commits
2 Commits
dc2e9fcbb6
...
ad9b6b7d98
| Author | SHA1 | Date | |
|---|---|---|---|
| ad9b6b7d98 | |||
| 5ab10d466d |
5
sync.sh
5
sync.sh
@@ -8,6 +8,11 @@ cd "$SYNC_DIR"
|
||||
|
||||
echo "[$(date '+%H:%M:%S')] Sync from $HOSTNAME..."
|
||||
|
||||
# ── Step 0: Clean local state_merged.db to avoid git pull conflicts ──────
|
||||
# The merged db is produced by this script, not tracked, and can conflict
|
||||
# with remote when pulling. Remove it before fetch+merge.
|
||||
rm -f "$SYNC_DIR/state_merged.db"
|
||||
|
||||
# ── Step 1: Export local state.db (via temp dir to avoid lock) ────────────
|
||||
python3 << PYEOF
|
||||
import sqlite3, os, shutil, tempfile
|
||||
|
||||
Reference in New Issue
Block a user