11

I'm trying to move my emails Maildir from an old centos server to a new debian server.

rsync -avz /home/me/Maildir ssh root@ipaddress:/var/vmail/me/Maildir

I tried to copy an 8gb account, didn't work, try to move another about 20mb, didn't work, tried to use

-avn, didn't work either.

sync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]

Lynob
  • 4,054
  • 12
  • 44
  • 73
  • What do the previous errors say? – jordanm Apr 13 '13 at 01:39
  • 4
    @jordanm there's no previous error, it just says that there's a previous error, but i haven't seen any error – Lynob Apr 13 '13 at 13:23
  • 2
    If you have a large log file and can't spot the error, I found searching for the string `rsync:` would turn it up. – duozmo Jan 17 '22 at 02:02
  • Thank you @duozmo ! I was searching for "error" like an idiot. Why did I think that errors would state themselves as "errors" anyway? XD – boumbh Jan 24 '22 at 19:03

1 Answers1

5

Error 23 is defined as a "partial transfer" and might be caused by filesystem incompatibilities, such as different character sets or access control lists. In this case it could be caused by files in /home that begin with a . and are thus marked hidden.

In this case you could try something like:

rsync -avz --exclude='/*/.local' /home/me/Maildir ssh root@ipaddress:/var/vmail/me/Maildir

The verbose argument -v should actually give you some sort of list of the problems.

superuser0
  • 1,690
  • 1
  • 11
  • 20