From e683fb757276c0f4fbfc0a1bc45475d84b40edb4 Mon Sep 17 00:00:00 2001 From: Jacob Haddon Date: Wed, 12 Feb 2020 09:19:25 -0500 Subject: [PATCH] updated readme and script for information on FAT formatted drives --- README.md | 36 +++++++++++++++++++++++++++++++++--- sync.applescript | 1 + 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5964c77..dcd5a67 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,6 @@ File -> Export, select Application as file format # Setup - - Set the folders you want to sync: * format "/path/to/folder/", "path/to/otherfolder" @@ -94,7 +92,6 @@ Rsync is very powerful and can do lots of damage if you aren't careful. Any chan The rsync manual: https://download.samba.org/pub/rsync/rsync.html - ## What Does That Do? Here's what those settings mean: @@ -104,6 +101,39 @@ Here's what those settings mean: Path variables are enclosed in " " so spaces can be allowed. +# Rsync for FAT32 and exFAT drives + +There are aspects of your files that are not saved on a FAT32 device. Things like permissions and over ship. Additionally the time stamp isn't quite the same, which will result in all the files being copied over each time, rather than just the deltas. + +So, if you want FAT format for its portability, we can tweak the rsync commands some to save time on the syncs. + +``` +rsync -rtv --modify-window=1 +``` + +You can set this by commenting this line (add a # to the beginning) + +``` +set rsync_command to "rsync -av --delete" +``` + +And in comment this one (remove the # at the begining of the line) + +``` +# set rsync_command to "rsync -rtv --modify-window=1" +``` + +## What does that do? + +* **-r** recursive; go into any sub directories +* **-t** times; preserve the modification times +* **-v** verbose +* **--modify-window=1** this adds a +/- 1 second window to the time check, which will help with time stamp differences + +Note: this will probably cause a re-sync of all files after Daylight Savings, twice a year. + +Source: https://askubuntu.com/questions/112863/rsync-not-working-between-ntfs-fat-and-ext + # All Done Once it is all set up to run, in Script Editor: diff --git a/sync.applescript b/sync.applescript index 4355ddf..d6f6f7d 100644 --- a/sync.applescript +++ b/sync.applescript @@ -38,6 +38,7 @@ end tell # rsync man: https://download.samba.org/pub/rsync/rsync.html set rsync_command to "rsync -av --delete" +# set rsync_command to "rsync -rtv --modify-window=1" # repeat rsync with all the folders set above