Links for 2011-03-01
- Copying directory trees with rsync -- I Still Know What You Learned Last Summer
Copy only the directory structure without copying any files:<br />
<br />
$ rsync -a -f"+ */" -f"- *" source/ destination/<br />
<br />
The two -f arguments mean, respectively, "copy all directories" and then "do not copy anything else".<br />
<br />
Copy only directories and Python files:<br />
<br />
$ rsync -a -f"+ */" -f"+ *.py" -f"- *" source/ destination/<br />
<br />
This is really handy for replicating the general directory structure but only copying a subset of the files.
(tags: unix rsync copy directories howto) - Debian volatile replaced by new squeeze updates suite
(tags: debian repository squeeze volatile)

Comments
Post new comment