aboutsummaryrefslogtreecommitdiff
path: root/public/replacing-dropbox-in-favor-of-digitalocean-spaces.html
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-07-08 23:26:39 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-07-08 23:26:39 +0200
commit58904b7d9b781c9a7eb18183392b3a565fdbcd51 (patch)
tree33e0033a77e4279044a61b00f3675e4822cc26a4 /public/replacing-dropbox-in-favor-of-digitalocean-spaces.html
parentcd6644ea4ddc78597934ab0ef5ba50e3c3daa927 (diff)
downloadmitjafelicijan.com-58904b7d9b781c9a7eb18183392b3a565fdbcd51.tar.gz
Removed public folder
Diffstat (limited to 'public/replacing-dropbox-in-favor-of-digitalocean-spaces.html')
-rwxr-xr-xpublic/replacing-dropbox-in-favor-of-digitalocean-spaces.html73
1 files changed, 0 insertions, 73 deletions
diff --git a/public/replacing-dropbox-in-favor-of-digitalocean-spaces.html b/public/replacing-dropbox-in-favor-of-digitalocean-spaces.html
deleted file mode 100755
index 05f28a1..0000000
--- a/public/replacing-dropbox-in-favor-of-digitalocean-spaces.html
+++ /dev/null
@@ -1,73 +0,0 @@
1<!doctype html><html lang=en-us><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL69vf8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv76+/8LBwQkAAAAAAAAAAAAAAAC+vb3/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL+9vf/Bv78JAAAAAAAAAAAAAAAAu7q6/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC7ubr/vr29CAAAAAAAAAAAy8nJAZ6foP8AAAAAAAAAAAAAAAAAAAAA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AAAAAAAADu9v8DDJb+/z3N/XgAAAAA3/sAAN/7AADf+wAA3/sAAAAAAAAAAAAAAAAAAN/7AAAAAAAAAAAAAAAAAAAAAAAAj/EAAI/5AACP8QAA3/sAAA==" rel=icon type=image/x-icon><title>Replacing Dropbox in favor of DigitalOcean spaces</title><meta name=description content="A few months ago I experimented with DigitalOcean spaces as my backup solutionthat could replace Dropboxeventually."><link rel=alternate type=application/rss+xml title="Mitja Felicijan's posts" href=https://mitjafelicijan.com/index.xml><link rel=alternate type=application/rss+xml title="Mitja Felicijan's notes" href=https://mitjafelicijan.com/notes.xml><style>body{padding:1rem;max-width:760px;background:#fff;font-family:times new roman,Times,serif;line-height:1.35rem}hr{margin-block-start:1.5rem}h1,h2,h3{line-height:initial}footer{margin-block-start:3rem}table{max-width:100%;border-collapse:separate;border-spacing:2px;border:1px solid #000;border-left:1px solid #999;border-top:1px solid #999}blockquote{font-style:italic}table thead{background:#eee}td,th{border:1px solid #000;padding:4px;border-right:1px solid #999;border-bottom:1px solid #999;text-align:left}pre{text-wrap:nowrap;overflow-x:auto;margin-block-start:1.5rem;margin-block-end:1.5rem;padding:.5rem 0;border-top:1px solid #000;border-bottom:1px solid #000}pre code{line-height:1.3em}pre,code,pre *,code *{font-family:monospace;font-size:initial!important}img,video,audio{max-width:100%}header{display:flex;flex-direction:row;gap:3rem}nav{display:flex;gap:.75rem}.pstatus-orange{background:gold}.pstatus-green{background:#9acd32}.pstatus-red{background:#cd5c5c}@media only screen and (max-width:600px){header{flex-direction:column;gap:1rem}a{word-wrap:break-word}}</style><header><nav class=main><a href=/>Home</a>
2<a href=https://git.mitjafelicijan.com/ target=_blank>Git</a>
3<a href=https://files.mitjafelicijan.com/ target=_blank>Files</a>
4<a href=/mitjafelicijan.pgp.pub.txt target=_blank>PGP</a>
5<a href=/curriculum-vitae.html>CV</a>
6<a href=/index.xml target=_blank>RSS</a></nav></header><main><div><h1>Replacing Dropbox in favor of DigitalOcean spaces</h1><p>Jan 24, 2021<div><p>A few months ago I experimented with DigitalOcean spaces as my backup solution
7that could <a href=/digitalocean-spaces-to-sync-between-computers.html>replace Dropbox
8eventually</a>. That solution
9worked quite nicely, and I was amazed how smashing together a couple of existing
10solutions would work this fine.<p>I have been running that solution in the background for a couple of months now
11and kind of forgot about it. But recent developments around deplatforming and
12having us people hostages of technology and big companies speed up my goals to
13become less dependent on
14<a href=https://edition.cnn.com/2020/12/17/tech/google-antitrust-lawsuit/index.html>Google</a>,
15<a href=https://www.pcworld.com/article/2048680/dropbox-takes-a-peek-at-files.html>Dropbox</a>
16etc and take back some control.<p>I am not a conspiracy theory nut, but to be honest, what these companies are
17doing lately is out of control. It is a matter of principle at this point. I
18have almost completely degoogled my life all the way from ditching Gmail,
19YouTube and most of the services surrounding Google. And I must tell you, I feel
20so good. I haven't felt this way for a long time.<p><strong>Anyways. Let's get to the meat of things.</strong><p>Before you continue you should read my post about <a href=/digitalocean-spaces-to-sync-between-computers.html>syncing to
21Dropbox</a>.<blockquote><p>Also to note, I am using Linux on my machine with Gnome desktop environment.
22This should work on MacOS too. To use this on Windows I suggest using
23<a href=https://docs.microsoft.com/en-us/windows/wsl/install-win10>Subsystem for Linux</a>
24or <a href=https://www.cygwin.com/>Cygwin</a>.</blockquote><h2 id=folder-structure>Folder structure</h2><p>I liked structure from Dropbox. One folder where everything is located and
25synced. So, that's why adopted this also for my sync setup.<pre tabindex=0 style=background-color:#fff><code><span style=display:flex><span><span>~</span>/Vault
26</span></span><span style=display:flex><span> <span>↳</span> backup
27</span></span><span style=display:flex><span> <span>↳</span> bin
28</span></span><span style=display:flex><span> <span>↳</span> documents
29</span></span><span style=display:flex><span> <span>↳</span> projects
30</span></span></code></pre><p>All of my code is located in <code>~/Vault/projects</code> folder. And most of the projects
31are Git repositories. I do not use this sync method for backup per see but in
32case I reinstall my machine I can easily recreate all the important folder
33structure with one quick command. No external drives needed that can fail etc.<h2 id=sync-script>Sync script</h2><p>My sync script is located in <code>~/Vault/bin/vault-backup.sh</code><pre tabindex=0 style=background-color:#fff><code><span style=display:flex><span><span style=color:#00f>#!/bin/bash
34</span></span></span><span style=display:flex><span><span style=color:#00f></span>
35</span></span><span style=display:flex><span><span style=color:green># dconf load /com/gexperts/Tilix/ &lt; tilix.dconf</span>
36</span></span><span style=display:flex><span><span style=color:green># 0 2 * * * sh ~/Vault/bin/vault-backup.sh</span>
37</span></span><span style=display:flex><span>
38</span></span><span style=display:flex><span>cd ~/Vault/backup/dotfiles
39</span></span><span style=display:flex><span>
40</span></span><span style=display:flex><span>MACHINE=<span style=color:#00f>$(</span>whoami<span style=color:#00f>)</span>@<span style=color:#00f>$(</span>hostname<span style=color:#00f>)</span>
41</span></span><span style=display:flex><span>mkdir -p $MACHINE
42</span></span><span style=display:flex><span>cd $MACHINE
43</span></span><span style=display:flex><span>
44</span></span><span style=display:flex><span>cp ~/.config/VSCodium/User/settings.json settings.json
45</span></span><span style=display:flex><span>cp ~/.s3cfg s3cfg
46</span></span><span style=display:flex><span>cp ~/.bash_extended bash_extended
47</span></span><span style=display:flex><span>cp ~/.ssh ssh -rf
48</span></span><span style=display:flex><span>
49</span></span><span style=display:flex><span>codium --list-extensions &gt; vscode-extension.txt
50</span></span><span style=display:flex><span>dconf dump /com/gexperts/Tilix/ &gt; tilix.dconf
51</span></span><span style=display:flex><span>
52</span></span><span style=display:flex><span>cd ~/Vault
53</span></span><span style=display:flex><span>s3cmd sync --delete-removed --exclude <span style=color:#a31515>&#39;node_modules/*&#39;</span> --exclude <span style=color:#a31515>&#39;.git/*&#39;</span> --exclude <span style=color:#a31515>&#39;.venv/*&#39;</span> ./ s3://bucket-name/backup/
54</span></span><span style=display:flex><span>
55</span></span><span style=display:flex><span>echo <span style=color:#a31515>`</span>date +<span style=color:#a31515>&#34;%D %T&#34;</span><span style=color:#a31515>`</span> &gt;&gt; ~/.vault.log
56</span></span><span style=display:flex><span>
57</span></span><span style=display:flex><span>notify-send <span style=color:#a31515>\
58</span></span></span><span style=display:flex><span><span style=color:#a31515></span> -u normal <span style=color:#a31515>\
59</span></span></span><span style=display:flex><span><span style=color:#a31515></span> -i /usr/share/icons/Adwaita/96x96/status/security-medium-symbolic.symbolic.png <span style=color:#a31515>\
60</span></span></span><span style=display:flex><span><span style=color:#a31515></span> <span style=color:#a31515>&#34;Vault sync succeded at `date +&#34;</span>%D %T<span style=color:#a31515>&#34;`&#34;</span>
61</span></span></code></pre><p>This script also backups some of the dotfiles I use and sends notification to
62Gnome notification center. It is a straightforward solution. Nothing special
63going on.<blockquote><p>One obvious benefit of this is that I can omit syncing Node's <code>node_modules</code>
64or Python's <code>.venv</code> and <code>.git</code> folders.</blockquote><p>You can use this script in a combination with <a href=https://en.wikipedia.org/wiki/Cron>Cron</a>.<pre><code>0 2 * * * sh ~/Vault/bin/vault-backup.sh
65</code></pre><p>When you start syncing your local stuff with a remote server you can review your
66items on DigitalOcean.<p><img src=/assets/dropbox-sync/dropbox-spaces.png alt="Dropbox Spaces"><p>I have been using this script now for quite some time, and it's working
67flawlessly. I also uninstalled Dropbox and stopped using it completely.<p>All I need to do is write a Bash script that does the reverse and downloads from
68remote server to local folder. This could be another post.</div></div></main><footer><hr><div><h3>Want to comment or have something to add?</h3>You can write me an email at
69<a href=mailto:m@mitjafelicijan.com>m@mitjafelicijan.com</a> or catch up
70with me
71<a href=https://telegram.me/mitjafelicijan target=_blank>on Telegram</a>.</div><hr><p>This website does not track you. Content is made available under
72the <a href=https://creativecommons.org/licenses/by/4.0/ target=_blank rel=noreferrer>CC BY 4.0 license</a> unless specified
73otherwise. Blog feed is available as <a href=/index.xml target=_blank>RSS feed</a>.</footer><script src=https://cdn.usefathom.com/script.js data-site=XHQARKXP defer></script> \ No newline at end of file