Files
mp-qvyun/readme.md
2024-12-16 23:09:46 +08:00

27 lines
690 B
Markdown

### commands
#### discover
```
./backend tasks discover --from /mnt/yangpingliang/publish/ --to /mnt/yangpingliang/publish/processed/1
```
#### sync
```
rsync -avh --progress /mnt/ypl/publish/processed/ server.ali.bj.01:/data
```
#### store
```
tasks store --from /app/processed
```
### crontab example for rockey8
Add the following lines to your crontab file to run the discover command every hour and run the sync command only if discover is successful:
```
0 * * * * /bin/bash -c 'qvyun tasks discover --from /mnt/yangpingliang/publish/ --to /mnt/yangpingliang/publish/processed/1 && rsync -avh --progress /mnt/ypl/publish/processed/ server.ali.bj.01:/data'
```
### docker images