Wiki source code of Kooperation
Version 1.1 by Gregory CAUCHIE on 2026/03/12 10:19
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{box title="**Contents**"}} | ||
| 2 | {{toc/}} | ||
| 3 | {{/box}} | ||
| 4 | |||
| 5 | == Qu'est-ce que Kooperation ? == | ||
| 6 | |||
| 7 | Alternative Google workspace et Microsoft 365. | ||
| 8 | Composée d'un serveur mail (via Mailcow) et d'outils de collaborations (via Nextcloud Hub) | ||
| 9 | |||
| 10 | == Nextcloud == | ||
| 11 | |||
| 12 | === Procédures === | ||
| 13 | |||
| 14 | ==== Récupération de fichiers ==== | ||
| 15 | |||
| 16 | ===== Procédure testée par Grégory ===== | ||
| 17 | |||
| 18 | 1. extract backup | ||
| 19 | |||
| 20 | {{code language="bash"}} | ||
| 21 | sudo BORG_RELOCATED_REPO_ACCESS_IS_OK=yes BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK=yes borg extract ssh://u388430-sub10@u388430-sub10.your-storagebox.de:23/./cooperation.koevoo.tech::2025-05-07T07:25:14 | ||
| 22 | {{/code}} | ||
| 23 | |||
| 24 | 2. su to root and go to targeted user files directory | ||
| 25 | |||
| 26 | {{code language="bash"}}sudo su | ||
| 27 | cd opt/composerize/<cooperation.koevoo.tech>/data/<Gregory>/files/{{/code}} | ||
| 28 | |||
| 29 | 3. list files on restore that doesn't exist in dest folder | ||
| 30 | _nb: let's not replace newest file by older one_ | ||
| 31 | |||
| 32 | ```bash | ||
| 33 | -- | ||
| 34 | ```-- | ||
| 35 | |||
| 36 | 4. move files only if it doesn't exist in dest folder | ||
| 37 | _nb: let's not replace newest file by older one_ | ||
| 38 | |||
| 39 | ```bash | ||
| 40 | rsync --ignore-existing -r --progress . /opt/composerize/<cooperation.koevoo.tech>/data/<Gregory>/files/ | ||
| 41 | ``` | ||
| 42 | |||
| 43 | 5. force file scan update for user to put it into the database | ||
| 44 | |||
| 45 | ```bash | ||
| 46 | docker exec -u www-data -it <koevoo-nextcloud>-app-1 php occ files:scan <Gregory> | ||
| 47 | ``` | ||
| 48 | |||
| 49 | ===== Procédure testée par Nawel ===== |