{"id":796,"date":"2019-04-17T13:57:55","date_gmt":"2019-04-17T11:57:55","guid":{"rendered":"http:\/\/blog.tobo.biz\/?p=796"},"modified":"2019-04-17T14:17:23","modified_gmt":"2019-04-17T12:17:23","slug":"owncloud-cron-auf-synology-nas","status":"publish","type":"post","link":"https:\/\/blog.tobo.biz\/?p=796","title":{"rendered":"Owncloud CRON auf Synology NAS"},"content":{"rendered":"\n<p>Immer mehr kleine Unternehmen betreiben ein eigenes NAS Syste, als zentralen Server. Immer h\u00e4ufiger handelt es sich dabei um ein NAS von Synology und was liegt da n\u00e4her, darauf eine Owncloud zu betreiben?<\/p>\n\n\n\n<p>Damit die Routinet\u00e4tigkeiten der Owncloud jedeoch funktionieren, m\u00fcssen in regelm\u00e4\u00dfigen Intervallen CRON-Jobs ausgef\u00fchrt werden. Um dies zu automatisieren, nutzt man hierf\u00fcr am besten den System-CRON von Synology. Wie das funktioniert, erkl\u00e4ren wir euch hier:<\/p>\n\n\n\n<h2>Vorbereiten des Synology NAS<\/h2>\n\n\n\n<p>Zuerst muss ein neuer Task erstellt werden. Hierzu w\u00e4hlt man folgenden Weg:<br><em>Systemsteuerung -&gt; Aufgabenplaner -&gt; Erstellen -&gt; Geplante Aufgabe -&gt; Benutzerdefiniertes Skript<\/em><\/p>\n\n\n\n<p><strong>Karteireiter &#8222;Allgemein&#8220;:<\/strong><\/p>\n\n\n\n<ul><li> Nun geben wir dem Skript einen Namen, bspw. &#8222;Run Owncloud CRON&#8220;<\/li><li> Als User w\u00e4hlen wir &#8222;root&#8220;, falls nicht bereits automatisch ausgew\u00e4hlt <\/li><\/ul>\n\n\n\n<p><strong><em>Ka<\/em>rteireiter &#8222;Zeitplan&#8220;<\/strong><\/p>\n\n\n\n<ul><li> An den folgenden Tagen ausf\u00fchren: T\u00e4glich<\/li><li>Erste Ausf\u00fchrungszeit: 00:00<\/li><li>Frequenz: Alle 15 Minuten<\/li><li>Letzte: 23:45 <\/li><\/ul>\n\n\n\n<p><strong><em>Karteireiter &#8222;Aufgabeneinstellungen&#8220; <\/em><\/strong><\/p>\n\n\n\n<ul><li>Ausf\u00fchrungsdetails per E-Mail senden: Eingeben der eigenen E-Mailadresse, setzen des Hakens &#8222;Ausf\u00fchrungsdetails \u00fcbersenden, wenn das Skript unnormal beendet wird&#8220;. Dies ist nicht unbedingt notwendig, informiert aber falls es bei dre Ausf\u00fchrung zu Fehlern kommt.<\/li><li>Benutzerdefiniertes Skript: curl http:\/\/localhost\/owncloud\/cron.php<\/li><\/ul>\n\n\n\n<p><em>Sollte ein Redirect von http auf https eingestellt sein, lautet das benutzerdefinierte Skript: curl &#8211;insecure https:\/\/localhost\/owncloud\/cron.php <\/em><\/p>\n\n\n\n<h2>Umstellen der Owncloud auf den richtigen CRON-Job<\/h2>\n\n\n\n<ul><li>In der Owncloud muss mit dem Adminkonto nun der entsprechende CRON-Job ausgew\u00e4hlt werden. Dazu geht man auf: Einstellungen -&gt; Allgemein<\/li><li> Cron: <em>Use system&#8217;s cron service to call the cron.php file every 15 minutes.<\/em><\/li><\/ul>\n\n\n\n<p>Ab jetzt startet das Synology NAS alle 15  Minuten die cron.php der Owncloud, wodurch diese ihre Routinearbeiten erledigen kann.<\/p>\n\n\n\n<p style=\"color:#469acf;text-align:center\" class=\"has-text-color has-medium-font-size\">Auf der Suche nach einer g\u00fcnstigen Cloud, made in Germany? <a href=\"http:\/\/www.urcloud.online\"><strong>www.urcloud.online<\/strong><\/a><br>Die g\u00fcnstige Studicloud, auch f\u00fcr Privat und Unternehmen <br><a href=\"http:\/\/www.urcloud.online\"><\/a><\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F796&#038;t=Owncloud%20CRON%20auf%20Synology%20NAS&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F796&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=Owncloud%20CRON%20auf%20Synology%20NAS\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F796&#038;text=Hey%20check%20this%20out\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F796&#038;title=Owncloud%20CRON%20auf%20Synology%20NAS\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/reddit.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-pinterest nolightbox\" data-provider=\"pinterest\" target=\"_blank\" rel=\"nofollow\" title=\"Pin it with Pinterest\" href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F796&#038;media=&#038;description=Owncloud%20CRON%20auf%20Synology%20NAS\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"pinterest\" title=\"Pin it with Pinterest\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/pinterest.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F796&#038;title=Owncloud%20CRON%20auf%20Synology%20NAS\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px;\"><img alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Owncloud%20CRON%20auf%20Synology%20NAS&#038;body=Hey%20check%20this%20out:%20https%3A%2F%2Fblog.tobo.biz%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F796\" style=\"font-size: 0px; width:48px;height:48px;margin:0;margin-bottom:5px;\"><img alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline; width:48px;height:48px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/blog.tobo.biz\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>Immer mehr kleine Unternehmen betreiben ein eigenes NAS Syste, als zentralen Server. Immer h\u00e4ufiger handelt es sich dabei um ein NAS von Synology und was liegt da n\u00e4her, darauf eine Owncloud zu betreiben? Damit die Routinet\u00e4tigkeiten der Owncloud jedeoch funktionieren, &hellip; <a href=\"https:\/\/blog.tobo.biz\/?p=796\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[86,161,24],"tags":[168,167,166,164,165,163,169],"_links":{"self":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts\/796"}],"collection":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=796"}],"version-history":[{"count":7,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts\/796\/revisions"}],"predecessor-version":[{"id":807,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=\/wp\/v2\/posts\/796\/revisions\/807"}],"wp:attachment":[{"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tobo.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}