Results 1 to 3 of 3
i use the system restore cd to copy files from windows partition with windows installation.
i have been using this when im inside t
Code:
cp -a * /mnt/"harddrive2"
what ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-15-2011 #1Linux Newbie
- Join Date
- May 2009
- Location
- Kitchener, Ontario, Canada
- Posts
- 191
copying files with with and exclude certain folders
i use the system restore cd to copy files from windows partition with windows installation.
i have been using this when im inside t
what I would like to know if i can exclude files from being copied. I want to read the files to be excluded from a text file.Code:cp -a * /mnt/"harddrive2"
OR
Alternative method make i could make a bash script but then i have to figure out how to put it into systemrescuecd image before i burn it onto a cd.Last edited by donaldfarkas; 12-15-2011 at 02:11 PM. Reason: better title
- 12-15-2011 #2
Have a look at
Especially the --exclude-from=FILE option.Code:man rsync
You must always face the curtain with a bow.
- 12-22-2011 #3Linux Newbie
- Join Date
- May 2009
- Location
- Kitchener, Ontario, Canada
- Posts
- 191
thank you for the info "rsync" is what im looking for
currently my code isnow for my excludes do i need to add full path for folders?Code:rsync -a * --exclude-from=ex_files.txt _oldData
OR
can I do a while card like?Code:*\Temporary Internet Files\*
OR
if I put this in my excludeswill it be smart enough to just exclude folder automatically?Code:Temporary Internet Files


Reply With Quote
