chappio / git-backup Goto Github PK
View Code? Open in Web Editor NEWBackup all your github & gitlab repositories
License: Apache License 2.0
Backup all your github & gitlab repositories
License: Apache License 2.0
Can´t execute the Linux versions. What format they are? How can I execute them? It doesn´t seem like bash and have no extension at all.
Would there be a way to implement a variable for User:Group rather than listing it in the docker run command?
Right now, all downloads save as root, and it might be worthwhile seeing if there's a way to make the container run as non-root + a variable to set what user it saves files as.
Currently, I'm running:
docker run --user 1000:997 --volume /my/backup/path/GitBackup:/backups ghcr.io/chappio/git-backup
This would not only secure the container by running it as non-root, but also allow for users to define a specific user + group to allow for easier data management.
I suspect that it might be doable by setting the dockerfile to have a USER
value, and a ENV value, e.g.:
ENV UID=1000 \
PID=1000 \
COPY --chown=$UID:$PID=${TARGETPLATFORM}/git-backup / #COPY is a better choice than ADD in this scenario
RUN chmod +x /git-backup
USER $UID:$PID
The above is totally untested.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.