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
F15505155: D20571.id49074.diff
Tue, Apr 15, 12:10 AM
F15504290: D20571.id49083.diff
Mon, Apr 14, 5:10 PM
F15497064: D20571.id.diff
Sun, Apr 13, 9:41 AM
F15492710: D20571.diff
Sat, Apr 12, 5:30 PM
F15452796: D20571.diff
Sat, Mar 29, 7:17 AM
F15417903: D20571.diff
Thu, Mar 20, 7:18 PM
Unknown Object (File)
Mar 3 2025, 11:38 AM
Unknown Object (File)
Feb 26 2025, 2:00 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