mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
33 lines
1.3 KiB
Text
33 lines
1.3 KiB
Text
<div class="mx-auto md:w-2/3 w-full">
|
|
<h1 class="font-bold text-4xl">New import</h1>
|
|
|
|
<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.
|
|
|
|
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>
|
|
|
|
|
|
</span>
|
|
</div>
|
|
|
|
<%= render "form", import: @import %>
|
|
|
|
<%= link_to "Back to imports", imports_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
|
|
</div>
|