@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use --hex-blob flag in bin/storage dump

Summary: mysqldump output can end up having weird encoding issues when raw BLOBs are in the output, preventing the backup restoration from succeeding. This hex-encodes blobs in the dump from the backup workflow causing the output file to only contain ASCII and ensure imports are successful.

Test Plan: Had issues restoring a backup from the original `mysqldump` command issued by this workflow. Ran the same command with this flag added and I was able to restore the backup.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D11704

authored by

Eric and committed by
epriestley
28b23fd7 472f316b

+1 -1
+1 -1
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
··· 44 44 : ''; 45 45 46 46 return phutil_passthru( 47 - 'mysqldump --single-transaction --default-character-set=utf8 '. 47 + 'mysqldump --hex-blob --single-transaction --default-character-set=utf8 '. 48 48 '-u %s %C -h %s %C --databases %Ls', 49 49 $api->getUser(), 50 50 $flag_password,