1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 19:32:40 +01:00
phorge-phorge/src/applications/files/management
epriestley af5769a6be Add a "--copy" flag to "bin/files migrate"
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).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11596

Differential Revision: https://secure.phabricator.com/D16497
2016-09-06 13:53:59 -07:00
..
PhabricatorFilesManagementCatWorkflow.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorFilesManagementCompactWorkflow.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorFilesManagementCycleWorkflow.php Support AES256 at-rest encryption in Files 2016-06-16 08:08:56 -07:00
PhabricatorFilesManagementEncodeWorkflow.php Support AES256 at-rest encryption in Files 2016-06-16 08:08:56 -07:00
PhabricatorFilesManagementEnginesWorkflow.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorFilesManagementGenerateKeyWorkflow.php Support AES256 at-rest encryption in Files 2016-06-16 08:08:56 -07:00
PhabricatorFilesManagementMigrateWorkflow.php Add a "--copy" flag to "bin/files migrate" 2016-09-06 13:53:59 -07:00
PhabricatorFilesManagementPurgeWorkflow.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorFilesManagementRebuildWorkflow.php phtize all the things 2015-05-22 21:16:39 +10:00
PhabricatorFilesManagementWorkflow.php phtize all the things 2015-05-22 21:16:39 +10:00