Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rsync?

13 views
Skip to first unread message

Brian O'Brien

unread,
Apr 9, 2013, 4:51:14 PM4/9/13
to
I have a directory with a few gig of files in it.
I want to copy this directory into a second directory that may or may not have the 'same' file in it.

maybe it's just as simple as using cp -r source dest ?

if the file doesn't exist in the destination it will after the copy and if it did then another it will just overwrite the destination copy?

Thomas 'PointedEars' Lahn

unread,
Apr 9, 2013, 7:50:33 PM4/9/13
to
<http://www.catb.org/~esr/faqs/smart-questions.html>

--
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Barry Margolin

unread,
Apr 10, 2013, 11:31:34 AM4/10/13
to
In article <0555d9f5-c0cd-459c...@googlegroups.com>,
Rsync is probably the best way to do it, as suggested in your subject
line. It won't bother replacing a file if it's already identical to the
file in the source. It also has an option to remove files from the
destination if they're not in the source, if you need that.

--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
0 new messages