Supression du répertoire site/
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
JF
2025-03-17 16:26:29 +01:00
parent db44b30690
commit 924dd27cd9
51 changed files with 0 additions and 9079 deletions

View File

@@ -1,134 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/img/favicon.ico" />
<title>Savanewiki</title>
<link rel="stylesheet" href="/css/theme.css" />
<link rel="stylesheet" href="/css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<!--[if lt IE 9]>
<script src="/js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="/." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="//search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="/.">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/Synology/2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/Synology/2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/Synology/2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/Synology/2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="/Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="/.">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="/." class="icon icon-home" aria-label="Docs"></a></li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="404-page-not-found">404</h1>
<p><strong>Page not found</strong></p>
</div>
</div><footer>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
</span>
</div>
<script src="/js/jquery-3.6.0.min.js"></script>
<script>var base_url = "/";</script>
<script src="/js/theme_extra.js"></script>
<script src="/js/theme.js"></script>
<script src="/search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,219 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Ansible/2023-10-01-nextcloud-docker-update-from-ansible/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Mise à jour de Nextcloud docker par Ansible - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Mise \u00e0 jour de Nextcloud docker par Ansible";
var mkdocs_page_input_path = "Ansible/2023-10-01-nextcloud-docker-update-from-ansible.md";
var mkdocs_page_url = "/Ansible/2023-10-01-nextcloud-docker-update-from-ansible/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="./">Mise à jour de Nextcloud docker par Ansible</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#prerequis">Prérequis</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#le-playbook">Le playbook</a>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Ansible</li>
<li class="breadcrumb-item active">Mise à jour de Nextcloud docker par Ansible</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="mise-a-jour-de-nextcloud-docker-par-ansible">Mise à jour de Nextcloud docker par Ansible</h1>
<h2 id="prerequis">Prérequis</h2>
<p><a href="../../Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à laide dune clef asymétrique.</a></p>
<h2 id="le-playbook">Le playbook</h2>
<pre><code class="language-yaml">---
- name: Mise à jour du conteneur Nextcloud
hosts: savaneprod.fr
vars:
nc_version: 28.0.5
tasks:
- name: Modification de la versions dans le docker-compose
ansible.builtin.lineinfile:
path: /volume1/nextcloud/docker-compose.yaml
backrefs: true
backup: false
state: present
regexp: &quot;^ image: nextcloud:&quot;
line: &quot; image: nextcloud:{{ nc_version }}&quot;
- name: &quot;Téléchargement de l'image nextcloud: {{ nc_version }}&quot;
community.docker.docker_image:
# Needed on DSM : pip3 install docker
name: nextcloud
source: pull
tag: '{{ nc_version }}'
- name: Compose down &amp; compose up detached
# Needed on DSM : pip3 install docker-compose
community.docker.docker_compose:
project_src: &quot;/volume1/nextcloud&quot;
recreate: smart
- name: Pause en attendant la remontée des conteneurs
ansible.builtin.pause:
#minutes: 2
seconds: 30
- name: &quot;Mise à jour de la base de données&quot;
community.docker.docker_container_exec:
container: nextcloud_app_1
tty: true
user: www-data
command: &quot;{{ item }}&quot;
loop:
- &quot;php occ db:add-missing-columns&quot;
- &quot;php occ db:add-missing-indices&quot;
- &quot;php occ db:add-missing-primary-keys&quot;
- &quot;php occ config:system:set maintenance_window_start --type=integer --value=1&quot;
- name: Pause de 1 minute
ansible.builtin.pause:
minutes: 1
- name: Modification du fichier .htaccess pour Mac
tags: caldav
ansible.builtin.lineinfile:
path: /volume1/nextcloud/data/.htaccess
backup: false
state: present
search_string: &quot;{{ item.search_string }}&quot;
line: &quot;{{ item.line }}&quot;
loop:
- { search_string: 'RewriteRule ^\.well-known/carddav', line: ' RewriteRule ^\.well-known/carddav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]' }
- { search_string: 'RewriteRule ^\.well-known/caldav', line: ' RewriteRule ^\.well-known/caldav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]' }
</code></pre>
<p>=&gt; Cette façon de faire renvoi un problème d'intégrité sur le fichier config.php.</p>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../../Synology/2021-02-06-restore-time-machine-backup/" class="btn btn-neutral float-left" title="Restaurer un mac depuis une sauvegarde Time machine."><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../2023-11-14-savanewiki-plubication/" class="btn btn-neutral float-right" title="Publication de Savanewiki">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../../Synology/2021-02-06-restore-time-machine-backup/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../2023-11-14-savanewiki-plubication/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,220 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Ansible/2023-11-14-savanewiki-plubication/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Publication de Savanewiki - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Publication de Savanewiki";
var mkdocs_page_input_path = "Ansible/2023-11-14-savanewiki-plubication.md";
var mkdocs_page_url = "/Ansible/2023-11-14-savanewiki-plubication/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1 current"><a class="reference internal current" href="./">Publication de Savanewiki</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#utilisation-de-mkdocs">Utilisation de mkdocs</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#pour-demarrer-le-serveur-mkdocs">Pour démarrer le serveur mkdocs</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#creation-dune-page">Création d'une page.</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#referencement-de-la-page-dans-larborescence-du-site">Référencement de la page dans l'arborescence du site</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#compilation-du-site">Compilation du site</a>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#le-playbook-ansible">Le playbook ansible</a>
</li>
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Ansible</li>
<li class="breadcrumb-item active">Publication de Savanewiki</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="publication-du-build-mkdocs-de-savanewiki-via-ansible">Publication du build mkdocs de Savanewiki via Ansible</h1>
<h3 id="utilisation-de-mkdocs">Utilisation de mkdocs</h3>
<h4 id="pour-demarrer-le-serveur-mkdocs">Pour démarrer le serveur mkdocs</h4>
<p>Positionner le terminal à la racine du dossier du site mkdocs.</p>
<pre><code class="language-bash">mkdocs serve
</code></pre>
<p>La mise à jour est dynamique, elle suit la mise à jour des pages.</p>
<h4 id="creation-dune-page">Création d'une page.</h4>
<pre><code class="language-bash">vi ./docs/rubrique/$(date '+%Y-%m-%d')-nouvelle_page.md
</code></pre>
<h4 id="referencement-de-la-page-dans-larborescence-du-site">Référencement de la page dans l'arborescence du site</h4>
<p>Ajouter le nom de la page dans le fichier.</p>
<pre><code class="language-bash">vi mkdocs.yml
</code></pre>
<pre><code class="language-markdown">site_name: Savanewiki
site_url: https://docs.savaneprod.fr
nav:
- Home: index.md
- Rubrique:
- &quot;Rubrique/index.md&quot;
- &quot;Rubrique/$(date '+%Y-%m-%d')-nouvelle_page.md&quot;
- About: about.md
theme: readthedocs
</code></pre>
<p>Contenu minimal de la page :</p>
<pre><code class="language-markdown">---
title: &quot;Nouvelle page&quot;
summary: &quot;Description brève&quot;
author:
- JF
date: $(date '+%Y-%m-%d')
---
</code></pre>
<h4 id="compilation-du-site">Compilation du site</h4>
<pre><code class="language-bash">mkdocs build --clean
</code></pre>
<h3 id="le-playbook-ansible">Le playbook ansible</h3>
<p>Rsync étant compliqué à utilser avec Synology. Utiliser Gitea pour télécharger les fichiers au bon endroit, un peu tordu. J'ai décidé d'utiliser Ansible pour publier les builds de Savanewiki.
Toujours parce que rsync n'est pas standard avec Synology, je n'ai pas cherché à utiliser le module <code>ansible.posix.synchronize</code>. Ce n'est pas très efficace d'un point de vue du mécanisme, mais ça l'est d'un point de vue simplicité et temps de mise en place.</p>
<pre><code class="language-yaml">---
- name: Déploiement de SavaneWiki
hosts: savaneprod.fr
tasks:
- name: Remove dest files
ansible.builtin.file:
path: /volume1/web/docs/
state: absent
- name: Copie des fichier de site/
ansible.builtin.copy:
dest: /volume1/web/docs/
group: http
mode: 600
owner: root
src: &quot;{{ playbook_dir }}/../site/&quot;
</code></pre>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../2023-10-01-nextcloud-docker-update-from-ansible/" class="btn btn-neutral float-left" title="Mise à jour de Nextcloud docker par Ansible"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../../Linux/2019-07-09-manipulations-LVM/" class="btn btn-neutral float-right" title="Manipulations LVM">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../2023-10-01-nextcloud-docker-update-from-ansible/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../../Linux/2019-07-09-manipulations-LVM/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,188 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Linux/2019-07-09-manipulations-LVM/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Manipulations LVM - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Manipulations LVM";
var mkdocs_page_input_path = "Linux/2019-07-09-manipulations-LVM.md";
var mkdocs_page_url = "/Linux/2019-07-09-manipulations-LVM/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Synology/2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="./">Manipulations LVM</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#commandes-pour-avoir-des-informations-sur-les-volumes">Commandes pour avoir des informations sur les volumes :</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#tout-dabord-il-faut-commencer-par-le-redimensionnement-du-volume-physique">Tout d'abord il faut commencer par le redimensionnement du volume physique</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#on-desactive-le-volume-logique-pour-pouvoir-travailler-dessus">On désactive le volume logique pour pouvoir travailler dessus.</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#on-etend-le-volume-logique-le-volume-groupe-est-redimensionne-en-meme-temps-que-le-volume-physique">On étend le volume logique. Le volume groupe est redimensionné en même temps que le volume physique.</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#puis-on-rend-a-nouveau-actif-le-volume-logique">Puis on rend à nouveau actif le volume logique :</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#pour-finir-on-redimensionne-le-systeme-de-fichier">Pour finir, on redimensionne le système de fichier :</a>
</li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Linux</li>
<li class="breadcrumb-item active">Manipulations LVM</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h2 id="manipulation-de-volumes-lvm">Manipulation de volumes LVM</h2>
<h3 id="commandes-pour-avoir-des-informations-sur-les-volumes">Commandes pour avoir des informations sur les volumes :</h3>
<ul>
<li><strong>Lister</strong></li>
<li>pvscan, vgscan, lvscan</li>
<li><strong>Obtenir des informations sur les volumes</strong></li>
<li>pvs, vgs, lvs</li>
<li><strong>Obtenir des informations sur un volume</strong></li>
<li>pvdisplay, vgdisplay, lvdisplay</li>
</ul>
<h3 id="tout-dabord-il-faut-commencer-par-le-redimensionnement-du-volume-physique">Tout d'abord il faut commencer par le redimensionnement du volume physique</h3>
<p><code>pvresize /dev/sdc</code>
* Il est inutile de rentrer des option ou des arguments, la commande se charge seule d'effectuer le redimensionnement. Et le <strong>V</strong>olume <strong>G</strong>roup prend automatiquement la taille du <strong>P</strong>hysical <strong>V</strong>olume.</p>
<p><strong><em>S'il s'agit d'un nouveau volume :</em></strong>
* <code>pvcreate /dev/le_volume</code>
* <code>vgs</code> pour afficher les Volume groups de la machine
* <code>vgextend nom_du_vg /dev/le_volume</code>, asseoit un Volume Group sur deux disques durs. <strong>Attention !</strong> Si un disque crash le Volume Group est mort.</p>
<h3 id="on-desactive-le-volume-logique-pour-pouvoir-travailler-dessus">On désactive le volume logique pour pouvoir travailler dessus.</h3>
<p><code>lvchange -a n &lt;nom du vg&gt; -&gt; désactiver le volume logique</code></p>
<h3 id="on-etend-le-volume-logique-le-volume-groupe-est-redimensionne-en-meme-temps-que-le-volume-physique">On étend le volume logique. Le volume groupe est redimensionné en même temps que le volume physique.</h3>
<p><code>lvextend -l +100%FREE /dev/vg001/linshare</code></p>
<h3 id="puis-on-rend-a-nouveau-actif-le-volume-logique">Puis on rend à nouveau actif le volume logique :</h3>
<p><code>lvchange -a y &lt;nom du vg&gt; -&gt; activer le volume logique</code></p>
<p><strong><em>À sa réactivation, le volume remonte automatiquement selon <code>/etc/fstab</code></em></strong></p>
<h3 id="pour-finir-on-redimensionne-le-systeme-de-fichier">Pour finir, on redimensionne le système de fichier :</h3>
<p><strong><em>Attention :</em></strong> La commande de redimensionnement du système de fichier peut changer en fonction de celui-ci.</p>
<p><code>xfs_growfs /dev/mapper/vg001-linshare</code> dans le cas de CentOS.</p>
<p><code>resize2fs /dev/notre_vg</code> dans le cas d'un système de fichier en <strong>ext</strong>.</p>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../../Ansible/2023-11-14-savanewiki-plubication/" class="btn btn-neutral float-left" title="Publication de Savanewiki"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../../about/" class="btn btn-neutral float-right" title="About">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../../Ansible/2023-11-14-savanewiki-plubication/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../../about/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,240 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Se connecter en SSH au Synology à l'aide d'une clef asymétrique. - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Se connecter en SSH au Synology \u00e0 l\u0027aide d\u0027une clef asym\u00e9trique.";
var mkdocs_page_input_path = "Synology/2019-09-01-access-synology-with-ssh-asymetrical-key.md";
var mkdocs_page_url = "/Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1 current"><a class="reference internal current" href="./">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#generation-de-la-clef-ssh">Génération de la clef SSH.</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#transfert-de-la-clef-sur-le-synology">Transfert de la clef sur le Synology.</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#modification-de-la-configuration-de-sshd">Modification de la configuration de sshd</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#le-serveur-ssh">Le serveur ssh.</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#redemarrage-du-service-sshd-depuis-linterface-dsm">Redémarrage du service sshd depuis l'interface DSM.</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Synology</li>
<li class="breadcrumb-item active">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="se-connecter-en-ssh-au-synology-a-laide-dune-clef-asymetrique">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</h1>
<h2 id="generation-de-la-clef-ssh">Génération de la clef SSH.</h2>
<ul>
<li>On génère la clef :</li>
</ul>
<pre><code class="language-bash">ssh-keygen -o -b 521 -t ecdsa -C &quot;mon login que je n'ai plus envie de saisir&quot;
</code></pre>
<ul>
<li><code>-t ecdsa</code> pour l'agorithme de signature numérique basé sur une courbe elliptique (Elliptic Curve Digital Signature Algorithm)</li>
<li><code>-b 521</code> pour le nombre de bits.</li>
<li>
<p><code>-C "quelquechose"</code> pour savoir à quoi sert cette clef. Généralement on y met le nom d'utilisateur lié ou une adresse courriel.</p>
</li>
<li>
<p>Quand on exécute la commande :</p>
</li>
</ul>
<pre><code class="language-bash"># Generating public/private ecdsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_ecdsa): /home/user/.ssh/syno_key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
# Your identification has been saved in /home/user/.ssh/syno_key
# Your public key has been saved in /home/user/.ssh/syno_key.pub
# The key fingerprint is:
# SHA256:IjVg4Tu0/qiLP7MC3TBFluQeEo7jQSWrKu8HgpYLai4 mon login que je n'ai plus envie de saisir
# The key's randomart image is:
#+---[ECDSA 521]---+
#| oo+Bo |
#|.oo*o. |
#|ooo.= o |
#|o.++ = . |
#|oo.+* . S |
#|*oo..o . |
#|B.... |
#|E=o .o |
#|==BB. . |
#+----[SHA256]-----+
</code></pre>
<p>Ce qu'il est bon de faire. C'est de tout de suite sauvegarder le couple de clef. La privée surtout. Avoir défini un mot de passe sur la clef permet d'augmenter son niveau de protection. Il faut se souvenir du mot de passe, bien entendu.</p>
<h2 id="transfert-de-la-clef-sur-le-synology">Transfert de la clef sur le Synology.</h2>
<ul>
<li>Ça tombe bien. Il existe aussi une commande pour ça.</li>
</ul>
<pre><code class="language-bash">ssh-copy-id -i /home/user/.ssh/syno_key.pub mon-login@mon-syno
</code></pre>
<ul>
<li>
<p>On copie bien la clef publique, hein ! La clef privée est, et doit, restée privée bien au chaud.</p>
</li>
<li>
<p>Particularité du Synology, il stocke la clef à un endroit pas commun :</p>
</li>
</ul>
<pre><code class="language-bash">/var/services/homes/mon-login/.ssh/authorized_keys
</code></pre>
<ul>
<li>Si on veut impressionner, il y a possiblité de transférer la clef de la manière suivante :</li>
</ul>
<pre><code class="language-bash">ssh mon-login@mon-syno &quot;/bin/cat &gt;&gt; /var/services/homes/mon-login/.ssh/authorized_keys&quot; &lt; /home/user/.ssh/syno_key.pub
</code></pre>
<ul>
<li>Vérifier les droits des fichiers :</li>
<li><code>sudo -i</code></li>
<li><code>chmod 711 /var/services/homes/mon-login</code> (755 à l'origine)</li>
<li><code>chmod 700 /var/services/homes/mon-login/.ssh</code> (700 à l'origine)</li>
<li><code>chmod 600 /var/services/homes/mon-login/.ssh/authorized_keys</code> (644 à l'origine)</li>
</ul>
<h2 id="modification-de-la-configuration-de-sshd">Modification de la configuration de sshd</h2>
<h3 id="le-serveur-ssh">Le serveur ssh.</h3>
<p><code>vi /etc/ssh/sshd_config</code>
- Les trois lignes suivantes sont importantes :</p>
<pre><code class="language-bash">RSAAuthentication yes
PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
</code></pre>
<h3 id="redemarrage-du-service-sshd-depuis-linterface-dsm">Redémarrage du service sshd depuis l'interface DSM.</h3>
<p><img alt="Synology control pannel. Where to stop and start sshd service." src="../sshd_restart.png" /></p>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../2024-02-29-customized-dyndns-for-synology/" class="btn btn-neutral float-left" title="Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../2019-12-16-wildcard-lets-encrypt-certificate/" class="btn btn-neutral float-right" title="Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../2024-02-29-customized-dyndns-for-synology/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../2019-12-16-wildcard-lets-encrypt-certificate/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,223 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Synology/2019-12-16-wildcard-lets-encrypt-certificate/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt. - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "G\u00e9n\u00e9rer et mettre \u00e0 jour automatiquement un certificat \"wildcard\" let\u0027s encrypt.";
var mkdocs_page_input_path = "Synology/2019-12-16-wildcard-lets-encrypt-certificate.md";
var mkdocs_page_url = "/Synology/2019-12-16-wildcard-lets-encrypt-certificate/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1 current"><a class="reference internal current" href="./">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#installation-de-acmesh">Installation de acme.sh</a>
</li>
<li class="toctree-l2"><a class="reference internal" href="#mise-a-jour-automatique-du-certificat">Mise à jour automatique du certificat</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#chez-gandi">Chez Gandi</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#le-script-de-mise-a-jour">Le script de mise à jour</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#chez-infomaniak">Chez infomaniak</a>
</li>
<li class="toctree-l3"><a class="reference internal" href="#la-conf-dans-dsm-dans-le-planificateur-de-taches">La conf dans DSM dans le planificateur de tâches</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Synology</li>
<li class="breadcrumb-item active">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="generer-et-mettre-a-jour-automatiquement-un-certificat-wildcard-lets-encrypt">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</h1>
<h2 id="installation-de-acmesh">Installation de acme.sh</h2>
<pre><code class="language-bash"># 1 - Being root
SYNOPATH=&quot;/volume1/something&quot;
cd $SYNOPATH
git clone https://github.com/acmesh-official/acme.sh.git
./acme.sh/acme.sh --install --nocron --home $SYNOPATH/acme.sh/.acme.sh --accountemail &quot;admin@savaneprod.fr&quot;
</code></pre>
<p>Sur DSM, les certificats se trouvent dans <code>/usr/syno/etc/certificate/_archive/</code>.</p>
<h2 id="mise-a-jour-automatique-du-certificat">Mise à jour automatique du certificat</h2>
<h3 id="chez-gandi">Chez Gandi</h3>
<p>Utilsation de l'API Gandi : <a href="https://github.com/acmesh-official/acme.sh/wiki/dnsapi#18-use-gandi-livedns-api">https://github.com/acmesh-official/acme.sh/wiki/dnsapi#18-use-gandi-livedns-api</a></p>
<h3 id="le-script-de-mise-a-jour">Le script de mise à jour</h3>
<pre><code class="language-bash">SYNOPATH=&quot;/volume1/something&quot;
API=&quot;dns_gandi_livedns&quot;
jour=$(date +%Y-%m-%d)
file='$SYNOPATH/Certificats/'$jour'.log'
HOME_orig=$HOME
HOME=&quot;$SYNOPATH/Certificats/.acme.sh&quot;
export GANDI_LIVEDNS_KEY=&quot;la clef récupérée chez Gandi&quot;
export SYNO_Certificate=&quot;savaneprod.fr cert&quot;
export SYNO_Create=0
export SYNO_Username=&quot;admin_c_pas_top&quot;
export SYNO_Password=&quot;Un mdp de ouf&quot;
echo &quot;*********************************************&quot; 2&gt;&amp;1 | tee -a $file
echo &quot; Mise à jour du certificat *.savaneprod.fr&quot; 2&gt;&amp;1 | tee -a $file
echo &quot;*********************************************&quot; 2&gt;&amp;1 | tee -a $file
bash $SYNOPATH/Certificats/acme.sh/acme.sh --home $HOME --renew -d savaneprod.fr -d '*.savaneprod.fr' --dns $API --force --log 2&gt;&amp;1 | tee -a $file
bash $SYNOPATH/Certificats/acme.sh/acme.sh --home $HOME -d savaneprod.fr -d &quot;*.savaneprod.fr&quot; --deploy --deploy-hook synology_dsm --log 2&gt;&amp;1 | tee -a $file
echo &quot;---------------------------------&quot; 2&gt;&amp;1 | tee -a $file
echo &quot; Fin du script de mise à jour.&quot; 2&gt;&amp;1 | tee -a $file
echo &quot;*********************************&quot; 2&gt;&amp;1 | tee -a $file
</code></pre>
<h3 id="chez-infomaniak">Chez infomaniak</h3>
<ul>
<li>Utilisation de l'API infomaniak : <a href="https://github.com/acmesh-official/acme.sh/wiki/dnsapi2#dns_infomaniak">https://github.com/acmesh-official/acme.sh/wiki/dnsapi2#dns_infomaniak</a></li>
<li>Création d'un token d'API pour la gestion des entrées DNS :
Depuis la page d'accueil. Aller dans "Utilisateur et profil", "Mon profil", "Développeur" et "Tokens API".</li>
</ul>
<p><img alt="Création d'un token d'API pour gérer les entrées DNS" src="../infomaniak_API_token.png" />
* On peut alors modifier le script avec les valeurs suivantes :</p>
<pre><code class="language-bash">API=&quot;dns_infomaniak_add&quot;
export INFOMANIAK_API_TOKEN=&quot;mon_t0k3n_9uil_e2t_grand_et_b1en_utile&quot;
</code></pre>
<p>Il faut le sauvegarder en lieu sûr, car une fois créé il ne sera plus possible de le consulter.</p>
<h3 id="la-conf-dans-dsm-dans-le-planificateur-de-taches">La conf dans DSM dans le planificateur de tâches</h3>
<p><img alt="Planificateur de tâche, onglet &quot;General&quot;" src="../task_general-tab.png" /></p>
<p>J'ai finalement décidé de renouveler tous les mois parce que le Synology propose tous les 3 mois mais la durée de vie du certificat est légèrement inférieure. Et je n'ai pas cherché à configurer le renouvellement tous les deux mois.
<img alt="Planificateur de tâches, onglet &quot;Schedule&quot;" src="../task_Schedule-tab.png" /></p>
<p>Exécution du script. Il faut bien entendu que le script ait la permission d'éxécution configurée.
<img alt="Planificateur de tâches, onglet &quot;Task Settings&quot;" src="../task_setting-tab.png" /></p>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../2019-09-01-access-synology-with-ssh-asymetrical-key/" class="btn btn-neutral float-left" title="Se connecter en SSH au Synology à l'aide d'une clef asymétrique."><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../2020-12-04-borg-backup/" class="btn btn-neutral float-right" title="Sauvegarde externalisée grâce à Borg Backup">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../2019-09-01-access-synology-with-ssh-asymetrical-key/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../2020-12-04-borg-backup/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,248 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Synology/2020-12-04-borg-backup/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Sauvegarde externalisée grâce à Borg Backup - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Sauvegarde externalis\u00e9e gr\u00e2ce \u00e0 Borg Backup";
var mkdocs_page_input_path = "Synology/2020-12-04-borg-backup.md";
var mkdocs_page_url = "/Synology/2020-12-04-borg-backup/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1 current"><a class="reference internal current" href="./">Sauvegarde externalisée grâce à Borg Backup</a>
<ul class="current">
<li class="toctree-l2"><a class="reference internal" href="#installation-de-borg-sur-le-synology">Installation de Borg sur le Synology</a>
<ul>
<li class="toctree-l3"><a class="reference internal" href="#le-depot-de-synocommunity">Le dépot de Synocommunity</a>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#script-de-sauvegarde-avec-borg">Script de sauvegarde avec Borg</a>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Synology</li>
<li class="breadcrumb-item active">Sauvegarde externalisée grâce à Borg Backup</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="la-sauvegarde-de-savanecloudfr">La sauvegarde de savanecloud.fr</h1>
<p>J'ai découvert "Borg" lors du stage concluant ma formation de reconversion professionnelle. L'outil est simple, efficace, disponible sur Synology DSM et il existe des fournisseurs de services spécialisés chez lesquels, on peut externaliser nos sauvegardes.
Mais me direz-vous pourquoi externaliser des sauvegardes ? Beh ouais, avec un NAS en RAID 1 j'ai peu de risque de perdre mes données.
Effectivement. Mais le risque existe. Matérialisé par un cambriolage ou une destruction malencontreuse dudit NAS. Bref. Un jour j'ai eu peur et j'ai pris au sérieux la sauvegarde en dehors du cadre professionnel. Et bien entendu, laisser faire le boulot par Google, Dropbox, feu Hubic ou Microsoft ne me plaisais pas beaucoup.</p>
<ul>
<li>Borg backup : https://github.com/borgbackup/borg/</li>
<li>BorgBase : https://www.borgbase.com</li>
</ul>
<h2 id="installation-de-borg-sur-le-synology">Installation de Borg sur le Synology</h2>
<h3 id="le-depot-de-synocommunity">Le dépot de Synocommunity</h3>
<p>Le paquet n'est pas disponible par défaut dans le dépôt ("repository", dire "ripo" pour les franglophones) de DSM. Pour l'obtenir, il faut ajouter un dépôt depuis les paramètres du gestionnaire de paquets de DSM. Le dépôt que j'utilise est celui de <a href="https://synocommunity.com/">SynoCommunity</a>.
<img alt="Ajout d'un dépôt dans le gestionnaire de paquets de DSM." src="../borg_synocommunity.png" />
Ensuite il suffit de raffraîchir la liste des paquets disponibles et Borg Apparaît. Vous noterez en bas que Borg nécessite Python 3.11, cette dépendance est aussi à installer depuis le dépôt de SynoCommunity.
<img alt="Fiche descriptive du paquet Borg" src="../borg_package.png" /></p>
<h2 id="script-de-sauvegarde-avec-borg">Script de sauvegarde avec Borg</h2>
<pre><code class="language-bash">#!/bin/bash
# borg init --encryption=keyfile-blake2 /volume1/Backup/borgrepolzma/
#Formatage et mise en page
stars='***************************************************************************'
# Pour le calcul d'exécutoin du script
start_time=$(date +%s)
log_file='/volume1/Backup/logs/'$(date +%Y-%m-%d--%Hh%M)'_borgbase.log'
echo $(date +%d\ %b\ %Y\ %H:%M:%S) 2&gt;&amp;1 | tee -a $log_file
# Définition des variables d'environnement pour simplifier les commandes
# export BORG_RSH=&lt;clef privée pour sauvegarder sur le serveur distant&gt;
# export BORG_REPO='borgserver:/borgrepo'
export BORG_REPO='borgserver:borgrepo'
export BORG_CACHE_DIR='&lt;emplacement du cache de Borg&gt;'
# Cron n'a pas de $HOME
export HOME=/root
# Suite l'erreur &quot;Attempting to access a previously unknown unencrypted repository!&quot;
# Apparue le 28/05/2020
export BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes
printf '\n%s\n%s\n%s\n' $stars &quot;Début de la sauvegarde &quot; $stars 2&gt;&amp;1 | tee -a $log_file
# Préparation de la sauvegarde du nextcloud
docker exec -tiu www-data nextcloud_app_1 php occ maintenance:mode --on 2&gt;&amp;1 | tee -a $log_file
sleep 1m 2&gt;&amp;1 | tee -a $log_file
# Dump de la base de données Postgres
docker exec -i nextcloud_db_1 /usr/bin/pg_dump -U nextcloud nextcloud | gzip -9 &gt; /volume1/nextcloud/db_dump.sql.gz 2&gt;&amp;1 | tee -a $log_file
# Restaurer la BDD
# docker exec nextcloud_db_1 pg_restore -U postgres -d nexcloud /backups/db_dump.sql
/usr/local/bin/borg create \
--one-file-system \
--stats \
--compression lz4 \
::{now:%Y-%m-%d--%Hh%M} \
/volume1/dir1 \
/volume1/dir2 \
/volume1/nextcloud \
--exclude /volume1/nextcloud/db \
2&gt;&amp;1 | tee -a $log_file
# ne pas sauvegarder les fichiers du conteneur postgres
#--exclude /volume1/nextcloud/db \
# Fin de la sauvegarde
docker exec -tiu www-data nextcloud_app_1 php occ maintenance:mode --off 2&gt;&amp;1 | tee -a $log_file
printf '\n%s\n%s\n%s\n' $stars &quot;PRUNE&quot; $stars 2&gt;&amp;1 | tee -a $log_file
# Keep 31 end of day, 0 additional end of week archives, and 0 end of month archive
/usr/local/bin/borg prune -v --list --stats --keep-daily=31 --keep-weekly=0 --keep-monthly=0 2&gt;&amp;1 | tee -a $log_file
printf '\n%s\n' '--- Fin de la sauvegarde ---' 2&gt;&amp;1 | tee -a $log_file
printf '\n%s\n%s\n%s\n' $stars &quot;borg info&quot; $stars &gt;&gt; $log_file
# Pour le mail envoyé en fin par le Task Scheduler Synology
/usr/local/bin/borg info borgserver:borgrepo &gt;&gt; $log_file
printf '\n%s\n%s\n%s\n' $stars &quot;...Suppression des logs de plus de 200 jours...&quot; $stars 2&gt;&amp;1 | tee -a $log_file
find /volume1/Backup/logs -mtime +60 -exec rm -f {} \; 2&gt;&amp;1 | tee -a $log_file
timestamp=$(date +%s)
TZ='Europe/Paris' printf '%s\nNous sommes le %(%d %b %Y)T et il est %(%H:%M:%S)T.\n%s\n' $stars $timestamp $timestamp $stars 2&gt;&amp;1 | tee -a $log_file
# Calcul du temps d'exécution du script
end_time=$(date +%s)
exec_time=$(($end_time - $start_time))
printf '\n%s\n' $stars
TZ='Europe/Paris' printf &quot;L'exécution du script a duré %(%Hh%Mm%Ss)T\n&quot; $exec_time 2&gt;&amp;1 | tee -a $log_file
</code></pre>
<p>Le service qui me permet d'externaliser facilement les sauvegardes, est <a href="https://borgbase.com">BorgBase</a>.</p>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../2019-12-16-wildcard-lets-encrypt-certificate/" class="btn btn-neutral float-left" title="Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt."><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../2021-02-06-restore-time-machine-backup/" class="btn btn-neutral float-right" title="Restaurer un mac depuis une sauvegarde Time machine.">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../2019-12-16-wildcard-lets-encrypt-certificate/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../2021-02-06-restore-time-machine-backup/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,176 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Synology/2021-02-06-restore-time-machine-backup/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Restaurer un mac depuis une sauvegarde Time machine. - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Restaurer un mac depuis une sauvegarde Time machine.";
var mkdocs_page_input_path = "Synology/2021-02-06-restore-time-machine-backup.md";
var mkdocs_page_url = "/Synology/2021-02-06-restore-time-machine-backup/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1 current"><a class="reference internal current" href="./">Restaurer un mac depuis une sauvegarde Time machine.</a>
<ul class="current">
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Synology</li>
<li class="breadcrumb-item active">Restaurer un mac depuis une sauvegarde Time machine.</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="restaurer-un-mac-depuis-une-sauvegarde-time-machine">Restaurer un mac depuis une sauvegarde Time machine.</h1>
<ul>
<li>Accéder au mode de récupération de OS X en restant appuyer sur <code>Commmand +R</code> quand le Mac redémarre et que l'écran est gris.</li>
<li>Quand la fenêtre avec les options apparaît, sélectionner "Utilities" dans la barre de menu et lancer un "Terminal".</li>
<li>Dans le terminal utiliser les commandes suivantes :</li>
</ul>
<pre><code class="language-bash">cd /Volumes
mkdir syno
</code></pre>
<ul>
<li>On monte la sauvegarde Time Machine depuis le partage du NAS Synology en saisissant la commande suivante :</li>
</ul>
<pre><code class="language-bash">mount -t afp afp://timemachine:motdepasse@Savaneprod.local/Time\ Machine /Volumes/syno
</code></pre>
<p>Il est possible que l'adresse IP fonctionne mieux.
- Vérification que le montage a fonctionné.</p>
<pre><code class="language-bash">ls -la syno/
</code></pre>
<ul>
<li>Maintenant on a besoin de monter "sparsebundle" en utilisant <code>hdid</code> (hard drive image driver)</li>
</ul>
<pre><code class="language-bash">hdid nameOfThebundle.backupbundle
</code></pre>
<ul>
<li>Saisir le mot de passe si demandé (si le disque ou la sauvegarde était chiffré.e).</li>
<li>Maintenant quitter le terminal et sélectionner "Restore" depuis Time machine.</li>
<li>La sauvegarde présente sur le NAS doit maintenant être visible. Suivre les instructions données à l'écran.</li>
</ul>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../2020-12-04-borg-backup/" class="btn btn-neutral float-left" title="Sauvegarde externalisée grâce à Borg Backup"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/" class="btn btn-neutral float-right" title="Mise à jour de Nextcloud docker par Ansible">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../2020-12-04-borg-backup/" style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

View File

@@ -1,159 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Synology/2024-02-29-customized-dyndns-for-synology/" />
<link rel="shortcut icon" href="../../img/favicon.ico" />
<title>Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak - Savanewiki</title>
<link rel="stylesheet" href="../../css/theme.css" />
<link rel="stylesheet" href="../../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Mise \u00e0 jour automatique de l\u0027adresse IP publique dans l\u0027entr\u00e9e DNS A chez infomaniak";
var mkdocs_page_input_path = "Synology/2024-02-29-customized-dyndns-for-synology.md";
var mkdocs_page_url = "/Synology/2024-02-29-customized-dyndns-for-synology/";
</script>
<!--[if lt IE 9]>
<script src="../../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="./">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
<ul class="current">
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../.." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item">Synology</li>
<li class="breadcrumb-item active">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="cote-infomaniak">Côté infomaniak</h1>
<ul>
<li>Depuis la page d'accueil.</li>
<li>Domaine =&gt; savaneprod.fr =&gt; Dynamic DNS =&gt; Ajouter un Dynamic DNS =&gt;</li>
<li>Créer un identifiant avec un mot de passe digne de ce nom. Sauvegarder la tout.</li>
</ul>
<h1 id="cote-synology">Côté Synology</h1>
<p>On utilise <strong>synology-ddns-gandi</strong> à installer au préalable : <a href="https://github.com/EmixamPP/synology-ddns-gandi">https://github.com/EmixamPP/synology-ddns-gandi</a>
<img alt="Configuration de DynDNS sur le Synology" src="../dyndns_configuration.png" />
Query URL = <code>https://infomaniak.com/nic/update?hostname=__HOSTNAME__&amp;myip=__MYIP__</code></p>
<p>Utliser les identifiants créés depuis l'interface infomaniak.</p>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../.." class="btn btn-neutral float-left" title="Home"><span class="icon icon-circle-arrow-left"></span> Previous</a>
<a href="../2019-09-01-access-synology-with-ssh-asymetrical-key/" class="btn btn-neutral float-right" title="Se connecter en SSH au Synology à l'aide d'une clef asymétrique.">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../.." style="color: #fcfcfc">&laquo; Previous</a></span>
<span><a href="../2019-09-01-access-synology-with-ssh-asymetrical-key/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="../../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "../..";</script>
<script src="../../js/theme_extra.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

View File

@@ -1,145 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/Synology/" />
<link rel="shortcut icon" href="../img/favicon.ico" />
<title>Liens relatifs à l'utilisation de Synology DSM. - Savanewiki</title>
<link rel="stylesheet" href="../css/theme.css" />
<link rel="stylesheet" href="../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Liens relatifs \u00e0 l\u0027utilisation de Synology DSM.";
var mkdocs_page_input_path = "Synology/index.md";
var mkdocs_page_url = "/Synology/";
</script>
<!--[if lt IE 9]>
<script src="../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href=".." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href=".." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item active">Liens relatifs à l'utilisation de Synology DSM.</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="liens-relatifs-a-lutilisation-de-synology-dsm">Liens relatifs à l'utilisation de Synology DSM.</h1>
<ul>
<li>Utiliser Dynamic DNS a.k.a DynDNS ou DDNS avec Gandi.net : <a href="https://github.com/EmixamPP/synology-ddns-gandi">https://github.com/EmixamPP/synology-ddns-gandi</a><ul>
<li>Nécessaire lorsque le fournisseur d'accès par lequel le Synology est connecté à Internet ne propose pas d'adresse IP publique fixe. Et lorsque le domaine est géré par Gandi.net ou infomaniak.</li>
<li>DSM implémente par défaut ce service pour OVH.</li>
</ul>
</li>
</ul>
</div>
</div><footer>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
</span>
</div>
<script src="../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "..";</script>
<script src="../js/theme_extra.js"></script>
<script src="../js/theme.js"></script>
<script src="../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -1,158 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="https://docs.savaneprod.fr/about/" />
<link rel="shortcut icon" href="../img/favicon.ico" />
<title>About - Savanewiki</title>
<link rel="stylesheet" href="../css/theme.css" />
<link rel="stylesheet" href="../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "About";
var mkdocs_page_input_path = "about.md";
var mkdocs_page_url = "/about/";
</script>
<!--[if lt IE 9]>
<script src="../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href=".." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="..">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Synology/2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Synology/2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Synology/2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Synology/2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="../Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="./">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="..">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href=".." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item active">About</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<p>Je suis joignable à <code>savanewiki.jf[at]savaneprod.fr</code>.
Clef PGP: </p>
<pre><code class="language-base64">-----BEGIN PGP PUBLIC KEY BLOCK-----
xjMEZQNvlxYJKwYBBAHaRw8BAQdADoAhdyJQN7eaezxEuPRgAdwDrTllPt1iSstm
FTPsoDDNFUpGIDxqZkBzYXZhbmVwcm9kLmZyPsKJBBMWCAAxFiEEQiGqSUxYk8/C
tTXN28NxXcaN35UFAmUDb5cCGwMECwkIBwUVCAkKCwUWAgMBAAAKCRDbw3Fdxo3f
lWfLAP4sefmkn1kFT3mS+bgoCyZqsDyHSIt/CRx1TMLxm9GJTAEA1ZbmYj2S1m4I
ul91EH9PMCH6cXOw9CTjwW2ehm5f8AnOOARlA2+XEgorBgEEAZdVAQUBAQdAXkK7
YF1FUE93x+RtLhnsZ7UTqXv8197M7LoECRluriEDAQgHwngEGBYIACAWIQRCIapJ
TFiTz8K1Nc3bw3Fdxo3flQUCZQNvlwIbDAAKCRDbw3Fdxo3flQgjAP4qdGIlGhH6
MdiKnExcYsqo6JAJjaBU+aHFlonnTzvHmAEAil+lpNdm5oxQ/vGrHHbdXP9CMQSn
wQnRURmbliaQWgk=
=ob9+
-----END PGP PUBLIC KEY BLOCK-----
</code></pre>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../Linux/2019-07-09-manipulations-LVM/" class="btn btn-neutral float-left" title="Manipulations LVM"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="../Linux/2019-07-09-manipulations-LVM/" style="color: #fcfcfc">&laquo; Previous</a></span>
</span>
</div>
<script src="../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "..";</script>
<script src="../js/theme_extra.js"></script>
<script src="../js/theme.js"></script>
<script src="../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

Binary file not shown.

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -1,191 +0,0 @@
/*
* Wrap inline code samples otherwise they shoot of the side and
* can't be read at all.
*
* https://github.com/mkdocs/mkdocs/issues/313
* https://github.com/mkdocs/mkdocs/issues/233
* https://github.com/mkdocs/mkdocs/issues/834
*/
.rst-content code {
white-space: pre-wrap;
word-wrap: break-word;
padding: 2px 5px;
}
/**
* Make code blocks display as blocks and give them the appropriate
* font size and padding.
*
* https://github.com/mkdocs/mkdocs/issues/855
* https://github.com/mkdocs/mkdocs/issues/834
* https://github.com/mkdocs/mkdocs/issues/233
*/
.rst-content pre code {
white-space: pre;
word-wrap: normal;
display: block;
padding: 12px;
font-size: 12px;
}
/**
* Fix code colors
*
* https://github.com/mkdocs/mkdocs/issues/2027
*/
.rst-content code {
color: #E74C3C;
}
.rst-content pre code {
color: #000;
background: #f8f8f8;
}
/*
* Fix link colors when the link text is inline code.
*
* https://github.com/mkdocs/mkdocs/issues/718
*/
a code {
color: #2980B9;
}
a:hover code {
color: #3091d1;
}
a:visited code {
color: #9B59B6;
}
/*
* The CSS classes from highlight.js seem to clash with the
* ReadTheDocs theme causing some code to be incorrectly made
* bold and italic.
*
* https://github.com/mkdocs/mkdocs/issues/411
*/
pre .cs, pre .c {
font-weight: inherit;
font-style: inherit;
}
/*
* Fix some issues with the theme and non-highlighted code
* samples. Without and highlighting styles attached the
* formatting is broken.
*
* https://github.com/mkdocs/mkdocs/issues/319
*/
.rst-content .no-highlight {
display: block;
padding: 0.5em;
color: #333;
}
/*
* Additions specific to the search functionality provided by MkDocs
*/
.search-results {
margin-top: 23px;
}
.search-results article {
border-top: 1px solid #E1E4E5;
padding-top: 24px;
}
.search-results article:first-child {
border-top: none;
}
form .search-query {
width: 100%;
border-radius: 50px;
padding: 6px 12px; /* csslint allow: box-model */
border-color: #D1D4D5;
}
/*
* Improve inline code blocks within admonitions.
*
* https://github.com/mkdocs/mkdocs/issues/656
*/
.rst-content .admonition code {
color: #404040;
border: 1px solid #c7c9cb;
border: 1px solid rgba(0, 0, 0, 0.2);
background: #f8fbfd;
background: rgba(255, 255, 255, 0.7);
}
/*
* Account for wide tables which go off the side.
* Override borders to avoid weirdness on narrow tables.
*
* https://github.com/mkdocs/mkdocs/issues/834
* https://github.com/mkdocs/mkdocs/pull/1034
*/
.rst-content .section .docutils {
width: 100%;
overflow: auto;
display: block;
border: none;
}
td, th {
border: 1px solid #e1e4e5 !important; /* csslint allow: important */
border-collapse: collapse;
}
/*
* Without the following amendments, the navigation in the theme will be
* slightly cut off. This is due to the fact that the .wy-nav-side has a
* padding-bottom of 2em, which must not necessarily align with the font-size of
* 90 % on the .rst-current-version container, combined with the padding of 12px
* above and below. These amendments fix this in two steps: First, make sure the
* .rst-current-version container has a fixed height of 40px, achieved using
* line-height, and then applying a padding-bottom of 40px to this container. In
* a second step, the items within that container are re-aligned using flexbox.
*
* https://github.com/mkdocs/mkdocs/issues/2012
*/
.wy-nav-side {
padding-bottom: 40px;
}
/*
* The second step of above amendment: Here we make sure the items are aligned
* correctly within the .rst-current-version container. Using flexbox, we
* achieve it in such a way that it will look like the following:
*
* [No repo_name]
* Next >> // On the first page
* << Previous Next >> // On all subsequent pages
*
* [With repo_name]
* <repo_name> Next >> // On the first page
* <repo_name> << Previous Next >> // On all subsequent pages
*
* https://github.com/mkdocs/mkdocs/issues/2012
*/
.rst-versions .rst-current-version {
padding: 0 12px;
display: flex;
font-size: initial;
justify-content: space-between;
align-items: center;
line-height: 40px;
}
/*
* Please note that this amendment also involves removing certain inline-styles
* from the file ./mkdocs/themes/readthedocs/versions.html.
*
* https://github.com/mkdocs/mkdocs/issues/2012
*/
.rst-current-version span {
flex: 1;
text-align: center;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1,161 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="description" content="None" /><link rel="canonical" href="https://docs.savaneprod.fr/" />
<link rel="shortcut icon" href="img/favicon.ico" />
<title>Savanewiki</title>
<link rel="stylesheet" href="css/theme.css" />
<link rel="stylesheet" href="css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<script>
// Current page data
var mkdocs_page_name = "Home";
var mkdocs_page_input_path = "index.md";
var mkdocs_page_url = "/";
</script>
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="./search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href=".">Home</a>
<ul class="current">
</ul>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="Synology/2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="Synology/2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="Synology/2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="Synology/2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href=".">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item active">Home</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="savanewiki-le-wiki-de-savaneprodfr">Savanewiki, le wiki de savaneprod.fr</h1>
<p>savaneprod.fr a été créé par curiosité d'abord. Et puis pérennisé pour garder une souveraineté sur la vie numérique de la famille qui l'utilise : </p>
<ul>
<li>Un Synology sur lequel est installé docker et <a href="https://nextcloud.com/fr/">Nextcloud</a> dedans.</li>
<li>Un domaine enregistré chez infomaniak.</li>
<li>Un serveur Proxmox, pour essayer des choses.</li>
<li>Certificats TLS enregistrés chez <a href="https://letsencrypt.org/">Let's encrypt</a>.</li>
<li>Des courriels gérés par <a href="https://migadu.com/">Migadu</a>.</li>
<li>Deux PC sous <a href="https://pop.system76.com/">pop!_os</a>.</li>
<li>Un Mac avec un Time Machine qui sauvegarde sur le Synology.</li>
<li>Des sauvegardes externalisées grâce à <a href="https://borgbackup.readthedocs.io">Borg Backup</a> et <a href="https://www.borgbase.com/">BorgBase</a>.</li>
</ul>
</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="Synology/2024-02-29-customized-dyndns-for-synology/" class="btn btn-neutral float-right" title="Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak">Next <span class="icon icon-circle-arrow-right"></span></a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span><a href="Synology/2024-02-29-customized-dyndns-for-synology/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
<script src="js/jquery-3.6.0.min.js"></script>
<script>var base_url = ".";</script>
<script src="js/theme_extra.js"></script>
<script src="js/theme.js"></script>
<script src="search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>
<!--
MkDocs version : 1.5.3
Build Date UTC : 2024-04-27 21:33:07.448571+00:00
-->

View File

@@ -1,4 +0,0 @@
/**
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +0,0 @@
/*
* Assign 'docutils' class to tables so styling and
* JavaScript behavior is applied.
*
* https://github.com/mkdocs/mkdocs/issues/2028
*/
$('div.rst-content table').addClass('docutils');

View File

@@ -1,141 +0,0 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="./img/favicon.ico" />
<title>Savanewiki</title>
<link rel="stylesheet" href="./css/theme.css" />
<link rel="stylesheet" href="./css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />
<!--[if lt IE 9]>
<script src="./js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="./." class="icon icon-home"> Savanewiki
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="./search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="./.">Home</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Synology</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="./Synology/2024-02-29-customized-dyndns-for-synology/">Mise à jour automatique de l'adresse IP publique dans l'entrée DNS A chez infomaniak</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="./Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/">Se connecter en SSH au Synology à l'aide d'une clef asymétrique.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="./Synology/2019-12-16-wildcard-lets-encrypt-certificate/">Générer et mettre à jour automatiquement un certificat "wildcard" let's encrypt.</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="./Synology/2020-12-04-borg-backup/">Sauvegarde externalisée grâce à Borg Backup</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="./Synology/2021-02-06-restore-time-machine-backup/">Restaurer un mac depuis une sauvegarde Time machine.</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Ansible</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="./Ansible/2023-10-01-nextcloud-docker-update-from-ansible/">Mise à jour de Nextcloud docker par Ansible</a>
</li>
<li class="toctree-l1"><a class="reference internal" href="./Ansible/2023-11-14-savanewiki-plubication/">Publication de Savanewiki</a>
</li>
</ul>
<p class="caption"><span class="caption-text">Linux</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="./Linux/2019-07-09-manipulations-LVM/">Manipulations LVM</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="./about/">About</a>
</li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="./.">Savanewiki</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="./." class="icon icon-home" aria-label="Docs"></a></li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">
<h1 id="search">Search Results</h1>
<form id="content_search" action="search.html">
<span role="status" aria-live="polite" class="ui-helper-hidden-accessible"></span>
<input name="q" id="mkdocs-search-query" type="text" class="search_input search-query ui-autocomplete-input" placeholder="Search the Docs" aria-label="Search the Docs" autocomplete="off" autofocus title="Type search term here">
</form>
<div id="mkdocs-search-results" class="search-results" data-no-results-text="No results found">
Searching...
</div>
</div>
</div><footer>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">
</span>
</div>
<script src="./js/jquery-3.6.0.min.js"></script>
<script>var base_url = ".";</script>
<script src="./js/theme_extra.js"></script>
<script src="./js/theme.js"></script>
<script src="./search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,109 +0,0 @@
function getSearchTermFromLocation() {
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == 'q') {
return decodeURIComponent(sParameterName[1].replace(/\+/g, '%20'));
}
}
}
function joinUrl (base, path) {
if (path.substring(0, 1) === "/") {
// path starts with `/`. Thus it is absolute.
return path;
}
if (base.substring(base.length-1) === "/") {
// base ends with `/`
return base + path;
}
return base + "/" + path;
}
function escapeHtml (value) {
return value.replace(/&/g, '&amp;')
.replace(/"/g, '&quot;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
}
function formatResult (location, title, summary) {
return '<article><h3><a href="' + joinUrl(base_url, location) + '">'+ escapeHtml(title) + '</a></h3><p>' + escapeHtml(summary) +'</p></article>';
}
function displayResults (results) {
var search_results = document.getElementById("mkdocs-search-results");
while (search_results.firstChild) {
search_results.removeChild(search_results.firstChild);
}
if (results.length > 0){
for (var i=0; i < results.length; i++){
var result = results[i];
var html = formatResult(result.location, result.title, result.summary);
search_results.insertAdjacentHTML('beforeend', html);
}
} else {
var noResultsText = search_results.getAttribute('data-no-results-text');
if (!noResultsText) {
noResultsText = "No results found";
}
search_results.insertAdjacentHTML('beforeend', '<p>' + noResultsText + '</p>');
}
}
function doSearch () {
var query = document.getElementById('mkdocs-search-query').value;
if (query.length > min_search_length) {
if (!window.Worker) {
displayResults(search(query));
} else {
searchWorker.postMessage({query: query});
}
} else {
// Clear results for short queries
displayResults([]);
}
}
function initSearch () {
var search_input = document.getElementById('mkdocs-search-query');
if (search_input) {
search_input.addEventListener("keyup", doSearch);
}
var term = getSearchTermFromLocation();
if (term) {
search_input.value = term;
doSearch();
}
}
function onWorkerMessage (e) {
if (e.data.allowSearch) {
initSearch();
} else if (e.data.results) {
var results = e.data.results;
displayResults(results);
} else if (e.data.config) {
min_search_length = e.data.config.min_search_length-1;
}
}
if (!window.Worker) {
console.log('Web Worker API not supported');
// load index in main thread
$.getScript(joinUrl(base_url, "search/worker.js")).done(function () {
console.log('Loaded worker');
init();
window.postMessage = function (msg) {
onWorkerMessage({data: msg});
};
}).fail(function (jqxhr, settings, exception) {
console.error('Could not load worker.js');
});
} else {
// Wrap search in a web worker
var searchWorker = new Worker(joinUrl(base_url, "search/worker.js"));
searchWorker.postMessage({init: true});
searchWorker.onmessage = onWorkerMessage;
}

File diff suppressed because one or more lines are too long

View File

@@ -1,133 +0,0 @@
var base_path = 'function' === typeof importScripts ? '.' : '/search/';
var allowSearch = false;
var index;
var documents = {};
var lang = ['en'];
var data;
function getScript(script, callback) {
console.log('Loading script: ' + script);
$.getScript(base_path + script).done(function () {
callback();
}).fail(function (jqxhr, settings, exception) {
console.log('Error: ' + exception);
});
}
function getScriptsInOrder(scripts, callback) {
if (scripts.length === 0) {
callback();
return;
}
getScript(scripts[0], function() {
getScriptsInOrder(scripts.slice(1), callback);
});
}
function loadScripts(urls, callback) {
if( 'function' === typeof importScripts ) {
importScripts.apply(null, urls);
callback();
} else {
getScriptsInOrder(urls, callback);
}
}
function onJSONLoaded () {
data = JSON.parse(this.responseText);
var scriptsToLoad = ['lunr.js'];
if (data.config && data.config.lang && data.config.lang.length) {
lang = data.config.lang;
}
if (lang.length > 1 || lang[0] !== "en") {
scriptsToLoad.push('lunr.stemmer.support.js');
if (lang.length > 1) {
scriptsToLoad.push('lunr.multi.js');
}
if (lang.includes("ja") || lang.includes("jp")) {
scriptsToLoad.push('tinyseg.js');
}
for (var i=0; i < lang.length; i++) {
if (lang[i] != 'en') {
scriptsToLoad.push(['lunr', lang[i], 'js'].join('.'));
}
}
}
loadScripts(scriptsToLoad, onScriptsLoaded);
}
function onScriptsLoaded () {
console.log('All search scripts loaded, building Lunr index...');
if (data.config && data.config.separator && data.config.separator.length) {
lunr.tokenizer.separator = new RegExp(data.config.separator);
}
if (data.index) {
index = lunr.Index.load(data.index);
data.docs.forEach(function (doc) {
documents[doc.location] = doc;
});
console.log('Lunr pre-built index loaded, search ready');
} else {
index = lunr(function () {
if (lang.length === 1 && lang[0] !== "en" && lunr[lang[0]]) {
this.use(lunr[lang[0]]);
} else if (lang.length > 1) {
this.use(lunr.multiLanguage.apply(null, lang)); // spread operator not supported in all browsers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator#Browser_compatibility
}
this.field('title');
this.field('text');
this.ref('location');
for (var i=0; i < data.docs.length; i++) {
var doc = data.docs[i];
this.add(doc);
documents[doc.location] = doc;
}
});
console.log('Lunr index built, search ready');
}
allowSearch = true;
postMessage({config: data.config});
postMessage({allowSearch: allowSearch});
}
function init () {
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", onJSONLoaded);
var index_path = base_path + '/search_index.json';
if( 'function' === typeof importScripts ){
index_path = 'search_index.json';
}
oReq.open("GET", index_path);
oReq.send();
}
function search (query) {
if (!allowSearch) {
console.error('Assets for search still loading');
return;
}
var resultDocuments = [];
var results = index.search(query);
for (var i=0; i < results.length; i++){
var result = results[i];
doc = documents[result.ref];
doc.summary = doc.text.substring(0, 200);
resultDocuments.push(doc);
}
return resultDocuments;
}
if( 'function' === typeof importScripts ) {
onmessage = function (e) {
if (e.data.init) {
init();
} else if (e.data.query) {
postMessage({ results: search(e.data.query) });
} else {
console.error("Worker - Unrecognized message: " + e);
}
};
}

View File

@@ -1,58 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://docs.savaneprod.fr/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/about/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Ansible/2023-10-01-nextcloud-docker-update-from-ansible/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Ansible/2023-11-14-savanewiki-plubication/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Linux/2019-07-09-manipulations-LVM/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Synology/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Synology/2019-09-01-access-synology-with-ssh-asymetrical-key/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Synology/2019-12-16-wildcard-lets-encrypt-certificate/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Synology/2020-12-04-borg-backup/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Synology/2021-02-06-restore-time-machine-backup/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://docs.savaneprod.fr/Synology/2024-02-29-customized-dyndns-for-synology/</loc>
<lastmod>2024-04-27</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

Binary file not shown.