uglygus / rsync-time-browse

Find file changes within hardlinked backups like timemachine
MIT License
4 stars 2 forks source link

what does the output with md5 option mean? #1

Closed haemi closed 2 years ago

haemi commented 2 years ago

I did a test with the default options and with md5 enabled; I don't get the md5-output completely, as there's the hash missing sometimes and there are more lines than the non-md5-option:

/Users/stefan/backup/Zettelkasten/2022-03-05-072359/Zettelkasten/foo.md
9  backups at root: /Users/stefan/backup/Zettelkasten
2022-03-05-072625/Zettelkasten/foo.md   _size= 20   _md5=
2022-03-05-072624/Zettelkasten/foo.md   _size= 20   _md5= 2996363acf6e95619ad32c8ba6073694
2022-03-05-072354/Zettelkasten/foo.md   _size= 13   _md5=
2022-03-05-072353/Zettelkasten/foo.md   _size= 13   _md5= 71cdcce5dfbbbf0a3281608ffb804907
2022-03-05-072346/Zettelkasten/foo.md   _size= 5    _md5=
2022-03-05-072318/Zettelkasten/foo.md   _size= 0    _md5=

/Users/stefan/backup/Zettelkasten/2022-03-05-072359/Zettelkasten/foo.md
9  backups at root: /Users/stefan/backup/Zettelkasten
2022-03-05-072625/Zettelkasten/foo.md   _size= 20
2022-03-05-072354/Zettelkasten/foo.md   _size= 13
2022-03-05-072346/Zettelkasten/foo.md   _size= 5
2022-03-05-072318/Zettelkasten/foo.md   _size= 0

Is this expected behavior?

uglygus commented 2 years ago

That output should be clarified. Its convoluted. If you use the -a option you will see that it lists _size=xxx then if the next file is the same size it doesn't list the size again, just a double-quote. The md5 should work the same way but it just leaves md5 blank if it was the same as the previous file. I'll get that cleaned up.

uglygus commented 2 years ago

The latest version should now print _size and _md5 for every file listed.