Greetings, I am having a problem with rsync deleting entire folders and files and then attempting to recopy the entire contents of the folder(s) even though they are up to date. The task is syncing from ubuntu (rsync version 3.1.1) to windows using cygwin (rsync version 3.1.2). I have a number of these configurations, and they all work except this one. I use the modify-window=600 and cannot understand the deletion (the times on the machines are within seconds of each other). I have cranked up the verbosity level (-vvvvvv) hoping I could find something that explains why the files/folders are all being deleted. Example of the log entries: delete_item(fullpath/file) mode=100755 flags=4 I am assuming the 755 is the file permissions. I have no idea what the high order digit means. And I have no idea what flags mean. Any assistance troubleshooting this will be greatly appreciated. Leon Vanderploeg Cell 303-877-9654 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20180804/6c6b315b/attachment.html>
More verbose is really only helpful when debugging include/exclude rules otherwise verbose itself is pretty useless. Use --itemize-changes instead or with just 1 -v. On 08/04/2018 05:28 PM, Leon via rsync wrote:> Greetings, > > > > I am having a problem with rsync deleting entire folders and files and > then attempting to recopy the entire contents of the folder(s) even > though they are up to date. The task is syncing from ubuntu (rsync > version 3.1.1) to windows using cygwin (rsync version 3.1.2). I have a > number of these configurations, and they all work except this one. I > use the modify-window=600 and cannot understand the deletion (the times > on the machines are within seconds of each other). I have cranked up > the verbosity level (-vvvvvv) hoping I could find something that > explains why the files/folders are all being deleted. > > > > Example of the log entries: > > delete_item(fullpath/file) mode=100755 flags=4 > > > > I am assuming the 755 is the file permissions. I have no idea what the > high order digit means. And I have no idea what flags mean. > > > > Any assistance troubleshooting this will be greatly appreciated. > > > > Leon Vanderploeg > > Cell 303-877-9654 > > > > >-- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: https://sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/rsync/attachments/20180804/a170c7fd/signature.sig>
Hi, On Sat, 2018-08-04 at 15:28 -0600, Leon via rsync wrote:> Greetings, > > I am having a problem with rsync deleting entire folders and files > and then attempting to recopy the entire contents of the folder(s) > even though they are up to date. The task is syncing from ubuntu > (rsync version 3.1.1) to windowsWindows is usually a problem because of its shitty, incompatible filesystems. I got help here recently on a similar issue. For *NIX it is safe to do rsync -axv but when I have to use rsync with a Windows filesystem I use -rtv> using cygwin (rsync version 3.1.2). I have a number of these > configurations, and they all work except this one. I use the modify- > window=600 and cannot understand the deletion (the times on the > machines are within seconds of each other). I have cranked up the > verbosity level (-vvvvvv) hoping I could find something that explains > why the files/folders are all being deleted.Try running your command with the -n flag (does not modify anything, just shows you what it would do like a trial run) I have had to use --modify-window=some_number_of_seconds since exfat and fat32 don't do time properly but that some_number_of_seconds defaults to positive, so depending on your clocks you may need to specify a negative value. I have had this situation happen in the past. /jl