dat icon indicating copy to clipboard operation
dat copied to clipboard

[cmd] PUSH - view progress on remote peers

Open joehand opened this issue 7 years ago • 5 comments

From @joehand on January 4, 2017 16:32

Show remote progress bars when connected to peers.

We could start this as a basic dat push that runs until all peers are updated, then exits.

Copied from original issue: joehand/dat-next#62

joehand avatar Feb 16 '17 00:02 joehand

I am trying to sync many dat files to a hypercored instance. I listed hashes I care about in its feeds file, but now I have to run dat sync for as long that the dat file gets synced there. But the issue is that I would like to automatize this process. Ideally, it would sync only for one peer and after that peer would get the whole dat, it would exit. So that I can then do this for the next dat repo. @mitar

Via https://github.com/datproject/dat/issues/936

joehand avatar Feb 21 '18 17:02 joehand

This would be great:

dat push --to example.com:3200   \
         --to 172.20.9.30:451 && \
    echo "Dat pushed successfully and quit."

This would facilitate integration with the deployment process in static-site generators too.

da2x avatar Apr 14 '19 21:04 da2x

Yeah, in order to get this, I think we'd need the following:

  • [ ] Docs on how to look at peer health
  • [ ] A high level module to deal with peer health
  • [ ] Attempt to connect to the IPs specified in to
  • [ ] Monitor changes in content on the peer until it's up to date

@joehand You mentioned before that the Dat CLI did something similar already. Would you mind giving a summary of how that works?

RangerMauve avatar Apr 14 '19 21:04 RangerMauve

https://github.com/joehand/dat-push/

and see https://github.com/joehand/dat-push/issues/9

joehand avatar May 01 '19 20:05 joehand

We could put this in as an extension probably...

joehand avatar May 01 '19 20:05 joehand