{"id":197,"date":"2019-02-12T11:45:29","date_gmt":"2019-02-12T10:45:29","guid":{"rendered":"http:\/\/blog.brunocsmartin.fr\/?p=197"},"modified":"2019-02-12T11:45:29","modified_gmt":"2019-02-12T10:45:29","slug":"syncthing-as-backup","status":"publish","type":"post","link":"https:\/\/blog.brunocsmartin.fr\/index.php\/2019\/02\/12\/syncthing-as-backup\/","title":{"rendered":"Syncthing as backup"},"content":{"rendered":"<p>t\u00e9l\u00e9charger syncthing : <a href=\"https:\/\/syncthing.net\/\">https:\/\/syncthing.net\/<\/a> copier l&rsquo;exe dans \/usr\/local\/bin<\/p>\n<p>cr\u00e9er deux utilisateur : 1 qui \u00e9coute le dossier \u00e0 backuper et partage ce dossier par syncthing (syncthing), l&rsquo;autre qui \u00e9coute le partage (syncthing_backup).<\/p>\n<p>Cr\u00e9er un service dans system pour chacun avec deux port diff\u00e9rents:<\/p>\n<p><code><br \/>\n[Unit]<br \/>\nDescription=Syncthing - Open Source Continuous File Synchronization for %I<br \/>\nDocumentation=man:syncthing(1)<br \/>\nAfter=network.target<br \/>\n[Service]<br \/>\nUser=syncthing<br \/>\n#ExecStart=\/usr\/local\/bin\/syncthing_backup -gui-address=\"http:\/\/10.8.0.3:8385\"<br \/>\nExecStart=\/usr\/local\/bin\/syncthing -gui-address=\"http:\/\/10.8.0.3:8384\"<br \/>\nRestart=on-failure<br \/>\nSuccessExitStatus=3 4<br \/>\nRestartForceExitStatus=3 4<br \/>\n# Hardening<br \/>\nProtectSystem=full<br \/>\nPrivateTmp=true<br \/>\nSystemCallArchitectures=native<br \/>\nMemoryDenyWriteExecute=true<br \/>\nNoNewPrivileges=true<br \/>\n[Install]<br \/>\nWantedBy=multi-user.target<br \/>\n<\/code><\/p>\n<p>G\u00e9rer les permissions pour que les user acc\u00e8dent au dossier partag\u00e9 vis\u00e9 (chmod g+w), ignorer les permissions dans la webUI de celui qui \u00e9coute le dossier (sinon : restauration pas possible)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>t\u00e9l\u00e9charger syncthing : https:\/\/syncthing.net\/ copier l&rsquo;exe dans \/usr\/local\/bin cr\u00e9er deux utilisateur : 1 qui \u00e9coute le dossier \u00e0 backuper et partage ce dossier par syncthing (syncthing), l&rsquo;autre qui \u00e9coute le partage (syncthing_backup). Cr\u00e9er un service dans system pour chacun avec deux port diff\u00e9rents: [Unit] Description=Syncthing &#8211; Open Source Continuous File Synchronization for %I Documentation=man:syncthing(1) After=network.target &hellip; <a href=\"https:\/\/blog.brunocsmartin.fr\/index.php\/2019\/02\/12\/syncthing-as-backup\/\" class=\"more-link\">Continuer la lecture de <span class=\"screen-reader-text\">Syncthing as backup<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","hentry","category-non-classe"],"_links":{"self":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/197"}],"collection":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":1,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/posts\/197\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.brunocsmartin.fr\/index.php\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}