Fiyu~~ that was mouthful.
If you are paranoid like me, and want to backup your GD to another GD using Restic. You are in the right place. I lost some precious data due to some shady GD tools. So I created this tool to make it never happen again.
I stole some parts from @maltokyo and his repository and I stole some parts from Jakob Kofad's blog post and I wrote some stuff.
- Follow this and generate 2 verification codes for from GD and to GD
docker build -t gd2gd .
- Run following command
docker run \ -v /$LOCATION_TO_HOLD_AUTH_TOKENS:/root/.gdfuse \ --env CLIENT_ID=$CLIENT_ID \ --env CLIENT_SECRET=$CLIENT_SECRET \ -t -i --cap-add mknod --cap-add sys_admin --device /dev/fuse --security-opt apparmor:unconfined \ gd2gd
- This will ask you to authenticate, then backup
- Put the command on a cron job, will not ask for authentication on second time.