If this can't be done wih Automator, is there any good suggestions for how it could be done? More Less. Question marked as Solved User profile for user: Mac OS X Speciality level out of ten: I believe what you want to do is Sync folders. Here is an example: View answer in context. All replies Drop Down menu. Loading page content.
I am curious if it is possible to make a folder that is like a shortcut to a folder, except that rather than being a shortcut, this new folder actually has copies of the files in it. I have my school home folder mapped as a network drive to my computer. I would like to have a folder on my network drive that automatically creates copies with my homework files in it.
Is this possible? The idea being that when you drop something in one folder, the other folder is automatically updated with the contents of the first. There are a number of ways to do this.
Create the two folders and make sure your Mac can access both of them. When Automator launches create a workflow that looks like the one in the figure below. The first action, Get Specified Finder Items, should have the source folder listed the one you Control-clicked.
How To Sync Files and Folders on the Mac - ezarilakyh.cf
Drag the destination folder the folder you want items copied to to the last action—Copy Finder Items. Sorry for posting in hurry Q2: I don't find any answer. All other MMO are Ok Well, I really really wish I hadn't done this. I have no idea what happened but the script didn't work, and it ended up deleting everything. I set it to copy out of my main work folder and the whole thing has disappeared, it's not in my trash either. Seeing as I was trying to make this command work in order to back up in in the first place I don't have any back ups except an old one from several weeks back.
I've just lost a whole load of work and I'm slightly in shock right now. Do you know how I might be able to reverse this command. Also I can't see any of the files in my recycle bin. I'm actually quite upset. I followed all the steps perfectly and then downloaded your script to test. To anyone else, please please back up before you try this. Apologies for my slightly dramatic post yesterday. I have re-analysed the Automator workflow I made and can only assume that I got the two folders mixed up.
As the rsync command effectively makes a mirror of the source folder in the destination folder, selecting an empty folder as the source will leave you with an empty destination folder, regardless of what was in it. I've tried it again with some assitance from Branko and it's working great, so don't be put off using this script, just be careful because it's potentially quite dangerous if used incorrectly, as I found out the hard way: Ran into it — adopted logic and bingo: Thanks for sharing.
This is a lifetime saver! This is a great tutorial! I have some questions: Is it possible to set default value for "Set Value of Variable" action in the workflow without showing a dialog when running it as an application? Is it possible to show the progress of rsync output while it is running without waiting until it finishes and output to the textedit?
- Sync Folders.
- foto diashow mit musik erstellen mac.
- Sync Folders | Automator World?
Do you have any idea to fix it? Thanks a lot. Here i find a usefull comment about extended attributes from extra Yes, the version of rsync that comes with all versions of OS X is rather outdated. However, if you're going to use that version, you really should add another switch, -E.
This tells rsync to include "extended attributes," various file properties, not just resource forks, that can be found on OS X files that aren't generally found on other Unix-based operating systems. Note single-dash parameters do not have to be written separately 'rsync -a -v -E' and 'rsync -avE' do the exact same thing. The easiest way to get a newer version of rsync on your Mac is to install Carbon Copy Cloner. You might also add the -A switch to preserve ACLs non-Unix file permissions but if you just making a folder to folder backup within an account on your computer, preserving ACLs probably isn't important.
Is there a way for doing this but on two different computers? If i edit my personal directory on my MacBook Pro, i want those changes to be there when i turn my iMac at home. Is this possible? Hi- This tutorial is amazing Now, when I run this script, trying to sync a folder in that Dropbox with a folder on another external drive, it hangs up on the 'syncing' bit and nothing seems to happen I made a test folder with only 3 items in it and followed your steps carefully including the --delete command.
Then I ran the workflow but it started deleting everything from my external drive that contained the target folder instead of only the folder itself. I managed to get it back from my other drives but what happened here? Any ideas? This still does not work. Hey there!
Power of Automator and Unix combined
So, this works great out of the box for what it does, but I'm curious and have seen a couple of other commenters ask this as well about setting this up to automatically sync? So, if I add a new movie to my folder, the syncing process will automatically run and send my new file to the external drive. The same would be true for deleting files. Any thoughts? So this is working great, except for it's copying creating?
- come chiamare gratis dal mac.
- usb laufwerk auf mac formatieren.
- can you upgrade graphics card on mac pro?
- free cad mac software best!
- rsync + Automator = free and easy backups for your Mac.
- Macworld Categories?
Why did it enlarge both folders? Now both folders are 54 GB. Great workflow! I was wondering if there is a way to not copy the icon of the source folder and delete the icon of the target folder. Can anyone answer? What you want to do is exclude "Icon" file which is the folder icon. You can do that by adding exclude option: Instead, if i don't put the -E it deletes the icon of the target folder and create an empty file named "Icon". I've been trying to get this to work, but it just doesn't seem to want to.
When I do this in Terminal, it works perfectly This automator workflow works up until the Shell Script Bad file descriptor 9 WTF? That's not even close to any of the directories I selected, and I have no idea what that means. The drive I'm copying from is on a server connected to my Mac via fibre. I'm trying to actually just create the folder structure from that place into my target place. The code I'm using is: I'm a dummie. I never added the Get Variable bit All good now! This workflow works very well but I'd like to extend it to recursively sync files from subdirectories of the initial source directory.
I think rsync automatically keeps the newest version but not positive. Another way to think of what I'm looking for is to take the basic script and repeat it loop? Any suggestions? Thx for the tutorial. I was using the shell script function to sync folders when plugging in a certain usb drive I am struggling because every time a drive is connected now, the shell script function pops up and asks whether to sync or not. How can I remove the work flow, since I already deleted it in automator? I am looking forward to hearing from you.
Thanks a lot, i love this workflow. But i've a question, is it possible to save this txt document automatically with the name log"and a variable for Date and Time", because i want to combine it with an ical appointment. Then it's very disturbing, if the TextEdit window constantly pops up. Excellent workflow, really helped a lot and very well explained. I made a slight change to mine by choosing New Text File at the end and setting a custom time and date name for the file. I wouldn't have been able to do this without having read your walk through and use of variables.
I was searching for this workflow the whole day!!! THX Dag. I tried to create the same workflow to sync a complete drive backup, but i cannot find the Set Variable Task in automator El Capitan however I do find Get variable Task. Is this not possible in El Capitan? The rsync action will treat the second item of the multiple selection as the sync destination, and delete its contents completely if '--delete' is set with no Trash recovery.
However, I did manage to completely wipe my external drive GB of media , and end up copying my Photos library over my Projects folder. I am trying to do almost exactly what you have done here. However I would like to copy all files in a folder as well as all files in every sub folder without the folders containing them. Is it posible to synchronize automatically? I know there are some folder options when a new file comes to the folder, but I would like to synchronize when I modify a file or, alternatively, every few minutes.
What a crap!! It will be easer to use rsync on a script Why do you accept all this crap? My gerneration was used that Mac was the best, long time ago. Geek Stuff Everything Else. Web Photo Graphic. Automator Mac Terminal Unix.
Solutions for synchronizing folders
Jump to comments 83 Share: Comments What a nice Workflow. Same people with brains gotten figure this out, well done. Madmurdog Mar at I was searching such tutorial a long time ago, thanks so much: Apr at 8: Janis 1. Oct at 5: Oct at David 3. Oct at 3: Eric Oct at 7: Hvala puno puno puno i pozdrav iz Pule! Nov at Really nice tutorial, thank you very much Dalen Nivesh Galaiya Mar at 2: Nivesh Galaiya. Mar at 6: You can read more about it here bananica Iqbal Mar at 4: Yes, that's right.
Source folder is left intact. Also my thanks, this will help me a lot.