dat
dat copied to clipboard
[cmd] PUSH - view progress on remote peers
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
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
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.
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?
https://github.com/joehand/dat-push/
and see https://github.com/joehand/dat-push/issues/9
We could put this in as an extension probably...