SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
how to provide arguments to copy (cp) command - the default
Author Message
Post how to provide arguments to copy (cp) command - the default 
On Fri, Jun 3, 2011 at 11:09 AM, Torsten Krah
<tkrah < at > fachschaft.imn.htwk-leipzig.de> wrote:
Am Freitag, den 03.06.2011, 14:03 +0200 schrieb Ruediger Meier:
Isn't this what you need?

man cp:
-a, --archive
     same as -dR --preserve=all
[..]
--preserve[=ATTR_LIST]
     preserve the specified attributes
     (default: mode,ownership,timestamps), if possible additional
     attributes: context, links, xattr, all

No thats the problem.
What i want is:

cp -ldR --preserve=timestamps

but there is no official way to specify this args (other than to modify
the perl script -  which is not that hard).

You could provide a script for cmd_cp which augments things before
passing off to the real cp.

-scott

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB