vip-card: back up the proto rows as REPLACE statements only
A plain mysqldump --where also writes DROP/CREATE TABLE, so restoring the backup would have emptied item_proto down to the two cards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5dcac9cbd4
commit
32372c2a73
@@ -14,7 +14,7 @@ export LC_ALL=C
|
||||
|
||||
mkdir -p "$BACKUP"
|
||||
cp -p "$PROTO" "$NAMES" "$BACKUP/"
|
||||
mysqldump -uroot player item_proto --where="vnum in (38001,38002)" > "$BACKUP/item_proto-rows.sql"
|
||||
mysqldump -uroot --no-create-info --replace player item_proto --where="vnum in (38001,38002)" > "$BACKUP/item_proto-rows.sql"
|
||||
echo "backup: $BACKUP"
|
||||
|
||||
# item_proto.txt: column 5 size, 6 anti flags, 7 flags.
|
||||
|
||||
Reference in New Issue
Block a user