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
Unknown Object (File)
Thu, Apr 11, 7:55 AM
Unknown Object (File)
Wed, Apr 3, 5:43 AM
Unknown Object (File)
Mar 4 2024, 8:04 PM
Unknown Object (File)
Jan 25 2024, 2:05 AM
Unknown Object (File)
Dec 22 2023, 2:22 AM
Unknown Object (File)
Dec 20 2023, 4:41 AM
Unknown Object (File)
Dec 19 2023, 1:07 PM
Unknown Object (File)
Nov 30 2023, 5:51 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