![]() ![]() I'm not completely pleased with the current answers, but I will try to cover here a bit of the possibilities that I've seen on the web trying to find a nice setup for rsync.Īnd, by the way, if one is interested in Time Machine like copies, there's rsnapshot. Personally, I leave Spotlight running while running large rsync transfers. If you are concerned about possible disk corruption or slow copies, disabling mdworker while running rsync may help. Spotlight uses the mdworker process to index and update the search catalogue. These hidden folders can be scattered across your file system, where ever a project is checked out. Software like subversion and git both store critical information within their dot folders. If any user uses or has software that in turn uses version control software, be sure to back-up dot files. Running ls -la ~/ will reveal these folders and files. ![]() Some software keeps preferences, settings, and other information of value in folders at the top of the user's folder in invisible dot prefixed folders. There are good reasons to back up files beginning with dots. This link provides a practical list of file patterns, folders, and paths that you could exclude. Possible ExclusionsĪn answer to a related question, How can I omit FCPX Render Files from a Time Machine backup?, provided a useful link of OS X files and folders that can be excluded from most back-ups. You may want to consider -delete-after to avoid deleting until the copy has completed please note that this approach will potentially require a destination drive twice the size of the source. In this situation, the E will ensure resource forks and other Mac specific properties are copied. In this question, a few additional flags are used and explained: sudo rsync -vaE -progress -delete-after /Volumes/SourceName /Volumes/DestinationName Regarding the rsync flags, take a look at the question Fastest and safest way to copy massive data from one external drive to another. Please ask more questions here on Ask Different and on StackOverflow if you need help with this approach. You could do this with a wide range of scripting tools and languages. ![]() Consider presenting a tidied up, meta-data filtered, and maybe even coloured coded output for the user to check. The log file created by rsync will be technically involved by the very nature of rsync being a command line tool. Copying everything will reduce the maintenance burden and offer ease of mind that nothing is being lost. The safest option is to copy everything, including invisible meta-data files.įiles tend to exist for a reason and as software changes, so will the existence, purpose, and contents of these meta-data files. I'm looking for a way to automate rsync which seems quite powerful and free to use. Please, back your answer with some arguments, I would appreciate it. Is -av -progress -delete enough? Am I committing a crime or risking some data? What options would you use. What -exclude or -exclude-from can be used safely on a Mac? May be a good rule is “just copy anything that Finder shows” which is what I would copy if I passed manually through all folders. For example, if I have photo.png I would expect to copy photo.png, not. How can I copy only the files that matter, leaving all those that don't matter behind. Now the log is full of files which name starts with. I got to this point rsync -av -progress -delete /Volumes/A/ /Volumes/B I want then to automize this by using rsync to avoid copying files that are already on the destination hard drive (of course, if a change has been made, I want to update the file/folder the same with deleted files/folders or new files/folders the idea is to mimic what I usually do manually with Finder). After a few searches, it seems I can use rsync. The external hard drive only contains “basic data” (folders, images, videos, documents, etc.), nothing fancy/weird.īut with all the amazing free tools that exist out there I couldn't find a decent one to backup (suggestions accepted). I currently back up the contents of an external hard drive A by (1) deleting everything in the destination external hard drive B and (2) copying everything from A to B (in Finder).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |