Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > copying files; getting them to ammend current structure and not replace?

copying files; getting them to ammend current structure and not replace?
Thread Tools
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Nov 9, 2003, 10:58 AM
 
Hello all. Have a pretty simple question: How can I get OS X to ammend the current directory structure when copying files instead of completely replace. For example I have a web program and sometimes build or addin mods for it and on my PC box I could just for example copy "admin" to "admin" and it would copy all the new files over and any existing files it would ask if I wanted to overwrite. But in OS X it only gives me the option to replace the admin folder or stop copying. But I don't want to replace the entire folder... I just want to add the new files, which is a pain to copy into their right locations as it goes 6 folder levels at times.
     
Mac Elite
Join Date: Nov 2001
Location: Trafalmadore
Status: Offline
Reply With Quote
Nov 9, 2003, 11:06 AM
 
If you use rsync from terminal it is very easy. You can create a cron job to run them. It will only copy or erase changes to the directory making it run much faster than a full folder copy.
I don't know if that is what you want but it can be completely unattended operation.
     
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Nov 9, 2003, 11:23 AM
 
yes I only want to copy changes to the directory. next time I will give rsync a try. does cp from command line also completely replace the entire folder rather than add the new items?
     
Mac Elite
Join Date: Nov 2001
Location: Trafalmadore
Status: Offline
Reply With Quote
Nov 9, 2003, 12:56 PM
 
Use this syntax : rsync -avz /Users/name /backup

/Users/name is the source and backup is the destination. In this instance backup is a folder at the root volume of the same drive. You can have the destination be some other drive by using /Volumes/drivename/backup

The cp command will not backup resource forks, as rsync will. Use ditto instead of cp if you find the need to use it. cp will copy then entire folder.
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Nov 9, 2003, 04:12 PM
 
Or if you don't like using the command line, and would like a GUI, there are several synchronisation/backup utilities available.

I use Synk X. It's free and very easy to use. Works well.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:47 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2