{"id":805,"date":"2014-12-19T22:56:50","date_gmt":"2014-12-20T03:56:50","guid":{"rendered":"http:\/\/xfloyd.net\/blog\/?p=805"},"modified":"2014-12-20T10:59:19","modified_gmt":"2014-12-20T15:59:19","slug":"cygwin-cron-setup","status":"publish","type":"post","link":"https:\/\/xfloyd.net\/blog\/?p=805","title":{"rendered":"Cygwin cron setup"},"content":{"rendered":"<p>Use Below command to setup cron as service<\/p>\n<pre>$ cron-config\r\nDo you want to remove or reinstall it (yes\/no) <strong>yes<\/strong>\r\nDo you want to install the cron daemon as a service? (yes\/no) <strong>yes<\/strong>\r\nEnter the value of CYGWIN for the daemon: [ ] <strong>ntsec<\/strong>\r\nDo you want the cron daemon to run as yourself? (yes\/no) <strong>no\r\n<\/strong>Do you want to start the cron daemon as a service now? (yes\/no) <strong>yes<\/strong><\/pre>\n<p>Next use crontab to create the sceduled task<\/p>\n<pre>$ crontab -e\r\n0 0 * * * rsync -avz --delete --password-file \/etc\/rsync.pwd \/cygdrive\/g\/www\/ rsync:\/\/rsync@192.168.21.108:\/Public\/www<\/pre>\n<p>This syncs my laptop with my NAS every day at midnight. I also have a task in my windows Task Manager to wake the laptop from sleep at that time to do the sync. So I can sleep, without worry.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use Below command to setup cron as service $ cron-config Do you want to remove or reinstall it (yes\/no) yes Do you want to install the cron daemon as a service? (yes\/no) yes Enter the value of CYGWIN for the daemon: [ ] ntsec Do you want the cron daemon to run as yourself? (yes\/no) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"_links":{"self":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/805"}],"collection":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=805"}],"version-history":[{"count":5,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions"}],"predecessor-version":[{"id":810,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/805\/revisions\/810"}],"wp:attachment":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}