Article 5S1BN --delete-excluded not working in rsync

--delete-excluded not working in rsync

by
peter7089
from LinuxQuestions.org on (#5S1BN)
I am using rsync to backup my home directory to external hard disk. I want to exclude some directories from the backup and delete them from the backup folder so i added the option --delete-excluded, but it doesn't seem to work because it doesn't delete the excluded directories. This is the command i use:

Code:sudo rsync -aAXv --delete --delete-excluded --exclude=/home/user/.local/share/Trash/* /home/user/ /media/user/ExternalHDD/Backup/latest?d=yIl2AUoC8zA latest?i=PynvLCyK8rw:uNe9p6oJ_Yc:F7zBnMy latest?i=PynvLCyK8rw:uNe9p6oJ_Yc:V_sGLiP latest?d=qj6IDK7rITs latest?i=PynvLCyK8rw:uNe9p6oJ_Yc:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments