Update importing instruction

This commit is contained in:
Eugene Burmakin 2024-05-23 22:17:19 +02:00
parent 0f65ec4c6f
commit b4116cfd72
5 changed files with 22 additions and 19 deletions

View file

@ -1 +1 @@
0.3.1
0.3.2

View file

@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.3.2] — 2024-05-23
### Added
- Docker volume for importing Google Takeout data to the application
### Changed
- Instruction on how to import Google Takeout data to the application
## [0.3.1] — 2024-05-23
### Added

File diff suppressed because one or more lines are too long

View file

@ -4,26 +4,17 @@
<div role="alert" class="alert alert-info my-5">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" class="stroke-current shrink-0 w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
<span>
To import <code>Records.json</code> file from your Google Takeout Archive, use rake task.
<p>To import <code>Records.json</code> file from your Google Takeout Archive, use rake task.</p>
Upload your json file to your server, into the <code>tmp</code> folder and run the following command:
<pre class="bg-gray-100 rounded-lg my-2">
<code class="language-bash">
$ bundle exec rake import:big_file['tmp/Records.json','user@email.com']
</code>
</pre>
Don't forget to replace email with email address of your Dawarich user.
The command must be ran in your docker container, so you need to connect to it first:
<pre class="bg-gray-100 rounded-lg my-2">
<code class="language-bash">
$ docker exec -it dawarich_web_1 bash
</code>
<p class='mb-3'>Import takes a while to finish, so you might want to run it in <code>screen</code> session.</p>
<p>1. Upload your Records.json file to your server</p>
<p>2. Copy you Records.json to the <code>tmp</code> folder: <code>$ docker cp Records.json dawarich_app:/var/app/tmp/Records.json</code></p>
<p>3. Attach to the docker container: <code>$ docker exec -it dawarich_app sh</code></p>
<p>4. Run the rake task: <code>$ bundle exec rake import:big_file['tmp/Records.json','user@example.com']</code></p>
<p>5. Wait patiently for process to finish</p>
<p class='mt-3'>You can monitor progress in <a href="/sidekiq" class="underline">Sidekiq UI</a></p>
</span>
</div>

View file

@ -25,6 +25,7 @@ services:
container_name: dawarich_app
volumes:
- gem_cache:/usr/local/bundle/gems
- tmp:/var/app/tmp
networks:
- dawarich
ports:
@ -75,3 +76,4 @@ volumes:
db_data:
gem_cache:
shared_data:
tmp: