iwanthilt.blogg.se

Mac compare folders
Mac compare folders











Search for the Run Shell Script action in the search field, then drag the icon into the main window on the right-hand side Find the Run Shell Script command in the Actions listĤ. Choose Workflow when prompted, as below Create a new workflow in Automatorģ. Open Automator from the Applications folder or within SpotlightĢ. This method is particularly effective when you have multiple folders in different locations that need to be synchronised, because you can enter any number of rsync commands into the script.ġ. While rsync certainly gets the job done, it’s much more useful when combined with Automator to simplify the whole process. Note: rsync is a very powerful tool that has dozens of command-line options, so it’s worth reading the user manual in more depth (in Terminal, just type man rsync and press Enter). This example creates a copy of Documents in the top level of the external disk’s folder structure. This example keeps everything in the Home Folder’s Documents directory synchronised with the external disk named MacBook Pro Backup and deletes anything in the destination folder which isn’t already in the source folder. Rsync -aE –delete “~/Documents/” “/Volumes/Macbook Pro Backup/”

mac compare folders

In the Terminal window type rsync -aE –delete ~/ / “” Open Terminal from the Utilities folder or SpotlightĢ.

#MAC COMPARE FOLDERS MAC OS X#

Rsync is a very useful utility built into Mac OS X which allows the differences between two sets of files to be synchronised. Rsync can also sync data over a network, so if your folders are on another computer this method can be tweaked slightly to use the relevant remote hostname.ġ.











Mac compare folders