~hrodude/dui

compare 2 lists of files from the same FS, get size of deletions, updates, inserts
1ddb2733 — Georg Kaemmert 19 days ago
README
05106cb2 — Georg Kaemmert 19 days ago
status: working beta; new -s flag
8712836f — Georg Kaemmert 19 days ago
safe game / funktionierender (messy) Zwischenstand

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~hrodude/dui
read/write
git@git.sr.ht:~hrodude/dui

You can also use your local clone with git send-email.

#find differences in 2 versions of the same directory

dui (delete update insert) enables you to create multiple indexes of the same directory and compare these indexes to get information about new files (inserts), changed files (updates) and deleted files. E.g. in a backup scenario one can decide if incremental or full backup is necessary.

#usage

there are basically two modes

  1. create index dui -d /dir/to/index -f /name/of/index.file
  2. compare index dui -f /name/of/index.file -c /name/of/index2.file Comparison will output a tab-separated list of new, changed, deleted files with their size in bytes.
insert  /my/data/file   5231
update  /my/data/file2  100
update  /my/data/file3  300
delete  /my/date/file4  2425533

Using the -sflag the output will be summarized

insert  1   5231
update  2   400
delete  1   2425533