Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Questions about deleting user folder and another about trash bin
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Kokopelli" data-source="post: 192090"><p>An interesting question...</p><p><strong>This is not thoughly tested. I am reasonably certain it is right and it works right in my simple tests.</strong> On the other hand I don't want to be responsible for wiping your iTunes library, so backup the destination folder before you do this.</p><p></p><p>assuming the folders have the same directory structure:</p><p></p><p>"cp -Rn <original directory>/ <destination directory>"</p><p></p><p>cp => copy</p><p></p><p>-Rn => recurse down subdirectories and do not overwrite existing files</p><p></p><p><original directory>/ => all the files in the original directory. The ending / is important else it will include the parent directory</p><p></p><p><destination directory> => where to send it (no following slash)</p><p></p><p>So as an example "cp -Rn ~/myNewDocs/ ~/Documents" would copy all files in myNewDocs that did not already exist in Documents.</p><p></p><p>Alternatively you could use something like <a href="http://www.econtechnologies.com/site/Pages/ChronoSync/chrono_overview.html" target="_blank">Chrono Sync</a>. That is true synchronization though and not exactly what you are asking for. Caveat: I have never used this program, but there is at least one person on these forums who does and seems happy with it. If you want to synchrinize, or even just hae a spiffy GUI, this seems like a good choice.</p><p></p><p>I use subversion for some folders, but that is well beyond what I would recommend for most people. I used to use Unison which is free and a good fit, but I can't find the OS X native code for it on the web (the link is dead).</p></blockquote><p></p>
[QUOTE="Kokopelli, post: 192090"] An interesting question... [b]This is not thoughly tested. I am reasonably certain it is right and it works right in my simple tests.[/b] On the other hand I don't want to be responsible for wiping your iTunes library, so backup the destination folder before you do this. assuming the folders have the same directory structure: "cp -Rn <original directory>/ <destination directory>" cp => copy -Rn => recurse down subdirectories and do not overwrite existing files <original directory>/ => all the files in the original directory. The ending / is important else it will include the parent directory <destination directory> => where to send it (no following slash) So as an example "cp -Rn ~/myNewDocs/ ~/Documents" would copy all files in myNewDocs that did not already exist in Documents. Alternatively you could use something like [URL=http://www.econtechnologies.com/site/Pages/ChronoSync/chrono_overview.html]Chrono Sync[/URL]. That is true synchronization though and not exactly what you are asking for. Caveat: I have never used this program, but there is at least one person on these forums who does and seems happy with it. If you want to synchrinize, or even just hae a spiffy GUI, this seems like a good choice. I use subversion for some folders, but that is well beyond what I would recommend for most people. I used to use Unison which is free and a good fit, but I can't find the OS X native code for it on the web (the link is dead). [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Questions about deleting user folder and another about trash bin
Top