Make `dat sync` consistent with other commands
See original GitHub issueThe dat <link> <dest>
is extremely useful when dealing with dats on servers since it is idempotent, but noticed we haven’t documented it anywhere
Either we should document it or make sync
do the same thing.
Currently the documented approaches forces you to clone first which disables upload and implies that you know what state the dat was in before you ran the command, which is tricky when you just wanna automate syncing
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Make `dat sync` consistent with other commands · Issue #784
The dat is extremely useful when dealing with dats on servers since it is idempotent, but noticed we ... Make dat sync consistent...
Read more >Linux Sync Command Help and Examples
On Unix-like operating systems, the sync command synchronizes corresponding file data in volatile memory and permanent storage.
Read more >Using the AWS Command Line Interface with AWS DataSync
Use the AWS Command Line Interface with AWS DataSync to create an agent and locations, and run tasks.
Read more >Keeping Linux files and directories in sync with rsync
File synchronization made easy and efficient with rsync.
Read more >AWS Sync Command: A Comprehensive Guide with 6 ...
This Command is employed to sync directories to S3 buckets, prefixes, and the other way around . AWS sync command recursively copies new...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d suggest, we change it to do the following:
dat sync
behave exactly asdat <link>
dat clone
be the same asdat sync
but exit once done, and fail if it cannot find peersdat pull
be the same asdat sync
but exit once done, fail if it cannot find peers, and fail if the dat is not thereIntroduce
--no-upload
and--no-download
to disable upload and download.Both
clone
andpull
should call .leave on discovery-swarm when done as well to announce from the disc networkThis will be fixed by #1173