From 3b140ce4a0c0d60f974dbf731f6580847dd7ad69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 27 Aug 2023 08:19:59 +0100 Subject: [PATCH] update links for legdur --- content/pages/projects.md | 2 +- content/posts/2022/06/legdur.md | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/content/pages/projects.md b/content/pages/projects.md index bf21ae5..b061d77 100644 --- a/content/pages/projects.md +++ b/content/pages/projects.md @@ -3,7 +3,7 @@ title: "Projects" date: 2022-10-30 --- -- [legdur](https://sr.ht/~cyplo/legdur/) - legdur is a simple CLI program to compute hashes of large sets of files in large directory structures and compare them with a previous snapshot. Think having your photo collection you acquired over time and worrying about bitrot. +- [legdur](https://git.cyplo.dev/cyplo/legdur) - legdur is a simple CLI program to compute hashes of large sets of files in large directory structures and compare them with a previous snapshot. Think having your photo collection you acquired over time and worrying about bitrot. - [genpass](https://git.cyplo.dev/cyplo/genpass) - A simple yet robust commandline random password generator written in Rust. Has an extensive generative test suite, including tests against a Rust port of Dropbox's password strength tester zxcvbn. - [netlify deployer](https://pypi.org/project/netlify-deployer/) - A Python CLI tool to deploy a website to Netlify using their incremental API client. Not the best code but works like a charm. - [my dotfiles](https://git.cyplo.dev/cyplo/dotfiles) - all of the settings for all of my machines, automated using Nix diff --git a/content/posts/2022/06/legdur.md b/content/posts/2022/06/legdur.md index 6f30992..62ca6fb 100644 --- a/content/posts/2022/06/legdur.md +++ b/content/posts/2022/06/legdur.md @@ -9,7 +9,7 @@ I have a collection of photos & documents that I really care about. I synch them between computers using syncthing and also run backups regularly. What I didn't have was a way to quickly detect bitrot. -Enter [legdur](https://lib.rs/crates/legdur) +Enter [legdur](https://git.cyplo.dev/cyplo/legdur) `legdur` is a simple CLI program to compute hashes of large sets of files in large directory structures and compare them with a previous snapshot. Think having your photo collection you acquired over time and worrying about bitrot. @@ -18,6 +18,11 @@ Think having your photo collection you acquired over time and worrying about bit `cargo install legdur --force` should get you there on a system that has Rust installed already. +## Try it out without installation + +If you have a nix-flakes enabled system: +`nix run git+https://git.cyplo.dev/cyplo/legdur.git` + ## Usage `legdur path/to/a/directory/` @@ -42,15 +47,12 @@ finished: ## How it works * it will compute a hash of each file present in the directory structure (it works recursively). -* if previously computed `legdur.db` exists it will compare the current state of the world to the one represented by `legdur.db` and output any differences. Only files that changed or got deleted get printed out, additions are not. +* if previously computed `legdur.db` exists it will compare the current state of the world to the one represented by `legdur.db` and output any differences. Only files that changed or got deleted get printed out, additions or file moves anywhere within the directory are not. * it will move the current `legdur.db` to `legdur.old` and write the new state of the world to a new `legdur.db` - ## Contact & contributions -* Let me know if you'd like to hack on this by contacting me on `legdur@cyplo.dev` or via `cyplo@todon.nl` on Mastodon. -* Discuss on [lobsters](https://lobste.rs/s/klljdd/legdur_keep_your_legacy_durable) +* Let me know if you'd like to hack on this by contacting me on `legdur@cyplo.dev` or via `cyplo@peninsula.industries` on the Fediverse. ## Sources -`hg clone https://hg.sr.ht/~cyplo/legdur` - +`git clone https://git.cyplo.dev/cyplo/legdur.git`