Page MenuHomePhabricator

Add "bin/file migrate" options to support import of a local-disk backup for Phacility instances
ClosedPublic

Authored by epriestley on Jun 5 2019, 9:36 PM.
Tags
None
Referenced Files
F19902885: D20571.id49083.diff
Mon, Mar 30, 9:38 PM
F19899190: D20571.id49083.diff
Sun, Mar 29, 6:21 PM
F19891782: D20571.id.diff
Fri, Mar 27, 6:37 PM
F19855734: D20571.diff
Mar 13 2026, 3:43 PM
F19845547: D20571.id49074.diff
Mar 12 2026, 8:35 AM
F19560152: D20571.diff
Jan 31 2026, 6:30 AM
F19546118: D20571.diff
Jan 25 2026, 2:19 AM
F19513393: D20571.diff
Jan 13 2026, 12:16 PM
Subscribers
None

Details

Summary

Ref T13306. Currently, there's no easy way to import a third-party local-disk file dump into a Phacility instance.

Add some more options to bin/files migrate to support this. In particular, this enables:

$ ./bin/files --from-engine local-disk --engine amazon-s3 --local-disk-source path/to/backup

...to import these files into S3 directly.

These are general-purpose options and theoretically useful in other use cases, although realistically those cases are probably very rare.

Test Plan

Used bin/files with the new options to move files in and out of local disk storage in an arbitrary backup directory. Got clean exports/imports.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable