bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp command in linux issue


From: Eric Blake
Subject: Re: cp command in linux issue
Date: Sun, 22 Nov 2009 15:39:48 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[please don't top-post on technical lists]

According to Patrick Chin on 11/22/2009 11:54 AM:
> I wish there was a way to just copy files that are missing without prompting. 
> Especially over a very slow connection, it would be more efficient to just do 
> an update rather than prompting and overwriting implicitly.
> 
> Does anyone know what that argument is?

As I already mentioned, try cp -un.  And if that doesn't do what you want,
then look into rsync.  For that matter, rsync is better for copying over
slow connections, because it uses compression to speed up the bottleneck
of transfer rates.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksJvbQACgkQ84KuGfSFAYA/SQCfRZk8F5klu35DDej8NPVewYep
b08An3GoH1qYeu3X6D8fsThWmIR+YBkZ
=3KCh
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]