• 0 Posts
  • 199 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle



  • Backup backup backup! If you have btrfs them just take a snapshot first: instantly.

    One could do a non-destructive rename first. E.g. prepend deleteme. to the file name, sanity check it, then ‘rollback’ by renaming back without the prefix or commit and delete anything with the prefix.





  • I have exactly the same problem.

    I got as far as using fdupe to identify duplicates and delete the extras. It was slow.

    Thinking about some of the other comments… If you use a tool to create hardlinks first, then one could then traverse the entire tree and deleting a file if it has more than one hardlink. The two phases could be done piecemeal and are cancelable and restartable.