Page MenuHomePhabricator

Add a "--copy" flag to "bin/files migrate"
ClosedPublic

Authored by epriestley on Sep 6 2016, 2:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 27, 11:28 AM
Unknown Object (File)
May 17 2025, 9:38 AM
Unknown Object (File)
May 6 2025, 5:13 AM
Unknown Object (File)
May 2 2025, 3:49 AM
Unknown Object (File)
Apr 21 2025, 6:48 PM
Unknown Object (File)
Apr 15 2025, 1:47 PM
Unknown Object (File)
Apr 11 2025, 7:27 AM
Unknown Object (File)
Apr 10 2025, 4:14 PM
Subscribers
None

Details

Summary

Ref T11596. When exporting data from the Phacility cluster, we bin/files migrate data from S3 into a database dump on the aux tier.

With current semantics, this moves the data and destroys it in S3.

Add a --copy flag to copy the data instead. This leaves the old copy around, which is what we want for exports.

Test Plan
  • Ran bin/files migrate to go from blob to disk with --copy. Verified a copy was left in the database.
  • Copied it back, verified a copy was left on disk (total: 2 database copies, 1 disk copy).
  • Moved it back without copy, verified database was destroyed and disk was created (total: 1 database copy, 2 disk copies).
  • Moved it back without copy, verified local disk was destroyed and blob was created (total: 2 datbabase copies, 1 disk copy).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Add a "--copy" flag to "bin/files migrate".
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 6 2016, 8:01 PM
This revision was automatically updated to reflect the committed changes.