Invalid argument (22) and rsync

Brian Cluff brian at snaptek.com
Fri Jan 29 15:18:47 MST 2016


Those errors are probably occurring from copying files from a partition 
that supports permissions to a drive/partition with something like a 
fat32 filesystem that does not support permissions.

By changing the -a to a -r rsync simply copies the files instead of 
trying to preserve all the permissions, so no errors.

Brian Cluff

On 01/29/2016 02:01 PM, Michael wrote:
> I run:
>
>    rsync -aWuq --delete-before /home/bmike1/Documents
>    /media/bmike1/RedSanDisk
>
>  and I get a bunch of errors that say:
>
>    rsync: mkstemp "/media/bmike1/RedSanDisk/Documents/Education/
>    Darktable/.darktable-1:7HairEdit2.y4Qitq" failed: Invalid argument (22)
>
> in my search for an answer as to "why" I happened upon this 
> <http://howden.net.au/thowden/2011/02/rsync-windows-failed-invalid-argument-22/>. 
> (copied below for your convenience.) Their solution was to change the 
> archive tag (-a) to a recursive (-r) tag. What about the other 
> settings that -a preserves? //
> However, it didn't work for me and I just noticed that what rsync 
> seems to be doing is taking all of the videos I have in the folder 
> "Darktable" and refusing to copy them and in the error message 
> appending the file name with a 6 character string (.y4Qitq in the 
> example shown).
> Perhaps it is expecting a file type (.mp4 or something) and when it 
> doesn't find it creates it's own.
>
>
> Rsync from linux server to a Windows server as a redundant backup 
> using cwrsync but getting an error for the chown command on the 
> directories being backed up.
>
> The issue was simple enough, stop telling rsync to change the owner as 
> the linux command is invalid on the windows server.
>
> 1
> 	
> |rsync -atv /directorytobackup/ windowsserver::cwshare|
>
> changed to
>
> 1
> 	
> |rsync -rtv /directorytobackup/ windowsserver::cwshare|
>
> and all is now quiet from an error message perspective.
>
> Thanks to Marcin <http://www.itefix.no/i2/node/12250> and Linux 
> Questions Forum 
> <http://www.linuxquestions.org/questions/linux-newbie-8/rsync-chown-errors-to-fat32-usb-drive-781736/> for 
> the solution.
>
>
> But I'm going from Linux to a USB drive.
> -- 
> :-)~MIKE~(-:
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160129/66fe222f/attachment.html>


More information about the PLUG-discuss mailing list