Created
June 2, 2015 08:25
-
-
Save kgorskowski/f2513b4c6e901c7a5fea to your computer and use it in GitHub Desktop.
podio backup unit file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=backup styleranking podio assets to amazon s3 | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
KillMode=none | |
ExecStartPre=-/usr/bin/docker kill styleranking.podio-backup | |
ExecStartPre=-/usr/bin/docker rm -f styleranking.podio-backup | |
ExecStartPre=/usr/bin/docker pull kgorskowski/podio-backup | |
ExecStart=/usr/bin/bash -c \ | |
"/usr/bin/docker run \ | |
--name styleranking.podio-backup \ | |
-e AWS_DEFAULT_REGION=`etcdctl get /styleranking/aws/AWS_DEFAULT_REGION` \ | |
-e AWS_ACCESS_KEY_ID=`etcdctl get /styleranking/aws/AWS_ACCESS_KEY_ID` \ | |
-e AWS_SECRET_ACCESS_KEY=`etcdctl get /styleranking/aws/AWS_SECRET_ACCESS_KEY` \ | |
-e podioClientId=`etcdctl get /styleranking/podio/podioClientId` \ | |
-e podioClientSecret=`etcdctl get /styleranking/podio/podioClientSecret` \ | |
-e podioUser=`etcdctl get /styleranking/podio/podioUser` \ | |
-e podioPassword=`etcdctl get /styleranking/podio/podioPassword` \ | |
kgorskowski/podio-backup ./podio-backup.sh" | |
ExecStop=/usr/bin/docker rm -f styleranking.podio-backup | |
[Install] | |
WantedBy=local.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment