690 B
690 B
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'