« Optimizing Node Reference Autocomplete | Main | Tweak REU application form »

December 19, 2011

Copy directories and maintain permissions

After googling it a second time, I usually decide I should just blog it for future reference:

$ sudo cp -rfp ~/Desktop/blah/* /var/blah

the -p is the key

from $ man cp

-p same as --preserve=mode,ownership,timestamps

--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps),
if possible additional attributes: context, links, xattr, all

source

Posted by kkwaiser at December 19, 2011 10:19 AM

Trackback Pings

TrackBack URL for this entry:
http://mblog.lib.umich.edu/mt-bin/mt-tb.cgi/2329

Listed below are links to weblogs that reference Copy directories and maintain permissions:

» イルビゾンテ セール 2014 from イルビゾンテ セール 2014
The popular belief is that if you ever buy from a Coach outlet then you cannot have the money to buy one of many pocketbooks from a conventional shop. That belief is not likely reality. [Read More]

Tracked on February 8, 2014 09:42 AM

» アナスイ 財布 新作 2014 from アナスイ 財布 新作 2014
Hello Webmaster. I truly just like your article and the web site all in all! The piece of writing is actually very plainly written and without difficulty understandable. [Read More]

Tracked on February 11, 2014 06:31 AM

» コーチ 財布 2014 新作 from コーチ 財布 2014 新作
Hello Webmaster. I truly just like your article and the web site all in all! The piece of writing is actually very plainly written and without difficulty understandable. [Read More]

Tracked on February 11, 2014 06:41 AM

» クロエ バッグ 激安 from クロエ バッグ 激安
I can see that you are are genuinely passionate about this! I am trying to build my own website and youve helped me with some great information. [Read More]

Tracked on February 13, 2014 01:00 AM

» ポールスミス アウトレット from ポールスミス アウトレット
Hi there,I enjoy reading through your article post, I wanted to write a little comment to support you and wish you a good continuationAll the best for all your blogging efforts. [Read More]

Tracked on February 13, 2014 06:08 AM

» Ray Ban Sunglasses from Ray Ban Sunglasses
Just a quick note to let you know that I appreciated your insights about the topic. Quite helpful for what I am interested in these days.\nRay Ban Wayfarer sunglasses are simply the most recognizable style in the history of sunglasses. The Wayfarer dis... [Read More]

Tracked on February 21, 2014 09:24 AM

» http://partydressess.blogdetik.com/ from http://partydressess.blogdetik.com/
Data Discussions: Copy directories and maintain permissions [Read More]

Tracked on February 25, 2014 06:45 AM

» kjtslj from kjtslj
Agree with your post. Can you can keep update your post. I want back. bye! [Read More]

Tracked on March 3, 2014 07:41 PM

» 万年筆 モンブラン from 万年筆 モンブラン
Hi there can I use some of the material found in this entry if I provide a link back to your site? [Read More]

Tracked on March 15, 2014 11:41 PM

» dpol central from dpol central
Data Discussions: Copy directories and maintain permissions [Read More]

Tracked on March 23, 2014 03:45 AM

» click here from click here
Data Discussions: Copy directories and maintain permissions [Read More]

Tracked on April 1, 2014 02:47 PM

» Click Here from Click Here
Data Discussions: Copy directories and maintain permissions [Read More]

Tracked on April 7, 2014 05:27 AM

» ktlaecards.com from ktlaecards.com
Data Discussions: Copy directories and maintain permissions [Read More]

Tracked on April 9, 2014 12:43 AM

» http://home.fg123.com from http://home.fg123.com
Data Discussions: Copy directories and maintain permissions [Read More]

Tracked on April 9, 2014 04:57 PM

Comments

Login to leave a comment. Create a new account.