Gregory Zdanowski-House
2276727d6f
Add rebalancing start date ( #25 )
2023-09-04 17:21:11 +02:00
Kenneth Ballard
b550a57615
Using perl to generate the percent text. "bc" isn't available on TrueNAS SCALE. ( #24 )
2023-08-21 18:10:01 +02:00
johnpyp
973855c049
--skip-hardlinks flag ( #22 )
...
* feat: --skip-hardlinks flag
Adds a --skip-hardlinks flag that will not process any files that have an active hardlink.
Without a pre-scan to identify hardlink targets and relink them after copies, all this would result in is duplication.
You'd then have to run another de-duplicator, which doesn't have knowledge of the balancing, and could arbitrarily undo
the balancing work.
* doc: .rebalance suffix -> .balance suffix
* doc: add --skip-hardlinks parameter to README
* test: add unit tests for --skip-hardlink
2023-06-16 16:36:43 +02:00
Markus Ressel
9faf865850
Fix help string
2023-01-27 00:44:42 +01:00
Markus Ressel
d62e6e0be7
added folder structure for testing ( #7 )
...
* added folder structure for testing
added testing.sh script
added testing github action
* delete rebalancing file for testing
* run multiple variants of the command
* fix "integer expression expected"
* added assertions
* output logged data
2022-03-29 04:02:13 +02:00
Markus Ressel
b5fcf1ad0c
-F, --fixed-strings PATTERNS are strings ( #8 )
...
-x, --line-regexp match only whole lines
2022-03-29 03:41:31 +02:00
Markus Ressel
40ebafc233
ignore file if missing on disk ( #5 )
2020-07-31 16:09:45 +02:00
Markus Ressel
fbf83777fc
ignore shellcheck warnings for ls
2020-07-31 15:57:12 +02:00
Markus Ressel
c070f4a178
fixed passes parameter, added shorthands
2020-07-30 20:05:27 +02:00
Markus Ressel
b258b6aa3b
added ability to disable passes tracking
2020-07-30 17:45:43 +02:00
Markus Ressel
3d02d6c274
added -checksum and -passes parameters, added logic to skip checksum, added logic to limit max passes, print configuration on startup, added help message
2020-07-30 17:38:02 +02:00
Markus Ressel
67a75a52b3
added gitignore, shellcheck fix
2020-07-30 16:29:27 +02:00
Markus Ressel
ea7a5501b3
keep track of rebalances in a 'database' file
2020-07-30 16:27:57 +02:00
Markus Ressel
af0e156c9f
use case sensitive comparison for checksum
2020-07-30 15:51:57 +02:00
Markus Ressel
39fe636b8e
remove unnecessary md5 for easier debugging
2020-07-30 15:51:03 +02:00
Markus Ressel
c85713ab47
added checksum test to ensure file attributes, permissions and content match
2020-07-30 15:30:11 +02:00
Markus Ressel
704e7d4390
added comments
2020-07-28 17:31:10 +02:00
Markus Ressel
d9744e191a
print Done! in green
2020-07-28 17:28:32 +02:00
Markus Ressel
418b965fc1
print progress in green
2020-07-28 17:26:40 +02:00
Markus Ressel
7004f91611
added progress output
2020-07-28 17:10:35 +02:00
Markus Ressel
dfdae73d76
case insensitive comparison
2020-07-28 16:52:04 +02:00
Markus Ressel
fecf86b1cc
case insensitive comparison
2020-07-28 16:51:53 +02:00
Markus Ressel
6ebd749f5e
added os type distinction
2020-07-28 16:32:39 +02:00
Markus Ressel
1b0c6795f9
added empty lines before 'Done!' message
2020-07-28 16:23:07 +02:00
Markus Ressel
1da3101ca9
renamed script file
2020-07-28 04:27:35 +02:00