rsync --files-from or --include-from

You can go with include filters and --include-from: Complex includes/excludes with rsync

Or you can go with a find command:

cd
rsync -v --files-from <(find gnupg/ .pki/ .gnome2/keyrings/ \
  .mozilla/firefox/*.default/bookmarkbackups/ \
  .mozilla/firefox/*.default/bookmarks.html .mozilla/firefox/*.default/*.db \
  .mozilla/firefox/*.default/*.sqlite) \
 ~ /path/to/backup

I think you may need to add the --recursive option and use --files-from.


I think the file name in your list.lst must start with + or - like:

- *.o
- foo/
+ *.exe
+ 123/456/*

One possible solution is described in the following web page. It looks like that error line is misleading, check the "code" error that comes latter.

http://kenfallon.com/rsync-mkstemp-failed-no-such-file-or-directory-2/

https://access.redhat.com/solutions/60592

I have similar problem with "(code 23)" but I am still don't know why or how to fix it. If I put the files to transfer (foo*.xml) in the command line rather than in the --files-from file, it works. I am starting to think that --files-from does not like patterns with asterisks, question marks, etc. Perhaps I need to use --include-from, the problem is that I found --include-from confusing to include and exclude files.

0 Success 1 Syntax or usage error 2 Protocol incompatibility 3 Errors selecting input/output files, dirs 4 Requested action not supported: an attempt was made to manipulate 64-bit files on a platform that cannot support them; or an option was specified that is supported by the client and not by the server. 5 Error starting client-server protocol 6 Daemon unable to append to log-file 10 Error in socket I/O 11 Error in file I/O 12 Error in rsync protocol data stream 13 Errors with program diagnostics 14 Error in IPC code 20 Received SIGUSR1 or SIGINT 21 Some error returned by waitpid() 22 Error allocating core memory buffers 23 Partial transfer due to error 24 Partial transfer due to vanished source files 25 The --max-delete limit stopped deletions 30 Timeout in data send/receive 35 Timeout waiting for daemon connection