Script for moving files

This commit is contained in:
zandercymatics 2023-10-23 14:51:55 -06:00
parent e17bb11f4c
commit 10841bb974
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 73 additions and 1 deletions

View file

@ -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}
```