https://github.com/arkanosis/hl2sl
Convert hardlinks to symlinks for filesystems that don't support hardlinks
https://github.com/arkanosis/hl2sl
hardlink symlink
Last synced: 7 months ago
JSON representation
Convert hardlinks to symlinks for filesystems that don't support hardlinks
- Host: GitHub
- URL: https://github.com/arkanosis/hl2sl
- Owner: Arkanosis
- License: isc
- Created: 2019-10-12T23:10:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T23:22:12.000Z (about 6 years ago)
- Last Synced: 2025-01-27T11:49:47.078Z (9 months ago)
- Topics: hardlink, symlink
- Language: Shell
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hl2sl [](https://semver.org/spec/v2.0.0.html) [](/LICENSE)
**hl2sl** is a simple tool to transform hardlinks to symlinks for filesystems that don't support hardlinks, such as BeeGFS.
## How it works
hl2sl replaces all files with more than one hardlink to symlinks to a unique hardlink in the `.hardlinks` directory.
Hardlinks in the `.hardlinks` directory are named after their inode, so it's possible to run the script several times.
Replacement symlinks have the same modification time as the original hardlinks.
## Usage
Run `hl2sl` from the directoy to convert.
## Dependencies
hl2sl currently depends on python2 as a workaround for old distros which do not ship a recent enough version of binutils (eg. RHEL6).
Starting somewhere in 2020, as RHEL6 and python2 will both be EOL, a recent version of binutils (one which supports the `-r` flag of `ln`) will be required instead.
## Contributing and reporting bugs
Contributions are welcome through [GitHub pull requests](https://github.com/Arkanosis/hl2sl/pulls).
Please report bugs and feature requests on [GitHub issues](https://github.com/Arkanosis/hl2sl/issues).
## License
hl2sl is copyright (C) 2019 Jérémie Roquet and licensed under the ISC license.