diff --git a/server/crontab b/server/server-crontab similarity index 90% rename from server/crontab rename to server/server-crontab index 9d79b07e..5c141a94 100644 --- a/server/crontab +++ b/server/server-crontab @@ -21,8 +21,10 @@ # # m h dom mon dow command -*/5 * * * * NODE_ENV=production /root/.nvm/versions/node/v14.17.0/bin/node /root/nano-community/scripts/import-subreddit.mjs -r nanocurrency &>> /var/log/nano-community/import-nanocurrency.log -*/10 * * * * NODE_ENV=production /root/.nvm/versions/node/v14.17.0/bin/node /root/nano-community/scripts/import-subreddit.mjs -r nanotrade &>> /var/log/nano-community/import-nanotrade.log +# subreddit import moved to storage server due to 403 issues +# */5 * * * * NODE_ENV=production /root/.nvm/versions/node/v14.17.0/bin/node /root/nano-community/scripts/import-subreddit.mjs -r nanocurrency &>> /var/log/nano-community/import-nanocurrency.log +# */10 * * * * NODE_ENV=production /root/.nvm/versions/node/v14.17.0/bin/node /root/nano-community/scripts/import-subreddit.mjs -r nanotrade &>> /var/log/nano-community/import-nanotrade.log + */15 * * * * NODE_ENV=production /root/.nvm/versions/node/v14.17.0/bin/node /root/nano-community/scripts/import-discord.mjs --gid 370266023905198083 &>> /var/log/nano-community/import-nano-discord.log */10 * * * * NODE_ENV=production /root/.nvm/versions/node/v14.17.0/bin/node /root/nano-community/scripts/import-discord.mjs --gid 403628195548495882 &>> /var/log/nano-community/import-nano-trade-discord.log diff --git a/server/storage-crontab b/server/storage-crontab new file mode 100644 index 00000000..ab9175b2 --- /dev/null +++ b/server/storage-crontab @@ -0,0 +1,7 @@ +################################### Storage Server Nano.Community Crontab ################################### + +0 */4 * * * NODE_ENV=production /home/user/.nvm/versions/node/v16.14.0/bin/node /home/user/projects/nano-community/scripts/import-subreddit.mjs -r nanocurrency &>> /var/log/nano-community/import-nanocurrency.log +0 */6 * * * NODE_ENV=production /home/user/.nvm/versions/node/v16.14.0/bin/node /home/user/projects/nano-community/scripts/import-subreddit.mjs -r nanotrade &>> /var/log/nano-community/import-nanotrade.log + + +0 1 * * * NODE_ENV=production /home/user/.nvm/versions/node/v16.14.0/bin/node /home/user/projects/nano-community/scripts/archive-mysql.mjs &>> /var/log/nano-community/archive-mysql.log \ No newline at end of file