You are not logged in.
I'm new to rsync and trying to set up an automatic backup. I've set up rsync with grsync and everything seems to be working fine except for one file that won't get copied.
What I'm doing:
Both with grsync and rsync I'm running this command:
rsync -r -t -p -g -v --progress -u -c --numeric-ids -s --exclude-from /home/habmala/system/backupExclude /home/habmala /home/habmala/Alfons/home/Backup/DamianThe error I'm getting:
habmala/Games/FOTONICA/.DS_Store
6,148 100% 0.00kB/s 0:00:00 (xfr#142, to-chk=366/7834)
rsync: rename "/home/habmala/Alfons/home/Backup/Damian/habmala/Games/FOTONICA/.DS_Store.1pgQLH" -> "habmala/Games/FOTONICA/.DS_Store": No such file or directory (2)
sent 53,191,163 bytes received 27,283 bytes 88,919.71 bytes/sec
total size is 3,976,348,558 speedup is 74.72
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]There are lots of lines of successfully copied files but this error appears as above at the end of rsyncs output. I'm not getting any other errors. On a dry run everything works without errors. The error is consistent through multiple runs and the file is missing on destination.
Additional info:
".DS_Store" is the only error I'm getting, I don't know rsync well enough to say if it exits on the error or if everything else is copied, but as far as I can tell from a quick look everything else seems to be in both source and destination.
The file comes from a humble bundle game and I don't really know what it is or what it does, but here comes some info:
file .DS_Store
.DS_Store: Apple Desktop Services Store
ls -a
total 37M
drwxr-xr-x 3 habmala habmala 4.0K Nov 5 2014 .
drwxr-xr-x 6 habmala habmala 4.0K Aug 20 21:14 ..
-rw-r--r-- 1 habmala habmala 120 Nov 5 2014 ._.DS_Store
-rw-r--r-- 1 habmala habmala 6.1K Nov 5 2014 .DS_Store
drwxr-xr-x 7 habmala habmala 4.0K Aug 20 21:14 FOTONICA_Data
-rwxr-xr-x 1 habmala habmala 18M Nov 5 2014 FOTONICA.x86
-rwxr-xr-x 1 habmala habmala 20M Nov 5 2014 FOTONICA.x86_64
-rw-r--r-- 1 habmala habmala 461 Sep 1 2013 ._libstdc++6_4.7.2-5_amd64.deb
-rw-r--r-- 1 habmala habmala 325K Sep 1 2013 libstdc++6_4.7.2-5_amd64.debI found a lot of posts online with similar errors most seem to also have an error that says "stat", I do not have that. Some mentioned file read permissions but that doesn't seem to be the issue, file size has also been mentioned in relation to windows compatibility, but I can't think of why that would be an issue here. The destination is a NAS mounted to my local filesystem, both formatted in EXT4.
rsync --version
rsync version 3.1.1 protocol version 31
Copyright (C) 1996-2014 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
append, ACLs, xattrs, iconv, symtimes, prealloc
rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you
are welcome to redistribute it under certain conditions. See the GNUI can't really figure out what I'm missing, Any help is appreciated, tell me if you need the output of any other commands or if I missed any info. Thanks.
Offline
I am ignoring .DS_Store files with backups, since they are automatically generated by OS X Finder when needed. They store some displaying information for Finder.
You could add an exclude rule for these files.
Offline
rsync: rename "/home/habmala/Alfons/home/Backup/Damian/habmala/Games/FOTONICA/.DS_Store.1pgQLH" -> "habmala/Games/FOTONICA/.DS_Store": No such file or directory (2)
The key word in this error is "rename": in between the time rsync built its file list to transfer and performing the copy itself, this ".DS_Store.1pgQLH" entry was renamed to ".DS_Store" so rsync doesn't know what to do . If those .DS_Store.* files are that volatile, I would simply exclude them.
Offline
Thanks for the replies both of you. What I'll do is probably just exclude the file, but I'm still confused as to what's going on. As mentioned the error keep happening but on my local drive I only have .DS_Store.
It's not a file I'm using, I haven't been using the game while running rsync. Since I was having trouble I've tried doing basically nothing while doing the backup and I still always get the same error with only the name of the file changing. the characters after the last dot in ".DS_Store.1pgQLH" change. The file name does not change on my local filesystem.
Offline
Is your target destination a mounted medium in any way?
What file system(s) is the source (and target) ?
Is any Apple OS accessing the disk while you are transferring files?
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
The destination is a NAS mounted to my local filesystem, both formatted in EXT4. There are no Mac OS or iOS devices accessing any of the two systems.
Offline