Skip to content

semasquare/gitlab-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-backup

Installation on Synology DiscStation

Create GitLab Token with scope api:

https://gitlab.com/-/user_settings/personal_access_tokens

Add token and other contents to .env:

cp .env.sample .env

Install Python on http://nas.local:

Open Package Center and install python.

Install pip:

Login via ssh and run the following commands:

sudo python3 -m ensurepip
sudo python3 -m pip install --upgrade pip
python3 -m pip -V

Install python3 venv:

https://kb.synology.com/en-uk/DSM/tutorial/Set_up_Python_virtual_environment_on_NAS

python3 -m venv /Scripts/gitlab-backup
cd /volume1/Scripts/gitlab-backup
source bin/active

Install dependencies:

cd /volume1/Scripts/gitlab-backup
python3 -m pip install -r requirements.txt

Create Task with user defined script on http://nas.local:

/usr/bin/python3 /volume1/Backup/gitlab.com/gitlab-backup.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages