Can't "quietly" merge folders.

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
sheepy
Posts: 233
Joined: Sat 07 May 2011, 03:26
Location: GA
Contact:

Can't "quietly" merge folders.

#1 Post by sheepy »

Each time I try to merge folders, even having "quiet" selected, it asks me if I want to overwrite each file. This is very annoying when I have 4,000 files to copy.
Is there a way I can just make it skip the files that are already there?

User avatar
lithpr
Posts: 86
Joined: Thu 10 Mar 2011, 06:33

#2 Post by lithpr »

you might want to consider 'cp -fr source target' from the command line in such situations.

User avatar
sheepy
Posts: 233
Joined: Sat 07 May 2011, 03:26
Location: GA
Contact:

#3 Post by sheepy »

lithpr wrote:you might want to consider 'cp -fr source target' from the command line in such situations.
Thank you. The -f means force, right? Won't it overwrite the files? How can I make it skip files that are already named the same?

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#4 Post by Béèm »

Type in a console cp --help
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
sheepy
Posts: 233
Joined: Sat 07 May 2011, 03:26
Location: GA
Contact:

#5 Post by sheepy »

Béèm wrote:Type in a console cp --help
Thanks :) cp -nr was apparently what I needed xD

User avatar
lithpr
Posts: 86
Joined: Thu 10 Mar 2011, 06:33

#6 Post by lithpr »

oic what you mean. Never heard on the -n switch before. cool! I always did something like:

Code: Select all

 for file in a/* ; do [ -e b/$(basename $file) ] || cp $file b ; done
"The More You Know" :)

User avatar
r1tz
Posts: 162
Joined: Thu 09 Sep 2010, 05:19
Location: In #puppylinux (IRC)

#7 Post by r1tz »

It would be great if this was integrated into the GUI, both -fr and -nr.

The quiet option doesn't seem to work. Or is it just me?

EDIT:quiet --> quiet
Last edited by r1tz on Wed 29 Jun 2011, 19:28, edited 1 time in total.

Shel
Posts: 103
Joined: Sat 11 Apr 2009, 17:33
Location: Seattle, WA, USA, or Southern France

#8 Post by Shel »

Nah, it's not just you.

I was "rescuing" the data from a broken XP installation, using Puppy 4.3.1, and noticed the same thing; even with "quiet" checked in Puppy's copier window, I had to verify each file.

I, too, resorted to the 'cp' command.

-Shel

Post Reply