Hi guys,
I was trying to copy my inbox mail from server A to server B with rsync but rsync doesn't seem copying everything even i told it to copy everything.
Server A's Maildir dir:
[root@server_A Maildir]# ls -al
total 916
drwxrwx--- 19 love mail 4096 Jun 5 13:13 .
drwxrwx--- 3 love mail 4096 May 20 09:57 ..
drwxrwx--- 5 love mail 4096 Feb 13 22:22 .Apple Mail To Do
drwxrwx--- 2 love mail 65536 Jun 5 13:13 cur
drwxrwx--- 5 love mail 4096 Jun 5 12:43 .Deleted Messages
-rw------- 1 love mail 4560 Jun 5 13:13 dovecot.index
-rw------- 1 love mail 541696 Jun 5 13:13 dovecot.index.cache
-rw------- 1 love mail 65772 Jun 5 13:13 dovecot.index.log
-rw------- 1 love mail 131080 Jun 3 16:41 dovecot.index.log.2
-rw------- 1 love mail 87 May 2 21:51 dovecot-keywords
-rw------- 1 love mail 15843 Jun 5 13:13 dovecot-uidlist
drwxrwx--- 5 love mail 4096 Jun 5 10:38 .Drafts
drwxrwx--- 5 love mail 4096 Jul 14 2007 .INBOX.Deleted Messages
drwxrwx--- 5 love mail 4096 May 17 13:21 .INBOX.Drafts
drwxrwx--- 5 love mail 4096 Apr 18 16:59 .INBOX.Sent
drwxrwx--- 5 love mail 4096 Jun 5 13:02 .INBOX.spam
drwxrwx--- 5 love mail 4096 Mar 10 20:00 .INBOX.Trash
drwxrwx--- 2 love mail 4096 Jun 5 13:13 new
drwxrwx--- 5 love mail 4096 Jun 5 12:48 .Sent Messages
-rw-rw---- 1 love mail 181 May 19 15:48 subscriptions
drwxrwx--- 5 love mail 4096 Feb 27 20:13 .SuperBowl
drwxrwx--- 2 love mail 4096 Jun 5 13:13 tmp
drwxrwx--- 5 love mail 4096 Nov 24 2007 .Trash
[root@server_A Maildir]#
I run this command:
rsync -r /home/love/imap/mydomain.com/linda.kim/Maildir/* [email protected]:/home/love/imap/mydomain.com/linda.kim/Maildir
After that i go to server B's Maildir dir and see this:
[root@server_B Maildir]# ls -al
total 828
drwxr-xr-x 9 love mail 4096 Jun 5 13:00 .
drwxrwx--- 3 love mail 4096 Jun 5 12:44 ..
drwxrwx--- 2 love mail 28672 Jun 5 13:00 cur
-rw------- 1 love mail 4592 Jun 5 13:00 dovecot.index
-rw------- 1 love mail 538624 Jun 5 13:00 dovecot.index.cache
-rw------- 1 love mail 64800 Jun 5 13:00 dovecot.index.log
-rw------- 1 love mail 131080 Jun 5 12:58 dovecot.index.log.2
-rw------- 1 love mail 87 Jun 5 12:58 dovecot-keywords
-rw------- 1 love mail 16371 Jun 5 12:58 dovecot-uidlist
drwxrwx--- 5 love mail 4096 Jun 5 12:50 .INBOX.Drafts
drwxrwx--- 5 love mail 4096 Jun 5 13:00 .INBOX.Sent
drwxrwx--- 5 love mail 4096 Jun 5 12:53 .INBOX.Trash
drwxr-x--- 2 love mail 4096 Jun 5 12:58 new
-rw-r----- 1 love mail 181 Jun 5 12:58 subscriptions
drwxr-x--- 2 love mail 4096 Jun 5 12:58 tmp
[root@server_B Maildir]#
My question is where are the folders (Drafts, SuperBowl..etc) ? Are those folder not allowed to be copy ? is there any way that copy everything from server A to server B ? Thanks
________
Ktm 525Sx
I was trying to copy my inbox mail from server A to server B with rsync but rsync doesn't seem copying everything even i told it to copy everything.
Server A's Maildir dir:
[root@server_A Maildir]# ls -al
total 916
drwxrwx--- 19 love mail 4096 Jun 5 13:13 .
drwxrwx--- 3 love mail 4096 May 20 09:57 ..
drwxrwx--- 5 love mail 4096 Feb 13 22:22 .Apple Mail To Do
drwxrwx--- 2 love mail 65536 Jun 5 13:13 cur
drwxrwx--- 5 love mail 4096 Jun 5 12:43 .Deleted Messages
-rw------- 1 love mail 4560 Jun 5 13:13 dovecot.index
-rw------- 1 love mail 541696 Jun 5 13:13 dovecot.index.cache
-rw------- 1 love mail 65772 Jun 5 13:13 dovecot.index.log
-rw------- 1 love mail 131080 Jun 3 16:41 dovecot.index.log.2
-rw------- 1 love mail 87 May 2 21:51 dovecot-keywords
-rw------- 1 love mail 15843 Jun 5 13:13 dovecot-uidlist
drwxrwx--- 5 love mail 4096 Jun 5 10:38 .Drafts
drwxrwx--- 5 love mail 4096 Jul 14 2007 .INBOX.Deleted Messages
drwxrwx--- 5 love mail 4096 May 17 13:21 .INBOX.Drafts
drwxrwx--- 5 love mail 4096 Apr 18 16:59 .INBOX.Sent
drwxrwx--- 5 love mail 4096 Jun 5 13:02 .INBOX.spam
drwxrwx--- 5 love mail 4096 Mar 10 20:00 .INBOX.Trash
drwxrwx--- 2 love mail 4096 Jun 5 13:13 new
drwxrwx--- 5 love mail 4096 Jun 5 12:48 .Sent Messages
-rw-rw---- 1 love mail 181 May 19 15:48 subscriptions
drwxrwx--- 5 love mail 4096 Feb 27 20:13 .SuperBowl
drwxrwx--- 2 love mail 4096 Jun 5 13:13 tmp
drwxrwx--- 5 love mail 4096 Nov 24 2007 .Trash
[root@server_A Maildir]#
I run this command:
rsync -r /home/love/imap/mydomain.com/linda.kim/Maildir/* [email protected]:/home/love/imap/mydomain.com/linda.kim/Maildir
After that i go to server B's Maildir dir and see this:
[root@server_B Maildir]# ls -al
total 828
drwxr-xr-x 9 love mail 4096 Jun 5 13:00 .
drwxrwx--- 3 love mail 4096 Jun 5 12:44 ..
drwxrwx--- 2 love mail 28672 Jun 5 13:00 cur
-rw------- 1 love mail 4592 Jun 5 13:00 dovecot.index
-rw------- 1 love mail 538624 Jun 5 13:00 dovecot.index.cache
-rw------- 1 love mail 64800 Jun 5 13:00 dovecot.index.log
-rw------- 1 love mail 131080 Jun 5 12:58 dovecot.index.log.2
-rw------- 1 love mail 87 Jun 5 12:58 dovecot-keywords
-rw------- 1 love mail 16371 Jun 5 12:58 dovecot-uidlist
drwxrwx--- 5 love mail 4096 Jun 5 12:50 .INBOX.Drafts
drwxrwx--- 5 love mail 4096 Jun 5 13:00 .INBOX.Sent
drwxrwx--- 5 love mail 4096 Jun 5 12:53 .INBOX.Trash
drwxr-x--- 2 love mail 4096 Jun 5 12:58 new
-rw-r----- 1 love mail 181 Jun 5 12:58 subscriptions
drwxr-x--- 2 love mail 4096 Jun 5 12:58 tmp
[root@server_B Maildir]#
My question is where are the folders (Drafts, SuperBowl..etc) ? Are those folder not allowed to be copy ? is there any way that copy everything from server A to server B ? Thanks
________
Ktm 525Sx
Last edited: