question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make `dat sync` consistent with other commands

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mafintoshcommented, May 25, 2017

I’d suggest, we change it to do the following:

  1. Have dat sync behave exactly as dat <link>
  2. Have dat clone be the same as dat sync but exit once done, and fail if it cannot find peers
  3. Have dat pull be the same as dat sync but exit once done, fail if it cannot find peers, and fail if the dat is not there

Introduce --no-upload and --no-download to disable upload and download.

Both clone and pull should call .leave on discovery-swarm when done as well to announce from the disc network

0reactions
okdistributecommented, Mar 24, 2020

This will be fixed by #1173

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found