Build 13.0.3

This commit is contained in:
Eduardo Fraga
2023-08-23 07:33:42 -03:00
commit 95a1b068b1
70 changed files with 5420 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Author: Sarav AK
# Email: hello@gritfy.com
# Created Date: 19 Aug 2021
# Update by Eduardo Fraga <eduardo@eftech.com.br> at 27 Dec 2022
#
#
if [ -z $USERNAME ] || [ -z $TOKEN ] || [ -z $ORG ]; then
echo "Missing environmet variables USERNAME, TOKEN, ORG"
exit 1;
fi
# No of reposoitories per page - Maximum Limit is 100
PERPAGE=100
# Change the BASEURL to your Org or User based
# Org base URL
BASEURL="https://api.github.com/orgs/${ORG}/repos"
# User base URL
# BASEURL="https://api.github.com/user/<your_github_username>/repos"
curl -s -u $USERNAME:$TOKEN -H 'Accept: application/vnd.github.v3+json' "${BASEURL}?per_page=${PERPAGE}&page=1" 2>&1 | jq '.[].name' | tr -d '\\"'

View File

@@ -0,0 +1,6 @@
#!/bin/bash
# for i in `/usr/local/bin/GitRepoList.sh`; do /usr/local/bin/backup-github.sh $i /github/$i.bundle || exit 1; done
for i in `/usr/local/bin/GitRepoList.sh`; do /usr/local/bin/backup-github.sh $i /github/$i.bundle; done

View File

@@ -0,0 +1,31 @@
#!/bin/bash
# Update by Eduardo Fraga <eduardo@eftech.com.br> at 27 Dec 2022
#
#
# Required: git
# Required environment variables above:
if [ -z $USERNAME ] || [ -z $TOKEN ] || [ -z $ORG ]; then
echo "Missing environmet variables USERNAME, TOKEN, ORG"
exit 1;
fi
# Args
if [ -z $1 ] || [ -z $2 ]; then
echo "Required $0 <repo> <destdir>"
exit 2
fi
DIR=`mktemp -d`
cd $DIR
git clone https://$USERNAME:$TOKEN@github.com/$ORG/$1
cd $1
git bundle create $2 --all
git bundle verify $2 || exit 3
rm -rf $DIR