Skip to content

Instantly share code, notes, and snippets.

View camlafit's full-sized avatar

Km camlafit

View GitHub Profile
@camlafit
camlafit / bongo.sh
Last active March 11, 2018 17:30 — forked from smashew/bongo.sh
Add external tar.gz et and drop collections
LOADING=false
usage()
{
cat << EOF
usage: $0 [options] <DBNAME>
OPTIONS:
-h Show this help.
-l Load instead of export
REPOS_SOURCE=$(find /var/opt/gitea/gitosis/*/{_plugins_,_outils_} -maxdepth 2 -iname *.git)
PROJECT_UID=1
PROJECT_ORG=name_1
for repo_source in $REPOS_SOURCE; do
echo $repo_source
repo_name=$(basename $repo_source .git)
repo_target=$PROJECT_REPO/$PROJECT_ORGA/$repo_name.git