@@ -52,7 +52,7 @@ The Dat Protocol\footnote{\url{https://www.datprotocol.com/}} is a peer-to-peer
...
@@ -52,7 +52,7 @@ The Dat Protocol\footnote{\url{https://www.datprotocol.com/}} is a peer-to-peer
As a distributed file sharing protocol, it differs from BitTorrent in that contents can be updated by their author.
As a distributed file sharing protocol, it differs from BitTorrent in that contents can be updated by their author.
This report aims at showing that Dat can be used with a Smallworld setup, to continuously replicate files among peers, similarly to a Dropbox instance. We will explain how to configure Dat to continously replicate files, and we will cover the case where we replicate files between A and B with the Raspberry Pi acting as an intermediary in case only one of the clients is online at a given time.
This report aims at showing that Dat can be used with a Smallworld setup, to continuously replicate files among peers, similarly to a Dropbox instance. We will explain how to configure Dat to continously replicate files, and we will cover the case where we replicate files between two clients A and B with the Raspberry Pi acting as an intermediary in case only one of the clients is online at a given time.
% \subsection{Installation}
% \subsection{Installation}
% The installation of Dat is quite straightforward. The dat-cli command utility allows to simply interact with Dat files. The commands in Figure \ref{cmd:dat_install} are used to install dat-cli.
% The installation of Dat is quite straightforward. The dat-cli command utility allows to simply interact with Dat files. The commands in Figure \ref{cmd:dat_install} are used to install dat-cli.
...
@@ -72,10 +72,10 @@ This report aims at showing that Dat can be used with a Smallworld setup, to con
...
@@ -72,10 +72,10 @@ This report aims at showing that Dat can be used with a Smallworld setup, to con
\subsection{Real time synchronization with dat-store}
\subsection{Real time synchronization with dat-store}
While Dat provides a command tool called \emph{dat-cli}, it is not able to run in background, and cannot be remotely controlled and is thus not very practical for this application. \\
Dat provides a command tool called \emph{dat-cli} that is advised for downloading and syncing Dat archives, but it is not able to run in background, and cannot be remotely controlled and is thus not practical for this application. \\
A more suited tool is \emph{dat-store}. It provides a service that can be run in background, can be remotely controlled, and does all the work for you.
Dat-store introduces the concept of provider. Providers are instances of dat-store running either locally or remotely. The default one is your local instance, but you can also configure other providers, like the Raspberry Pi. \\
A more suited tool is \emph{dat-store}. It implements the same commands as \emph{dat-cli} and on top of that it provides a service that can be run in background, and can be remotely controlled. \\
Dat-store introduces the concept of provider. Providers are instances of dat-store running either locally or remotely. The default provider is your local instance, but you can also configure other providers, like the Raspberry Pi.
This notion is particularly useful for remote control of other providers. \\
This notion is particularly useful for remote control of other providers. \\
% It is possible to create a shared folder using \emph{dat share} in the folder to share. This command will give a dat url starting with \emph{dat://} that can be used to retrieve the files on other clients.
% It is possible to create a shared folder using \emph{dat share} in the folder to share. This command will give a dat url starting with \emph{dat://} that can be used to retrieve the files on other clients.