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
F19504479: D16497.id39714.diff
Fri, Jan 9, 5:12 AM
F19504478: D16497.id39702.diff
Fri, Jan 9, 5:12 AM
F19504477: D16497.id.diff
Fri, Jan 9, 5:12 AM
F19504421: D16497.id39714.diff
Fri, Jan 9, 5:09 AM
F19504420: D16497.id39702.diff
Fri, Jan 9, 5:09 AM
F19504419: D16497.id.diff
Fri, Jan 9, 5:09 AM
F18978686: D16497.diff
Nov 16 2025, 8:40 PM
F18853341: D16497.id.diff
Oct 31 2025, 3:55 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
Branch
export1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13581
Build 17492: Run Core Tests
Build 17491: arc lint + arc unit

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.