Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gwpl
Last active December 25, 2018 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwpl/8fe20a7634e821be4760e9c23cada4c5 to your computer and use it in GitHub Desktop.
Save gwpl/8fe20a7634e821be4760e9c23cada4c5 to your computer and use it in GitHub Desktop.
rmlint_example_usage.sh
# more info: https://rmlint.readthedocs.io/en/latest/tutorial.html?highlight=hardlink
# generate script that hardlinks (if you have btrfs or other CoW use reflink or clone)
#rmlint -o sh:rmlint.sh -c sh:hardlink # <- for small outputs
rmlint -o sh:stdout -c sh:hardlink|tee >( xz > rmlint.sh.xz ) # <- for big outputs
#with -p -> paranoia , check files again before removing
./rmlint.sh -x -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment