diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-26 00:40:40 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-26 00:40:40 +0200 |
| commit | 43b0708769eb61392050045b881f8e6ba39c5b66 (patch) | |
| tree | 3939579a13b8325325d5ebb8e05324a41ed78a6d /content/posts/2021-01-24-replacing-dropbox-with-s3.md | |
| parent | 49e7e7d555a6cd9810d81561fa3e98e3d64502be (diff) | |
| download | mitjafelicijan.com-43b0708769eb61392050045b881f8e6ba39c5b66.tar.gz | |
Massive update to posts, archetypes
Added a archetypes for creating notes and posts so it auto-populates
fields.
Fixed existing posts so they align with the rule of 80 columns now.
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 | 52 |
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 | --- |
| 2 | title: Replacing Dropbox in favor of DigitalOcean spaces | 2 | title: Replacing Dropbox in favor of DigitalOcean spaces |
| 3 | url: replacing-dropbox-in-favor-of-digitalocean-spaces.html | 3 | url: replacing-dropbox-in-favor-of-digitalocean-spaces.html |
| 4 | date: 2021-01-24 | 4 | 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 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. | 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). | ||
| 10 | That solution worked quite nicely, and I was amazed how smashing together a | ||
| 11 | couple of existing solutions would work this fine. | ||
| 9 | 12 | ||
| 10 | I 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. | 13 | I have been running that solution in the background for a couple of months now |
| 14 | and kind of forgot about it. But recent developments around deplatforming and | ||
| 15 | having us people hostages of technology and big companies speed up my goals to | ||
| 16 | become 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) | ||
| 18 | etc and take back some control. | ||
| 11 | 19 | ||
| 12 | I 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. | 20 | 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 | ||
| 22 | 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 | ||
| 24 | feel 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 | ||
| 16 | Before you continue you should read my post about [syncing to Dropbox](/digitalocean-spaces-to-sync-between-computers.html). | 28 | Before 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. |
| 31 | This 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) | ||
| 33 | or [Cygwin](https://www.cygwin.com/). | ||
| 19 | 34 | ||
| 20 | ## Folder structure | 35 | ## Folder structure |
| 21 | 36 | ||
| 22 | I liked structure from Dropbox. One folder where everything is located and synced. So, that's why adopted this also for my sync setup. | 37 | 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. | ||
| 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 | ||
| 32 | All 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. | 48 | All of my code is located in `~/Vault/projects` folder. And most of the |
| 49 | projects are Git repositories. I do not use this sync method for backup per | ||
| 50 | see but in case I reinstall my machine I can easily recreate all the important | ||
| 51 | folder structure with one quick command. No external drives needed that can | ||
| 52 | fail 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 | ||
| 69 | This 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. | 89 | 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 | ||
| 91 | going 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 | ||
| 73 | You can use this script in a combination with [Cron](https://en.wikipedia.org/wiki/Cron). | 96 | You 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 | |||
| 76 | 0 2 * * * sh ~/Vault/bin/vault-backup.sh | 99 | 0 2 * * * sh ~/Vault/bin/vault-backup.sh |
| 77 | ``` | 100 | ``` |
| 78 | 101 | ||
| 79 | When you start syncing your local stuff with a remote server you can review your items on DigitalOcean. | 102 | When you start syncing your local stuff with a remote server you can review |
| 103 | your items on DigitalOcean. | ||
| 80 | 104 | ||
| 81 |  | 105 |  |
| 82 | 106 | ||
| 83 | I have been using this script now for quite some time, and it's working flawlessly. I also uninstalled Dropbox and stopped using it completely. | 107 | I have been using this script now for quite some time, and it's working |
| 84 | 108 | flawlessly. I also uninstalled Dropbox and stopped using it completely. | |
| 85 | All 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 | ||
| 110 | All I need to do is write a Bash script that does the reverse and downloads | ||
| 111 | from remote server to local folder. This could be another post. | ||
| 88 | 112 | ||
