-
Notifications
You must be signed in to change notification settings - Fork 0
Alex Arbuckle edited this page Sep 25, 2024
·
4 revisions
Create scheduled backups of all your GitHub repositories to a local directory. V2. Fall 2023.
The following notebook provides key information about the project, including its purpose, structure, guidelines, and algorithms, helping those who want to learn more by addressing these topics.
boot.sh
#!/bin/bash
externalDataMount=;
reposPath="/data/repos";
channelsPath="/data/channels";
projectPath=;
# check if external data #
if [ -n "$externalDataMount" ]; then
sudo mount $externalDataMount $projectPath/data;
fi
# if fresh installation #
if [ ! -d "$projectPath$reposPath" ]; then
sudo mkdir $projectPath$reposPath;
sudo mkdir $projectPath$channelsPath;
fi
sudo docker-compose -f $projectPath/docker-compose.yaml pull;
sudo docker-compose -f $projectPath/docker-compose.yaml up;
docker-compose.yml
version: '3.8'
services:
kinma:
restart: "no"
image: lxrbckl/project-kinma:latest
environment:
- tokenDiscord=
- tokenOctokit=
- guildId=
- channelId=
- applicationId=
- messageDepth=100
- settingLink=
- dataFilePath=
- reposFilePath=
- settingFilePath=
- channelsFilePath=
volumes:
- /path/on/HOST:/app/data
image
project-kinma:latest
variable
purpose of variable