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
F14412912: D20571.diff
Tue, Dec 24, 1:37 PM
Unknown Object (File)
Mon, Dec 16, 11:12 PM
Unknown Object (File)
Wed, Dec 11, 12:17 PM
Unknown Object (File)
Tue, Dec 10, 10:42 PM
Unknown Object (File)
Mon, Dec 9, 2:24 PM
Unknown Object (File)
Sat, Dec 7, 5:03 AM
Unknown Object (File)
Tue, Dec 3, 7:12 PM
Unknown Object (File)
Fri, Nov 29, 3:25 AM
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