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
F19053824: D20571.id.diff
Fri, Nov 28, 10:04 AM
F19049775: D20571.diff
Thu, Nov 27, 6:22 PM
F19001538: D20571.id.diff
Fri, Nov 21, 3:29 AM
F18884958: D20571.id49083.diff
Fri, Nov 7, 2:30 AM
F18834580: D20571.id.diff
Oct 26 2025, 9:35 AM
F18831989: D20571.diff
Oct 25 2025, 5:54 PM
F18763270: D20571.id.diff
Oct 6 2025, 11:32 PM
F18762776: D20571.id49083.diff
Oct 6 2025, 8:34 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