Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhuangxinyu1 committed Oct 3, 2020
1 parent abfe9a8 commit dac497f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib-hft
13 changes: 13 additions & 0 deletions scripts/data_collect/crontab
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
30 03 * * 2-6 /home/nick/future/rsync.sh
30 07 * * 2-6 /home/nick/future/rsync.sh

40 15 * * 1-5 /home/nick/stock/rsync.sh
40 17 * * 1-5 /home/nick/stock/rsync.sh

12 00 * * * /home/nick/coin/rsync.sh
12 04 * * * /home/nick/coin/rsync.sh
12 08 * * * /home/nick/coin/rsync.sh

12 08 * * * ~/zip.sh
30 06 * * * ~/hft/lib-hft/tools/dt/run.sh
20 00 * * * ~/zipandupdate.sh
7 changes: 7 additions & 0 deletions scripts/data_collect/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#/bin/bash
install -d /running/csv
useradd nick
cp -r future /home/nick/future
cp -r coin /home/nick/coin
cp -r stock /home/nick/stock
cp zipandupdate.sh ~
5 changes: 5 additions & 0 deletions scripts/data_collect/zipandupdate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
ntpdate ntp1.aliyun.com > /dev/null 2>&1; /sbin/hwclock -w

cd /running/csv
find . -name "*.csv" | xargs gzip
3 changes: 3 additions & 0 deletions scripts/merge_with_cache.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

rsync -avz -e "ssh -i /root/.ssh/ali_key -p 18301" -r [email protected]:~/quant/tools/read/read_data/ /running/csv/

0 comments on commit dac497f

Please sign in to comment.