Invalid argument (22) and rsync
Michael
bmike1 at gmail.com
Fri Jan 29 16:04:45 MST 2016
but it was doing it fine before I downloaded the videos.
Hmmmmmm..... I just tried it as:
rsync -aWuq --delete-before /home/bmike1/Documents /media/bmike1/RedSanDisk
rsync -rWuq --delete-before /home/bmike1/Documents /media/bmike1/RedSanDisk
rsync -ruq --delete-before /home/bmike1/Documents /media/bmike1/RedSanDisk
rsync -rq --delete-before /home/bmike1/Documents /media/bmike1/RedSanDisk
rsync -r --delete-before /home/bmike1/Documents /media/bmike1/RedSanDisk
rsync -a --delete-before /home/bmike1/Documents /media/bmike1/RedSanDisk
And it keep doing the same thing:
$ rsync -aWuv --delete-before /home/bmike1/Documents
/media/bmike1/RedSanDisk
building file list ... done
Documents/
Documents/Business/PropertyPhotographing/PrivateClients/
Documents/Business/PropertyPhotographing/Sky/Blue/
Documents/Business/PropertyPhotographing/Sky/Cloud1/
Documents/Business/PropertyPhotographing/Sky/Cloud2/
Documents/Business/PropertyPhotographing/Sky/Cloud3/
Documents/Business/PropertyPhotographing/Sky/Cloud4/
Documents/Business/PropertyPhotographing/Sky/Cloud5/
Documents/Business/PropertyPhotographing/Sky/moon/
Documents/Business/PropertyPhotographing/Vegetation/
Documents/Business/PropertyPhotographing/Velocity/
Documents/Business/PropertyPhotographing/Velocity/20160113/
Documents/Business/PropertyPhotographing/Velocity/20160114/
Documents/Business/PropertyPhotographing/Velocity/20160114/darktable_exported/
Documents/Business/PropertyPhotographing/Velocity/20160114/test/
Documents/Business/PropertyPhotographing/Velocity/test/
Documents/Business/PropertyPhotographing/ad/
Documents/Business/PropertyPhotographing/ad/darktable_exported/
Documents/Education/Darktable/
Documents/Education/Darktable/darktable-1:10WaterLilyEdit
Documents/Education/Darktable/darktable-1:117Features2.0
Documents/Education/Darktable/darktable-1:11Motorbike
Documents/Education/Darktable/darktable-1:12Geotagging
Documents/Education/Darktable/darktable-1:13Features1.4
Documents/Education/Darktable/darktable-1:14Masks
Documents/Education/Darktable/darktable-1:15ModuleEqualizer
Documents/Education/Darktable/darktable-1:16BacklitPictures
Documents/Education/Darktable/darktable-1:1intro
Documents/Education/Darktable/darktable-1:2
Documents/Education/Darktable/darktable-1:3NoiseReduction
Documents/Education/Darktable/darktable-1:4BootsEdit
Documents/Education/Darktable/darktable-1:5PerspectiveEdit
Documents/Education/Darktable/darktable-1:6HairEdit1
Documents/Education/Darktable/darktable-1:7HairEdit2
Documents/Education/Darktable/darktable-1:8HDR
Documents/Education/Darktable/darktable-1:9Download
Documents/Education/The GIMP/The GIMP Magazine/
Documents/Plants/
Documents/childsupport/
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:10WaterLilyEdit.CccL3o"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:117Features2.0.QBpFFt"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:11Motorbike.8iELzH"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:12Geotagging.oRmWTY"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:13Features1.4.nyc6hk"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:14Masks.RAs9aL"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:15ModuleEqualizer.edwAId"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:16BacklitPictures.iZSO4H"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:1intro.Hkay7c"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:2.FYqqhL"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:3NoiseReduction.KN8Rzl"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:4BootsEdit.gg6Pl1"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:5PerspectiveEdit.VhV5EJ"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:6HairEdit1.hx0tDt"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:7HairEdit2.0SUXYe"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:8HDR.HbGzj3"
failed: Invalid argument (22)
rsync: mkstemp
"/media/bmike1/RedSanDisk/Documents/Education/Darktable/.darktable-1:9Download.v7JmDV"
failed: Invalid argument (22)
sent 2,132,213,018 bytes received 2,828 bytes 69,908,716.26 bytes/sec
total size is 8,091,764,760 speedup is 3.80
rsync error: some files/attrs were not transferred (see previous errors)
(code 23) at main.c(1183) [sender=3.1.0]
On Fri, Jan 29, 2016 at 5:18 PM, Brian Cluff <brian at snaptek.com> wrote:
> 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/ windo w sserver::cwshare
>
> changed to
> 1
> rsync -rtv /directorytobackup/ windo w sserver::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
>
>
>
> ---------------------------------------------------
> 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
>
--
:-)~MIKE~(-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20160129/c7d5c494/attachment.html>
More information about the PLUG-discuss
mailing list