-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve docs for generating a migration spreadsheet (#564)
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
# Generating the DataSpace Migration Spreadsheet | ||
|
||
## Generating a full migration spreadsheet | ||
1. ssh to the production pdc-discovery server | ||
1. `bundle exec rake migration:produce_full_spreadsheet` | ||
|
||
## Generating a delta | ||
1. Download the current migration spreadsheet as a .csv file | ||
2. Check whether any new collections should be added to `config/collections.csv` | ||
3. Invoke the `produce_delta_spreadsheet` rake task and point to the current migration spreadsheet, like this: | ||
2. Check whether any new collections should be added to `config/collections.csv` (and add them, and deploy if necessary) | ||
3. Copy the current migration spreadsheet csv file to the PDC Discovery production server: `scp ~/Downloads/current_spreadsheet.csv [email protected]:/tmp` | ||
4. ssh to that server: `ssh [email protected]` | ||
5. Go to where the software is deployed | ||
6. Invoke the `produce_delta_spreadsheet` rake task and point to the current migration spreadsheet, like this: | ||
``` | ||
bundle exec rake migration:produce_delta_spreadsheet\["/Users/bess/projects/pdc_discovery/spec/fixtures/migration/migration_in_progress.csv"] | ||
bundle exec rake migration:produce_delta_spreadsheet\["/tmp/current_spreadsheet.csv"] | ||
``` | ||
4. It will produce a spreadsheet named like `delta_dataspace_migration_spreadsheet_2023_08_22_19_55.csv` in the `/tmp` directory. | ||
7. It will produce a spreadsheet named like `delta_dataspace_migration_spreadsheet_2023_08_22_19_55.csv` in the `/tmp` directory. | ||
8. Copy that spreadsheet to your local machine, and then import it into a new tab on the migration spreadsheet. |