comparison docs/usage/general.rst @ 7411:977e7aca38b1

cli: convert 'gearbox cleanup-repos' into 'kallithea-cli repo-purge-deleted' Some changes to user-facing text are done.
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Sun, 18 Nov 2018 20:02:17 +0100
parents 2c3d30095d5e
children a3f649baa016
comparison
equal deleted inserted replaced
7410:f10d56cb055c 7411:977e7aca38b1
6 6
7 7
8 Repository deletion 8 Repository deletion
9 ------------------- 9 -------------------
10 10
11 Currently when an admin or owner deletes a repository, Kallithea does 11 When an admin or owner deletes a repository, Kallithea does
12 not physically delete said repository from the filesystem, but instead 12 not physically delete said repository from the filesystem, but instead
13 renames it in a special way so that it is not possible to push, clone 13 renames it in a special way so that it is not possible to push, clone
14 or access the repository. 14 or access the repository.
15 15
16 There is a special command for cleaning up such archived repositories:: 16 There is a special command for cleaning up such archived repositories::
17 17
18 gearbox cleanup-repos --older-than=30d -c my.ini 18 kallithea-cli repo-purge-deleted -c my.ini --older-than=30d
19 19
20 This command scans for archived repositories that are older than 20 This command scans for archived repositories that are older than
21 30 days, displays them, and asks if you want to delete them (unless given 21 30 days, displays them, and asks if you want to delete them (unless given
22 the ``--dont-ask`` flag). If you host a large amount of repositories with 22 the ``--no-ask`` flag). If you host a large amount of repositories with
23 forks that are constantly being deleted, it is recommended that you run this 23 forks that are constantly being deleted, it is recommended that you run this
24 command via crontab. 24 command via crontab.
25 25
26 It is worth noting that even if someone is given administrative access to 26 It is worth noting that even if someone is given administrative access to
27 Kallithea and deletes a repository, you can easily restore such an action by 27 Kallithea and deletes a repository, you can easily restore such an action by