Backup your entire GitHub account to a remote location using Docker
- First, get a hold of your
rclone.conf
file. You can do this by runningrclone config
(in this container or not) and then finding the file at~/.config/rclone/rclone.conf
. Once you have that file, be sure to mount it to~/.config/rclone/rclone.conf
in the container using a volume. Feel free to store this anywhere on the host machine in a safe, but accessible location. - Modify the
.env
file by using.env.sample
as your template. Either use the.env
file and enable it when running the container using --env-file or the -e flag. - Run the following command while being sure to subsitute your own environment file and
rclone.conf
volume paths:docker run --rm -v ~/Github-Backup-Docker-Util/rclone:/root/.config/rclone --env-file ~/Github-Backup-Docker-Util/.env jeffresc/github-backup:latest