Because of the "--delete" option rsync will delete any files it finds in the target folder that are not found in the source folder! Folder names (paths) are passed as arguments to shell script ( is first argument we pass to it and is second one) so these names we use in automator itself are irrelevant to bash script.
Omit this option if you want just to add missing (and newer) files from the source folder. Hi, Nivesh, could you send me your automator workflow? 'Again, ignore the input from the Ask for Confirmation action.' Great tutorial, thanks! There might be some other ways to do it, but this one works for me. Hi there, this is an amazing idea, and was actually the first time I have ever used Automator; so go you for educating me there.
Sure, if you want to have it with predefined folders you delete everything from automator workflow except "Run Shell Script" and "New Text Edit Document" (if you want to see the output). I started with exactly what was cited, leaving the values "/" and /" then tried replacing the text within the quotes to "Source_Folder" and "Target_Folder" respectively. If you send me your e-mail over the contact form I have on I'll reply with mine, so you can send me the files and I'll take a look. Do you know if is possible to do a bydirectional syncronization? copies my scanned photos to an external disk once run. I am looking for a way to do this over a network between my laptop and my Mac Pro. I am myself syncing some folders on my laptop and desktop macs. This tutorial is great, I h ave been looking for something like this. Once the folder sync is set up, will it automatically then sync everything between the folders in the future. I was wondering if there was a way of making this script run permanently, so it updates the target from the source automatically? I drop a file into 'documents' on my system drive, and it automatically backs up on my backup drive. I tried the modified version of your instructions found on practically efficient dot com.
I can't find them anywhere, they didn't copy to destination_folder and they were deleted. I've got about 8GB of files that I need to keep synced. Quite frankly I haven't figured it out yet but for that I just manually do it in terminal or i Term with the I. When I type this command in Terminal: rsync -a E --delete ~/Desktop/testerfolder/ "/Volumes/My Passport/" I am getting the error: rsync: opendir “/Volumes/My Passport/.
Trashes” failed: Permission denied (13) rsync error: some files could not be transferred (code 23) at /Source Cache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9] The files actually did copy though.
When I type this command in Terminal: rsync -va --delete "~/Desktop/testfolder/" "Volumes/My Passport" I get these error messages: building file list ...
rsync: link_stat "/Users/Jan/~/Desktop/testfolder/." failed: No such file or directory (2) done rsync: push_dir#3 "/Users/Jan/Volumes" failed: No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at /Source Cache/rsync/rsync-42/rsync/main.c(580) [receiver=2.6.9] rsync: connection unexpectedly closed (8 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at /Source Cache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9] And no files are copied.
When I wrote and saved this in a Run Shell Script in Automator: rsync -va --delete "~/Desktop/testfolder/" "Volumes/My Passport/" it didn’t work.