doc/administration/raketasks/keep_around.md
{{< details >}}
{{< /details >}}
{{< history >}}
{{< /history >}}
gitlab:keep_around:orphaned generates a CSV report of every keep-around reference in the project repository and every database reference to a Git commit.
The CSV report has three columns:
keep for a keep-around reference or usage for a database reference.Pipeline.{{< tabs >}}
{{< tab title="Linux package (Omnibus)" >}}
sudo gitlab-rake gitlab:keep_around:orphaned PROJECT_PATH=project/path FILENAME=/tmp/report.csv
{{< /tab >}}
{{< tab title="Self-compiled (source)" >}}
bundle exec rake gitlab:keep_around:orphaned RAILS_ENV=production PROJECT_PATH=project/path FILENAME=/tmp/report.csv
{{< /tab >}}
{{< /tabs >}}