|
|||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
#1 |
|
Hall of Famer
Join Date: Apr 2002
Posts: 3,315
|
Most often reported in context with ..DS_Store.random filenames...
The aberrant files do indeed have names that start with two leading dots (e.g., ..DS_Store) and —contrary to what one might expect —such "double-dot" filenames are visible in Finder (not hidden): Code:
$ touch ~/Desktop/'..i see you' They seem to be the byproduct of rsync when it copies to an AFP share, while running Snow/Leopard... but i'm not certain if a precise culprit (or specific minimal combination of culprits) has been pinpointed. Anyone know??? STEPS TO REPRODUCE (i'm running 10.6.6 btw)
It would seem then that —to totally *prevent* any possible freak out like this with vanilla (rsync 2.6.9) machines —we would probably need to exclude all dot files in the source from rsync via: --exclude='.*' Seems drastic, but is that true? Anyone have more insights on this phenomenon? Did rsync 3.0.7 fix this? If so, did it clean up an rsync bug, or workaround a Snow Leopard/AFP bug? Why does Finder (over a network) display the curious critters, while simultaneously Terminal (over a network) claims they don't even exist??? [note: i did search here at macosxhints, but found no mention of any of this stuff anywhere.] And BTW, how can we remove these pesky double-dot files from a Time Capsule disk after-the-fact? [i.e., not talking about a sparsebundle image like what Time Machine backs up to... but from within folders on the actual Time Capsule disk itself?] TIA and have a nice day. ![]() -HI-
__________________
chown -R us /your\ base/ -HI- . Last edited by Hal Itosis; 01-22-2011 at 03:22 AM. |
|
|
|
|
|
#2 |
|
Hall of Famer
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,811
|
Wow i think you win the competition for longest post ;-)
I have long stopped using rsync 2.6.9(2008) and now use 3.0.7 compiled for snow which works fine for all my needs without any issues that i have found. I would certainly install and try a different version. Last edited by agentx; 01-22-2011 at 06:36 AM. |
|
|
|
|
|
#3 |
|
MVP
Join Date: May 2004
Posts: 2,012
|
With both the SL supplied rsync (2.6.9) and MacPorts built (3.0.7) I don't see this error.
Using this script, I see the attached output. This could be a sign of other filesystem damage. Code:
#!/bin/sh
SOURCE=/Users/me/test-source/
TARGET=/Volumes/AFP/Users/me/test-target/
mkdir "${SOURCE}"
touch "${SOURCE}"/{.whatever,file{1,2}}
ls -la "${SOURCE}"
rm -rf "${TARGET}"
/opt/local/bin/rsync --version
/opt/local/bin/rsync -axhuvin --no-g --stats "${SOURCE}" "${TARGET}"
/opt/local/bin/rsync -axhuvi --no-g --stats "${SOURCE}" "${TARGET}"
ls -la "${TARGET}"
rm -rf "${TARGET}"
/usr/bin/rsync --version
/usr/bin/rsync -axhuvin --no-g --stats "${SOURCE}" "${TARGET}"
/usr/bin/rsync -axhuvi --no-g --stats "${SOURCE}" "${TARGET}"
ls -la "${TARGET}"
|
|
|
|
|
|
#4 | ||||||||||||||||||||||||||||||||||||||||||||||
|
Hall of Famer
Join Date: Apr 2002
Posts: 3,315
|
Yeah, good idea... but i'm also thinking in terms of "users in general" and the posting of scripts in public forums which might bork up other users' disks with double-dotted debris.
Totally agree in spirit. I would extend that sentiment however, and say that: Apple should install a bug-free (or less bug-prone) version of rsync onto everyone's machines.
__________________
chown -R us /your\ base/ -HI- . |
||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
#5 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Apr 2002
Posts: 3,315
|
Hmm, okay... thanks. But —as evidenced by the links at the start of my post (and google does detect even more than those five) —this is not something that i alone am seeing. So perhaps there are some other factors needed to bring about this behavior. (idunno: WiFi versus direct Ethernet connection?, being logged-in with the same username/uid on both ends?, running in 64-bit mode versus non-64-bit mode?, who knows?). It is interesting though that you're not getting bit by this. That does tell us something... i'm just not sure what (exactly), yet.
__________________
chown -R us /your\ base/ -HI- . |
|||||||||||||||||||||||
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
I ran across this thread and found your description of a problem which exactly matched mine. I wanted to chime in for a moment and say that I found a solution for deleting files on a Time Capsule.
First, mount the disk via SMB instead of AFP. To do this, choose, Go->Connect to Server from the finder. Then, login using smb://yourservername. Once mounted, I executed the following command in the directory. In my case, the files were ..DS_Store ... files. % find . -name '..DS_Store*' -print0 | xargs -0 rm It took a while, but this did the trick and I was able to delete the files successfully. Hope this helps with your problem as well. |
|
|
|
#7 | |||||||||||||||||||||||
|
Hall of Famer
Join Date: Apr 2002
Posts: 3,315
|
Oh sweet... blessed relief. That indeed was the ticket. THANKS! -- Still open to other ideas/solutions from anyone which might serve to prevent this situation from occurring in general cases (vis-à-vis posting rsync scripts online for the masses to run). Solutions besides using the heavy-handed --exclude=.* i mean.
__________________
chown -R us /your\ base/ -HI- . |
|||||||||||||||||||||||
|
|
|
|
|
#8 |
|
Guest
Posts: n/a
|
Now the explanation.
To avoid other problems Rsync creates a temporary file to transfer to, then moves the file over the original copy being overwritten. The temporary naming scheme is .{filename}.random But as you can see in your case it results in files being ..filename.random That may be an illegal filename to start with a double dot, preventing the move command from executing. When that fails Rsync starts a new temporary file and tries it again. Two more options: If the file(s) is not in use at the time, use rsync's in-place option to over-write the file without using a temp file. or, configure it to use a temp directory and set it to not use temporary file names so it will never create an illegal filename with ..x.y |
|
|
|
#9 |
|
Guest
Posts: n/a
|
A workaround for rsync
I've created what I think is a pretty good workaround for this issue. The workaround is to modify the way rsync creates temporary files so that is only prepends a dot if there isn't already one. This should appear in the official rsync when it reaches version 3.0.9, but until then you can apply my patch as follows;
Type the following commands in terminal; Code:
curl http://rsync.samba.org/ftp/rsync/src/rsync-3.0.8.tar.gz > rsync-3.0.8.tar.gz tar zxvf rsync-3.0.8.tar.gz curl http://www.mudflatsoftware.com/rsync/nodotdot.diff > nodotdot.diff cd rsync-3.0.8 patch -p1 < ../nodotdot.diff ./configure make
|
|
|
|
#10 |
|
Registered User
Join Date: Apr 2013
Posts: 1
|
i'm not sure what happened, but maybe my rsync 2.6.9 crashed last time i ran it. anyways i found out i had a lot of files like this, all with the modification date of my last backup:
.F204N2_000774.dat.Vh0Mzm .F204N2_000774.out.kX4Eze .F204N2_000775.dat.b27Als .F204N2_000775.out.I9Mkc8 .F212N2_000226.dat.pJe8Gs .F212N2_000226.out.ezc1SC this thread, and especially ppostma1's comment, helped me figure out what happened. i've updated my rsync to 3.0.9. this was for syncing a macbook pro (10.7) to a desktop mac pro (10.6) over an ethernet cable. it was hard to figure this out since you can't just google .*.?????? =) |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|