Backup files to Google Drive via skicka.
544
Backup files to Google Drive via skicka
This image is based on the alpine:3.5.
Image size: 12.9 MB.
docker run -it --rm kairyou/docker-skicka # list commands
docker run -it --rm kairyou/docker-skicka help # skicka help
# setup
docker run -it --rm -v $HOME/.config/skicka:/root kairyou/docker-skicka init # Initialize the configuration
docker run -it --rm -v $HOME/.config/skicka:/root kairyou/docker-skicka -no-browser-auth ls # Google Authentication
# Copy and paste the URL to your browser, authorize skicka, then copy the `verification code` from your browser to the terminal.
# It will update tokenCacheFile: `.skicka.tokencache.json`
# usage
# list files
docker run -it --rm -v $HOME/.config/skicka:/root kairyou/docker-skicka ls /
# create folder
docker run -it --rm -v $HOME/.config/skicka:/root kairyou/docker-skicka mkdir -p /tmp
# get file contents
docker run -it --rm -v $HOME/.config/skicka:/root kairyou/docker-skicka cat /tmp/t.txt
# remove file or folder
docker run -it --rm -v $HOME/.config/skicka:/root kairyou/docker-skicka rm -r /tmp
# upload folder/file
docker run -it --rm -v $HOME/.config/skicka:/root -v $PWD:/backup kairyou/docker-skicka upload ./folder_or_file /tmp/folder_or_file
# download file to current(PWD) dir
docker run -it --rm -v $HOME/.config/skicka:/root -v $PWD:/backup kairyou/docker-skicka download /tmp/t.txt tmp.txt
# Shortcut for `skicka` command. Open `~/.zshrc` or `~./bashrc` add the following:
alias skicka='docker run -it --rm -v $HOME/.config/skicka:/root -v $(pwd):/backup kairyou/docker-skicka'
# skicka ls; skicka upload ./t.txt /tmp;
These are just some notes about development things.
# Update the `skicka` executable from github.com/google/skicka
docker build . -f Dockerfile-go-skicka -t go-skicka;
docker run -d --name="tmp" go-skicka; docker cp tmp:/go/bin/skicka ./skicka;
docker rm -f tmp;docker rmi go-skicka;
# docker build --tag kairyou/docker-skicka .
client_id and clientsecretOther UIUser datadrive_client_1google_drive, Continue.client_id and clientsecret into .skicka.config.skicka -no-browser-auth ls.sudo ntpdate -u time.apple.comsudo systemctl restart dockerContent type
Image
Digest
Size
5 MB
Last updated
over 8 years ago
docker pull kairyou/docker-skicka