PDA

View Full Version : How to copy a single folder plus contents


Irl
08-13-2009, 06:35 AM
On my volume Extra there is a top-level folder ToBackup. I want to Smart-Update it to a sparse image called ToBackupBackup. I started with the Backup - All Files script, added and added two commands to it:
ignore *
copy ToBackup
and saved it as "Backup pix SuperDuper"
When I run that script, everything on Extra is copied. What should the commands be to copy just the one ToBackup folder and its contents?

Irl
08-13-2009, 06:47 AM
I just noticed the forum has a "similar threads" feature and found DN's "I just wanted to copy a single folder but it copied the whole drive". I tried adding
ignore .*
so now the commands are
ignore *
ignore .*
copy ToBackup
and now it works perfectly. But why?? The problem was not that it was copying some of the hidden files but that it was copying a bunch of other folders with normal names.

dnanian
08-13-2009, 07:57 AM
Even better, you should include "Exclude all files". But ignore * should have (generally) worked, assuming there were no hidden folders.