auto-sync: 2026-05-22 18:35:34

This commit is contained in:
cfdaily
2026-05-22 18:35:34 +08:00
parent a61cb60fc0
commit 2c5f886998
+1 -1
View File
@@ -74,7 +74,7 @@ rsync -a "$CONFIG_DIR/" "$BACKUP_DIR/$BACKUP_NAME/config/"
cat > "$BACKUP_DIR/$BACKUP_NAME/metadata.json" << EOF
{
"timestamp": "$TIMESTAMP",
"date": "$(date -Iseconds)",
"date": "$(date "+%Y-%m-%dT%H:%M:%S%z")",
"source": "$TARGET_DIR",
"service_stopped": $STOP_SERVICE,
"version": "$(cd "$TARGET_DIR" && python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml","rb"))["project"]["version"])' 2>/dev/null || echo 'unknown')"