aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2021-01-24-replacing-dropbox-with-s3.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/2021-01-24-replacing-dropbox-with-s3.md')
-rw-r--r--content/posts/2021-01-24-replacing-dropbox-with-s3.md52
1 files changed, 38 insertions, 14 deletions
diff --git a/content/posts/2021-01-24-replacing-dropbox-with-s3.md b/content/posts/2021-01-24-replacing-dropbox-with-s3.md
index f44aa63..0253368 100644
--- a/content/posts/2021-01-24-replacing-dropbox-with-s3.md
+++ b/content/posts/2021-01-24-replacing-dropbox-with-s3.md
@@ -1,25 +1,41 @@
1--- 1---
2title: Replacing Dropbox in favor of DigitalOcean spaces 2title: Replacing Dropbox in favor of DigitalOcean spaces
3url: replacing-dropbox-in-favor-of-digitalocean-spaces.html 3url: replacing-dropbox-in-favor-of-digitalocean-spaces.html
4date: 2021-01-24 4date: 2021-01-24T12:00:00+02:00
5draft: false 5draft: false
6--- 6---
7 7
8A few months ago I experimented with DigitalOcean spaces as my backup solution that could [replace Dropbox eventually](/digitalocean-spaces-to-sync-between-computers.html). That solution worked quite nicely, and I was amazed how smashing together a couple of existing solutions would work this fine. 8A few months ago I experimented with DigitalOcean spaces as my backup solution
9that could [replace Dropbox eventually](/digitalocean-spaces-to-sync-between-computers.html).
10That solution worked quite nicely, and I was amazed how smashing together a
11couple of existing solutions would work this fine.
9 12
10I have been running that solution in the background for a couple of months now and kind of forgot about it. But recent developments around deplatforming and having us people hostages of technology and big companies speed up my goals to become less dependent on [Google](https://edition.cnn.com/2020/12/17/tech/google-antitrust-lawsuit/index.html), [Dropbox](https://www.pcworld.com/article/2048680/dropbox-takes-a-peek-at-files.html) etc and take back some control. 13I have been running that solution in the background for a couple of months now
14and kind of forgot about it. But recent developments around deplatforming and
15having us people hostages of technology and big companies speed up my goals to
16become less dependent on [Google](https://edition.cnn.com/2020/12/17/tech/google-antitrust-lawsuit/index.html),
17[Dropbox](https://www.pcworld.com/article/2048680/dropbox-takes-a-peek-at-files.html)
18etc and take back some control.
11 19
12I am not a conspiracy theory nut, but to be honest, what these companies are doing lately is out of control. It is a matter of principle at this point. I have almost completely degoogled my life all the way from ditching Gmail, YouTube and most of the services surrounding Google. And I must tell you, I feel so good. I haven't felt this way for a long time. 20I am not a conspiracy theory nut, but to be honest, what these companies are
21doing lately is out of control. It is a matter of principle at this point. I
22have almost completely degoogled my life all the way from ditching Gmail,
23YouTube and most of the services surrounding Google. And I must tell you, I
24feel so good. I haven't felt this way for a long time.
13 25
14**Anyways. Let's get to the meat of things.** 26**Anyways. Let's get to the meat of things.**
15 27
16Before you continue you should read my post about [syncing to Dropbox](/digitalocean-spaces-to-sync-between-computers.html). 28Before you continue you should read my post about [syncing to Dropbox](/digitalocean-spaces-to-sync-between-computers.html).
17 29
18> Also to note, I am using Linux on my machine with Gnome desktop environment. This should work on MacOS too. To use this on Windows I suggest using [Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) or [Cygwin](https://www.cygwin.com/). 30> Also to note, I am using Linux on my machine with Gnome desktop environment.
31This should work on MacOS too. To use this on Windows I suggest using
32[Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
33or [Cygwin](https://www.cygwin.com/).
19 34
20## Folder structure 35## Folder structure
21 36
22I liked structure from Dropbox. One folder where everything is located and synced. So, that's why adopted this also for my sync setup. 37I liked structure from Dropbox. One folder where everything is located and
38synced. So, that's why adopted this also for my sync setup.
23 39
24```go 40```go
25~/Vault 41~/Vault
@@ -29,7 +45,11 @@ I liked structure from Dropbox. One folder where everything is located and synce
29 ↳ projects 45 ↳ projects
30``` 46```
31 47
32All of my code is located in `~/Vault/projects` folder. And most of the projects are Git repositories. I do not use this sync method for backup per see but in case I reinstall my machine I can easily recreate all the important folder structure with one quick command. No external drives needed that can fail etc. 48All of my code is located in `~/Vault/projects` folder. And most of the
49projects are Git repositories. I do not use this sync method for backup per
50see but in case I reinstall my machine I can easily recreate all the important
51folder structure with one quick command. No external drives needed that can
52fail etc.
33 53
34## Sync script 54## Sync script
35 55
@@ -66,9 +86,12 @@ notify-send \
66 "Vault sync succeded at `date +"%D %T"`" 86 "Vault sync succeded at `date +"%D %T"`"
67``` 87```
68 88
69This script also backups some of the dotfiles I use and sends notification to Gnome notification center. It is a straightforward solution. Nothing special going on. 89This script also backups some of the dotfiles I use and sends notification to
90Gnome notification center. It is a straightforward solution. Nothing special
91going on.
70 92
71> One obvious benefit of this is that I can omit syncing Node's `node_modules` or Python's `.venv` and `.git` folders. 93> One obvious benefit of this is that I can omit syncing Node's `node_modules`
94> or Python's `.venv` and `.git` folders.
72 95
73You can use this script in a combination with [Cron](https://en.wikipedia.org/wiki/Cron). 96You can use this script in a combination with [Cron](https://en.wikipedia.org/wiki/Cron).
74 97
@@ -76,13 +99,14 @@ You can use this script in a combination with [Cron](https://en.wikipedia.org/wi
760 2 * * * sh ~/Vault/bin/vault-backup.sh 990 2 * * * sh ~/Vault/bin/vault-backup.sh
77``` 100```
78 101
79When you start syncing your local stuff with a remote server you can review your items on DigitalOcean. 102When you start syncing your local stuff with a remote server you can review
103your items on DigitalOcean.
80 104
81![Dropbox Spaces](/assets/dropbox-sync/dropbox-spaces.png) 105![Dropbox Spaces](/assets/dropbox-sync/dropbox-spaces.png)
82 106
83I have been using this script now for quite some time, and it's working flawlessly. I also uninstalled Dropbox and stopped using it completely. 107I have been using this script now for quite some time, and it's working
84 108flawlessly. I also uninstalled Dropbox and stopped using it completely.
85All I need to do is write a Bash script that does the reverse and downloads from remote server to local folder. This could be another post.
86
87 109
110All I need to do is write a Bash script that does the reverse and downloads
111from remote server to local folder. This could be another post.
88 112