Score:1

rsync does not include some files

de flag

In order not to carry all the hidden home folders in the backup, I excluded '.*' in the exclusion file.

But now there are some files, which are inside some subdirectories of the hidden directories, therefore excluded.

Well, I can't include these files.

rsync --archive --verbose --human-readable --delete --exclude-from='rsync-exclude-files-and-folders' --include-from='rsync-include-files-and-folders' /home/andrea/ /media/andrea/maxtor-Est1000/

rsync-exclude-files-and-folders

.*
node_modules
snap
software
VirtualBox VMs
condivisa-windows-vm
*node_modules*
Scaricati
Scrivania
/package-lock.json
/package.json

rsync-include-files-and-folders

/home/andrea/.var/app/org.mozilla.firefox/cache/mozilla/firefox/oslnwe1t.default-release
/home/andrea/.config/libreoffice/4/user

I've read the man pages, but I haven't found an explanation for including excluded files and folders in the exclude file.

There is a solution?

Kubuntu 23.04

vanadium avatar
cn flag
Please clarify: "which are inside some subdirectories of the hidden directories, therefore excluded.". Perhaps specifically tell which files you expected to be included are not.
terdon avatar
cn flag
@vanadium isn't that what the two files given in the OP tell us?
vanadium avatar
cn flag
@terdon what I see are contents of files listing what to include and what to exclude, but apparently there are some files that, unexpectedly, are excluded as well. As far as I can see, examples of such files are not mentionned in the question.
terdon avatar
cn flag
It's the specific, two filenames listed in the include file, @vanadium. Those are not being copied because the exclude file has `.*`, so the config and var hidden sirs are skipped and those files are never seen by rsync.
vanadium avatar
cn flag
@tedon, Thanks, I see!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.