I want to copy or backup a large folder A to B without
rsync (just because I can): https://stackoverflow.com/a/65485164/1707015.
It works but from time to time I want to clean up B and delete old files in B (when they are deleted in A).
What I have to get the deleted files in A (so I can then delete them in B also):
$ cat A_files.txt # for example: think the small letters as paths like ./some/path/file.yaml a c d e f $ cat B_files.txt a b c d $ \grep -f A_files.txt -F -v B_files.txt b
\ is just for not using any grep aliases with colors or something.)
This works, but only for small files. For files with more than 100 MB file names each, I need > 100 GB RAM :O
Does anyone have a more resource-efficient variant for me? Of course
rsync, but that is not to be used here just for fun and for practice purposes.