dat-ecosystem / dat

:floppy_disk: peer-to-peer sharing & live syncronization of files via command line
https://dat.foundation
BSD 3-Clause "New" or "Revised" License
8.25k stars 449 forks source link

[cmd] PUSH - view progress on remote peers #648

Open joehand opened 7 years ago

joehand commented 7 years ago

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 commented 6 years ago

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

da2x commented 5 years ago

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.

RangerMauve commented 5 years ago

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

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

joehand commented 5 years ago

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

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

joehand commented 5 years ago

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