I've googled around for this for a couple of days and don't seem to be getting anywhere.
I'm using Grsync and what I want it to do is in essence very simple. I want to be able to plug in any drive into my laptop and run rsync on it to back up all the user documents on there to another external hdd and to exclude everything else. Working on the principle that user documents don't always appear where we'd expect I want rsync to look through the whole drive and filter what it backs up by file type. I am only having partial success, however.
I am using the 'filter' option in the 'additional options' box. I am using the commandand I am attaching the filter file I have written. (I have added the .txt extention to upload it).Code:--filter='merge /home/tim/Desktop/filter'
I have tested this script on my home folder and here's what's going wrong. Rsync will copy the entire directory structure regardless of whether there are any files to be copied over in those directories. I am also getting only some file types getting included and not others. .odt and .ods files are copied, for instance, but not .doc or .rtf.
I am scratching my head at this point. Any help is appreciated. I'm not attached to using Grsync so if you have a suggestion or something I can do from the command line, that would work for me too. Thank you so much,