Bug 6578 - put out skipped dirs files w/ perms and ownership
put out skipped dirs files w/ perms and ownership
Product: rsync
Classification: Unclassified
Component: core
All Linux
: P3 enhancement
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on:
  Show dependency treegraph
Reported: 2009-07-27 14:21 UTC by Toralf Förster
Modified: 2009-07-29 02:33 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster 2009-07-27 14:21:09 UTC
It would be a nice to have if rsync gives a stats about skipped dirs (eg. those from an exclude file).


If someone is using rsync to backup an entire system except directories like tmp/, .ccache and so on - then in case of restoring such a system after an accident he needs the perms and ownership of the skipped dirs.
Comment 1 Matt McCutchen 2009-07-27 19:55:38 UTC
You can exclude all the contents of the temporary dirs and still copy the dirs themselves: --exclude='/tmp/*' .
Comment 2 Toralf Förster 2009-07-28 02:44:45 UTC
Fine - but can I use the same syntax w/ using an exclude file ?
Comment 3 Matt McCutchen 2009-07-28 17:53:17 UTC
Yes.  If you need to append the * to every line of an existing exclude file, you can do that in an automated fashion with sed.
Comment 4 Toralf Förster 2009-07-29 02:33:30 UTC
Yep - works. (Now I've only to test whether tar excepts that file too as it doee it before "/*" was appended to every line)