Ds

Dsync: a tool to sync source directories/files to a target directory

Hacker News

Dsync: a tool to sync source directories/files to a target directory

Hello HN. I worked on this small project recently called dsync. I have a few directories where I keep adding stuff and I need to sync them to an external drive from time to time. In the spirit of "write your own tools", I wrote my own. The tool itself is really simple. It tries to sync source directories or files to a destination directory based on size and modification time, basically copying the source files if they don't match. dsync can use multiple threads (specified via an option). It uses a bounded multi-producer multi-consumer queue (C implementation of Dmitry Vyukov's bounded MPMC queue using gcc atomic builtins). The main thread traverses the given sources and adds the files to the queue. Other threads dequeue entries from the queue and do the sync/copy work concurrently. dsync performs well with multiple threads compared to GNU cp when copying directories with a lot of small files such as the linux kernel repository. More details are in the README.

Share card

Actual performance

7points
8comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
66%66% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
50%50% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
42%42% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Strong signals: using · Missing: mac, agents, macos
37%37% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
32%32% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Gn
GnuRAMage – A Bash tool to sync files between HDDs and RAM disks41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GnuRAMage – A Bash tool to sync files between HDDs and RAM disks

Hacker News2
Dotenv
Dotenv33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Sync .env files

Indie Hackers7$750/moapis
Du
DummyIDP – Test SAML SSO and SCIM Directory Sync64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DummyIDP – Test SAML SSO and SCIM Directory Sync

Hacker News2
To
Tool that hashes files into poems43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tool that hashes files into poems

Hacker News1
MsgBox
MsgBox14%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MsgBox is a tool for viewing the contents of msg files.

Indie Hackerscommitment-side-project
fs
fstail – Scan a directory for changed files and tail them35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

fstail – Scan a directory for changed files and tail them

Hacker News3
Cu
Cumul – Concatenate all files in a directory for LLMs35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Cumul – Concatenate all files in a directory for LLMs

Hacker News3
Di
Directory of Breeding Birds in Puerto Rico36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Directory of Breeding Birds in Puerto Rico

Hacker News1
Di
Directory of NextJS Starters and Boilerplates35%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Directory of NextJS Starters and Boilerplates

Hacker News2
Di
Directory of mashups36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Directory of mashups

Hacker News2