mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
Script for moving files
This commit is contained in:
parent
e17bb11f4c
commit
10841bb974
2 changed files with 73 additions and 1 deletions
|
@ -145,10 +145,21 @@ cf ssh {FULL_NAME_OF_YOUR_SANDBOX_HERE}
|
|||
/tmp/lifecycle/shell
|
||||
```
|
||||
|
||||
From this directory, run the following command:
|
||||
```shell
|
||||
./manage.py cat_files_into_getgov --file_extension txt
|
||||
```
|
||||
|
||||
NOTE: This will look for all files in /tmp with the .txt extension, but this can
|
||||
be changed if you are dealing with different extensions.
|
||||
|
||||
#### Manual method
|
||||
If the `cat_files_into_getgov.py` script isn't working, follow these steps instead.
|
||||
|
||||
**Move the desired file into the correct directory**
|
||||
|
||||
```shell
|
||||
cat ../tmp/{filename} > datamigration/{filename}
|
||||
cat ../tmp/{filename} > migrationdata/{filename}
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue