Skip to content

Instantly share code, notes, and snippets.

Avatar

Km camlafit

View GitHub Profile
@camlafit
camlafit / bongo.sh
Last active Mar 11, 2018 — forked from smashew/bongo.sh
Add external tar.gz et and drop collections
View bongo.sh
LOADING=false
usage()
{
cat << EOF
usage: $0 [options] <DBNAME>
OPTIONS:
-h Show this help.
-l Load instead of export
View gist:ea54db873d787949b9aa31788a365d07
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