aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2021-01-24-replacing-dropbox-with-s3.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2023-06-27 14:50:20 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2023-06-27 14:50:20 +0200
commit8697555125c57ae64a0c9b78514b4aac4fd523de (patch)
treea699df53a7c35a4425f30bca86982c4341f6de40 /content/posts/2021-01-24-replacing-dropbox-with-s3.md
parent33b2615a5038bc85036081e8b5e0da8584d88097 (diff)
downloadmitjafelicijan.com-8697555125c57ae64a0c9b78514b4aac4fd523de.tar.gz
Massive formatting and added figcaption
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.md61
1 files changed, 31 insertions, 30 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 0253368..4c6b33e 100644
--- a/content/posts/2021-01-24-replacing-dropbox-with-s3.md
+++ b/content/posts/2021-01-24-replacing-dropbox-with-s3.md
@@ -5,27 +5,30 @@ date: 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 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). 9that could [replace Dropbox
10That solution worked quite nicely, and I was amazed how smashing together a 10eventually](/digitalocean-spaces-to-sync-between-computers.html). That solution
11couple of existing solutions would work this fine. 11worked quite nicely, and I was amazed how smashing together a couple of existing
12 12solutions would work this fine.
13I have been running that solution in the background for a couple of months now 13
14and kind of forgot about it. But recent developments around deplatforming and 14I have been running that solution in the background for a couple of months now
15having us people hostages of technology and big companies speed up my goals to 15and kind of forgot about it. But recent developments around deplatforming and
16become less dependent on [Google](https://edition.cnn.com/2020/12/17/tech/google-antitrust-lawsuit/index.html), 16having us people hostages of technology and big companies speed up my goals to
17[Dropbox](https://www.pcworld.com/article/2048680/dropbox-takes-a-peek-at-files.html) 17become less dependent on
18[Google](https://edition.cnn.com/2020/12/17/tech/google-antitrust-lawsuit/index.html),
19[Dropbox](https://www.pcworld.com/article/2048680/dropbox-takes-a-peek-at-files.html)
18etc and take back some control. 20etc and take back some control.
19 21
20I am not a conspiracy theory nut, but to be honest, what these companies are 22I 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 23doing 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, 24have 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 25YouTube and most of the services surrounding Google. And I must tell you, I feel
24feel so good. I haven't felt this way for a long time. 26so good. I haven't felt this way for a long time.
25 27
26**Anyways. Let's get to the meat of things.** 28**Anyways. Let's get to the meat of things.**
27 29
28Before you continue you should read my post about [syncing to Dropbox](/digitalocean-spaces-to-sync-between-computers.html). 30Before you continue you should read my post about [syncing to
31Dropbox](/digitalocean-spaces-to-sync-between-computers.html).
29 32
30> Also to note, I am using Linux on my machine with Gnome desktop environment. 33> 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 34This should work on MacOS too. To use this on Windows I suggest using
@@ -34,7 +37,7 @@ or [Cygwin](https://www.cygwin.com/).
34 37
35## Folder structure 38## Folder structure
36 39
37I liked structure from Dropbox. One folder where everything is located and 40I liked structure from Dropbox. One folder where everything is located and
38synced. So, that's why adopted this also for my sync setup. 41synced. So, that's why adopted this also for my sync setup.
39 42
40```go 43```go
@@ -45,11 +48,10 @@ synced. So, that's why adopted this also for my sync setup.
45 ↳ projects 48 ↳ projects
46``` 49```
47 50
48All of my code is located in `~/Vault/projects` folder. And most of the 51All of my code is located in `~/Vault/projects` folder. And most of the projects
49projects are Git repositories. I do not use this sync method for backup per 52are Git repositories. I do not use this sync method for backup per see but in
50see but in case I reinstall my machine I can easily recreate all the important 53case I reinstall my machine I can easily recreate all the important folder
51folder structure with one quick command. No external drives needed that can 54structure with one quick command. No external drives needed that can fail etc.
52fail etc.
53 55
54## Sync script 56## Sync script
55 57
@@ -86,8 +88,8 @@ notify-send \
86 "Vault sync succeded at `date +"%D %T"`" 88 "Vault sync succeded at `date +"%D %T"`"
87``` 89```
88 90
89This script also backups some of the dotfiles I use and sends notification to 91This script also backups some of the dotfiles I use and sends notification to
90Gnome notification center. It is a straightforward solution. Nothing special 92Gnome notification center. It is a straightforward solution. Nothing special
91going on. 93going on.
92 94
93> One obvious benefit of this is that I can omit syncing Node's `node_modules` 95> One obvious benefit of this is that I can omit syncing Node's `node_modules`
@@ -99,14 +101,13 @@ You can use this script in a combination with [Cron](https://en.wikipedia.org/wi
990 2 * * * sh ~/Vault/bin/vault-backup.sh 1010 2 * * * sh ~/Vault/bin/vault-backup.sh
100``` 102```
101 103
102When you start syncing your local stuff with a remote server you can review 104When you start syncing your local stuff with a remote server you can review your
103your items on DigitalOcean. 105items on DigitalOcean.
104 106
105![Dropbox Spaces](/assets/dropbox-sync/dropbox-spaces.png) 107![Dropbox Spaces](/assets/dropbox-sync/dropbox-spaces.png)
106 108
107I have been using this script now for quite some time, and it's working 109I have been using this script now for quite some time, and it's working
108flawlessly. I also uninstalled Dropbox and stopped using it completely. 110flawlessly. I also uninstalled Dropbox and stopped using it completely.
109 111
110All I need to do is write a Bash script that does the reverse and downloads 112All I need to do is write a Bash script that does the reverse and downloads from
111from remote server to local folder. This could be another post. 113remote server to local folder. This could be another post.
112