I'm using rsync with --delete-excluded flag but I still see contents in the destination folder. I'm trying to exclude and delete excluded cache from all chromium like browsers. Here's what I'm doing
rsync -av --delete --exclude-from='exclude.txt' --delete-excluded /home/user /media/user/extDrive/backup/
the exclude.txt:
**/Default/Cache/**
I've also tried:
**/Default/Cache/
But I'm still seeing contents inside Default/Cache at the destination. It seems to be excluded correctly, but it's not deleting the contents from the destination.
Any ideas?
rsync --delete-excluded --archive --verbose --exclude-from=exclude_files /mnt/c/Users/dsmyt/* [email protected]:/media/sdb/backup/s18-windows
to thisrsync --dry-run --delete-excluded --archive --verbose --exclude-from=exclude_files /mnt/c/Users/dsmyt [email protected]:/media/sdb/backup/s18-windows
to get it to work properly.exclude.txt
from this**/Default/Cache/**
to thisDefault/Cache
.