Skip to content

Commit

Permalink
fixed backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Nov 20, 2023
1 parent 617240c commit e79867d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion docs/production.md
Original file line number Diff line number Diff line change
Expand Up @@ -2401,8 +2401,10 @@ Every day we generate echo files with extension .txt; this process renames ones
### Backup Arctic data to .csv files

Python:

```python
from sysproduction.backup_arctic_to_csv import backup_arctic_to_csv
from sysproduction.backup_db_to_csv import backup_arctic_to_csv

backup_arctic_to_csv()
```

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion sysproduction/interactive_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from sysobjects.production.process_control import processNotRunning
from sysobjects.production.tradeable_object import instrumentStrategy

from sysproduction.backup_arctic_to_csv import (
from sysproduction.backup_db_to_csv import (
backup_spread_cost_data,
get_data_and_create_csv_directories,
)
Expand Down
3 changes: 0 additions & 3 deletions sysproduction/linux/scripts/backup_arctic_to_csv

This file was deleted.

3 changes: 3 additions & 0 deletions sysproduction/linux/scripts/backup_db_to_csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
. ~/.profile
. p sysproduction.backup_db_to_csv.backup_db_to_csv
2 changes: 1 addition & 1 deletion sysproduction/run_backups.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from syscontrol.run_process import processToRun
from sysproduction.backup_arctic_to_csv import backupDbToCsv
from sysproduction.backup_db_to_csv import backupDbToCsv
from sysproduction.backup_mongo_data_as_dump import backupMongo
from sysproduction.backup_state_files import backupStateFiles
from sysdata.data_blob import dataBlob
Expand Down

0 comments on commit e79867d

Please sign in to comment.