mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 11:38:39 +02:00
Update documentation
This commit is contained in:
parent
20df8d15af
commit
eb9c6fa7d2
1 changed files with 16 additions and 1 deletions
|
@ -94,9 +94,24 @@ Load migration data onto a production or sandbox environment
|
|||
**WARNING:** All files uploaded in this manner are temporary, i.e. they will be deleted when the app is restaged.
|
||||
Do not use this method to store data you want to keep around permanently.
|
||||
|
||||
#### STEP 1: Use scp to transfer data
|
||||
#### STEP 1: Using cat to transfer data to sandboxes
|
||||
|
||||
```bash
|
||||
cat {LOCAL_PATH_TO_FILE} | cf ssh {FULL_NAME_OF_YOUR_SANDBOX_HERE} -c "cat > /home/vcap/tmp/{DESIRED_NAME_OF_FILE}"
|
||||
```
|
||||
|
||||
* FULL_NAME_OF_YOUR_SANDBOX_HERE - Name of your sandbox, ex: getgov-za
|
||||
* LOCAL_PATH_TO_FILE - Path to the file you want to copy, ex: src/tmp/escrow_contacts.daily.gov.GOV.txt
|
||||
* DESIRED_NAME_OF_FILE - Use this to specify the filename and type, ex: test.txt or escrow_contacts.daily.gov.GOV.txt
|
||||
|
||||
|
||||
#### STEP 1 (Alternative): Using scp to transfer data to sandboxes
|
||||
**IMPORTANT:** Only follow these steps if cat does not work as expected. If it does, skip to step 2.
|
||||
|
||||
CloudFoundry supports scp as means of transferring data locally to our environment. If you are dealing with a batch of files, try sending across a tar.gz and unpacking that.
|
||||
|
||||
|
||||
|
||||
##### Login to Cloud.gov
|
||||
|
||||
```bash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue