How to archive all repositiries

We have just installed gitlab on Ubuntu 18. Now we’d like to archive all repository in normal git bare repository format. Previously we was have Ubuntu 12 with a very old Gitlab but this task could be very simple on our Ubuntu 12 just archiving /home/git/repositories to a tar.gz however with our new gitlab installation I’m not sure how to do this.