test
This commit is contained in:
parent
289bbd7d74
commit
0c502afc55
15
app/test.py
Normal file
15
app/test.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
from dotenv import load_dotenv
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
load_dotenv()
|
||||||
|
|
||||||
|
useast_ip_address = os.getenv('USEAST_IP_ADDRESS')
|
||||||
|
|
||||||
|
|
||||||
|
command = [
|
||||||
|
"sudo", "rsync", "-avz", "-e", "ssh",
|
||||||
|
"/root/backend/app/json/similar-stocks",
|
||||||
|
f"root@{useast_ip_address}:/root/backend/app/json"
|
||||||
|
]
|
||||||
|
subprocess.run(command)
|
||||||
Loading…
x
Reference in New Issue
Block a user