Re: Troubleshooting RSYNC

2018-08-05 Thread John Long via rsync
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 windows

Windows 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 (-vv) 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


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Troubleshooting RSYNC

2018-08-04 Thread Kevin Korb via rsync
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 (-vv) 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.   ke...@futurequest.net  (work)
Orlando, Floridak...@sanitarium.net (personal)
Web page:   https://sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,



signature.asc
Description: OpenPGP digital signature
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html