Super User Asked by Kiryl on December 13, 2021
Rsync reports error for one file (other files were copied just fine):
rsync: stat “//serverName/destination/.lpt$vpn.251.yiOK8j” failed: No such file or directory (2)
rsync: rename “//serverName/destination/.lpt$vpn.251.yiOK8j” -> “.lpt$vpn.251”: No such file or directory (2)
File “.lpt$vpn.251.yiOK8j” does exist in “//serverName/destination/”
Rsync parameters:
rsync.exe -rltDvP -W –delete –progress “/cygdrive/C/source/Downloads/Unpacked/” “//serverName/destination” –exclude “OK.marker” –modify-window=2′
Seems like a dollar sign or double dot in file name causing that, so my question is how to guarantee rsync could copy any windows file no matter what its name is?
Cygwin version is 1.7.9
Rsync version is 3.0.9
Dollar signs are a way that bash outputs a parameter (variable) value.
The dot just hides the file from a normal ls.
Is the file really there ? $vpn could mean anything. Escaping the $ is not typical, so I'm wondering why someone would make a file with that name, or if that string has variables in it.
This is a question for someone with more bash experience than me, but I thought I'd throw my 2 cents in.
Answered by wbg on December 13, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP