<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on David Marchbanks</title><link>https://davidmarchbanks.dev/en/tags/python/</link><description>Recent content in Python on David Marchbanks</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 01 Mar 2026 17:46:52 +0000</lastBuildDate><atom:link href="https://davidmarchbanks.dev/en/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Gitlab To S3 Backup</title><link>https://davidmarchbanks.dev/en/posts/gitlab-to-s3-backup/</link><pubDate>Sun, 01 Mar 2026 17:46:52 +0000</pubDate><guid>https://davidmarchbanks.dev/en/posts/gitlab-to-s3-backup/</guid><description>&lt;p>So I have a need to nightly backup a few things. I thought I would share how I do this using the following:&lt;/p>
&lt;ol>
&lt;li>Digital Ocean Object Storage&lt;/li>
&lt;li>Gitlab&lt;/li>
&lt;li>Mongo&lt;/li>
&lt;li>Python ( For simplicity )&lt;/li>
&lt;/ol>
&lt;p>To start, I have a template for connecting up to digital ocean that I use in multiple spots. We&amp;rsquo;ll call this &lt;code>docker_util.yaml&lt;/code>&lt;/p>
&lt;p>docker_util.yaml&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code data-lang="yaml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">image&lt;/span>: &lt;span style="color:#ae81ff">docker:24.0.5&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">services&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">docker:24.0.5-dind&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">before_script&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">wget https://github.com/digitalocean/doctl/releases/download/v1.105.0/doctl-1.105.0-linux-amd64.tar.gz&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">tar xf doctl-1.105.0-linux-amd64.tar.gz&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">mv doctl /bin&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">doctl auth init -t ${DO_API_TOKEN}&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">doctl registry login&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Notice the ${DO_API_TOKEN}, you will need to create a secret for this. Also pending on when you are reading this, you may need to update the doctl version.&lt;/p></description></item></channel></rss>