diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-06-27 14:50:20 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-06-27 14:50:20 +0200 |
| commit | 8697555125c57ae64a0c9b78514b4aac4fd523de (patch) | |
| tree | a699df53a7c35a4425f30bca86982c4341f6de40 /content/posts/2021-01-24-replacing-dropbox-with-s3.md | |
| parent | 33b2615a5038bc85036081e8b5e0da8584d88097 (diff) | |
| download | mitjafelicijan.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.md | 61 |
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 | |||
| 5 | draft: false | 5 | draft: false |
| 6 | --- | 6 | --- |
| 7 | 7 | ||
| 8 | A few months ago I experimented with DigitalOcean spaces as my backup solution | 8 | A few months ago I experimented with DigitalOcean spaces as my backup solution |
| 9 | that could [replace Dropbox eventually](/digitalocean-spaces-to-sync-between-computers.html). | 9 | that could [replace Dropbox |
| 10 | That solution worked quite nicely, and I was amazed how smashing together a | 10 | eventually](/digitalocean-spaces-to-sync-between-computers.html). That solution |
| 11 | couple of existing solutions would work this fine. | 11 | worked quite nicely, and I was amazed how smashing together a couple of existing |
| 12 | 12 | solutions would work this fine. | |
| 13 | I have been running that solution in the background for a couple of months now | 13 | |
| 14 | and kind of forgot about it. But recent developments around deplatforming and | 14 | I have been running that solution in the background for a couple of months now |
| 15 | having us people hostages of technology and big companies speed up my goals to | 15 | and kind of forgot about it. But recent developments around deplatforming and |
| 16 | become less dependent on [Google](https://edition.cnn.com/2020/12/17/tech/google-antitrust-lawsuit/index.html), | 16 | having 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) | 17 | become 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) | ||
| 18 | etc and take back some control. | 20 | etc and take back some control. |
| 19 | 21 | ||
| 20 | I am not a conspiracy theory nut, but to be honest, what these companies are | 22 | I am not a conspiracy theory nut, but to be honest, what these companies are |
| 21 | doing lately is out of control. It is a matter of principle at this point. I | 23 | doing lately is out of control. It is a matter of principle at this point. I |
| 22 | have almost completely degoogled my life all the way from ditching Gmail, | 24 | have almost completely degoogled my life all the way from ditching Gmail, |
| 23 | YouTube and most of the services surrounding Google. And I must tell you, I | 25 | YouTube and most of the services surrounding Google. And I must tell you, I feel |
| 24 | feel so good. I haven't felt this way for a long time. | 26 | so 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 | ||
| 28 | Before you continue you should read my post about [syncing to Dropbox](/digitalocean-spaces-to-sync-between-computers.html). | 30 | Before you continue you should read my post about [syncing to |
| 31 | Dropbox](/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. |
| 31 | This should work on MacOS too. To use this on Windows I suggest using | 34 | This 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 | ||
| 37 | I liked structure from Dropbox. One folder where everything is located and | 40 | I liked structure from Dropbox. One folder where everything is located and |
| 38 | synced. So, that's why adopted this also for my sync setup. | 41 | synced. 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 | ||
| 48 | All of my code is located in `~/Vault/projects` folder. And most of the | 51 | All of my code is located in `~/Vault/projects` folder. And most of the projects |
| 49 | projects are Git repositories. I do not use this sync method for backup per | 52 | are Git repositories. I do not use this sync method for backup per see but in |
| 50 | see but in case I reinstall my machine I can easily recreate all the important | 53 | case I reinstall my machine I can easily recreate all the important folder |
| 51 | folder structure with one quick command. No external drives needed that can | 54 | structure with one quick command. No external drives needed that can fail etc. |
| 52 | fail 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 | ||
| 89 | This script also backups some of the dotfiles I use and sends notification to | 91 | This script also backups some of the dotfiles I use and sends notification to |
| 90 | Gnome notification center. It is a straightforward solution. Nothing special | 92 | Gnome notification center. It is a straightforward solution. Nothing special |
| 91 | going on. | 93 | going 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 | |||
| 99 | 0 2 * * * sh ~/Vault/bin/vault-backup.sh | 101 | 0 2 * * * sh ~/Vault/bin/vault-backup.sh |
| 100 | ``` | 102 | ``` |
| 101 | 103 | ||
| 102 | When you start syncing your local stuff with a remote server you can review | 104 | When you start syncing your local stuff with a remote server you can review your |
| 103 | your items on DigitalOcean. | 105 | items on DigitalOcean. |
| 104 | 106 | ||
| 105 |  | 107 |  |
| 106 | 108 | ||
| 107 | I have been using this script now for quite some time, and it's working | 109 | I have been using this script now for quite some time, and it's working |
| 108 | flawlessly. I also uninstalled Dropbox and stopped using it completely. | 110 | flawlessly. I also uninstalled Dropbox and stopped using it completely. |
| 109 | 111 | ||
| 110 | All I need to do is write a Bash script that does the reverse and downloads | 112 | All I need to do is write a Bash script that does the reverse and downloads from |
| 111 | from remote server to local folder. This could be another post. | 113 | remote server to local folder. This could be another post. |
| 112 | |||
