Matthias Kauer
2013-12-15 05:10:39 UTC
Hi,
I am trying to sync my wordpress installation from my host's FTP to my home
computer. I have ssh access, but the server is very limited in what commands
it offers; in particular, there's no rsync.
My version is:
***@volcano:~$ lftp --version
LFTP | Version 4.3.8 | Copyright (c) 1996-2012 Alexander V. Lukyanov
on a ubuntu 13.04 computer.
Therefore, I tried to go ahead with something like this:
lftp -u A,B -e'mirror --parallel=10 httpdocs/
website_backup/matthiaskauer.com' matthiaskauer.com
This command got stuck after a while, only retrieving directory information
after a while and then reaching max retries after a really long time.
I figured this may be caused by symlinks on the server that create a loop.
I tested only synchronizing a subdirectory (about 46M) with less
parallelization and -n and it worked.
lftp -u A,B -e'mirror -n --parallel=4 --no-symlinks httpdocs/dokuwiki/
test3;exit' matthiaskauer.com
I added debugging and tried the same for the entire server structure again:
lftp -d -u A,B -e'mirror -n --parallel=4 --no-symlinks httpdocs/ test3;exit'
matthiaskauer.com 2> lftplog.txt
The messages I get in the command prompt are:
dokuwiki/lib/plugins/indexmenu/conf: Getting directory contents (0)
[Delaying before retry]
tt-rss-bef1.7.10/schema/versions/pgsql: Getting directory contents (0)
[Delaying before retry]
owncloud/owncloud/apps/files_trashbin: Getting directory contents (0)
[Delaying before retry]
dokuwiki/lib/plugins/indexmenu/conf: Getting directory contents (0)
[Connection idle]
The debug log is quite lengthy. At the end, the following seems to repeat
itself (pasted below)
Thanks for your help and best regards,
Matthias Kauer
---> PASV
---> PASV
<--- 227 Entering Passive Mode (212,224,89,152,153,160).
---- Connecting data socket to (212.224.89.152) port 39328
<--- 227 Entering Passive Mode (212,224,89,152,180,98).
---- Connecting data socket to (212.224.89.152) port 46178
---- Data connection established
---> LIST
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 150 Opening ASCII mode data connection for file list
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
---> PASV
---> PASV
<--- 227 Entering Passive Mode (212,224,89,152,160,245).
---- Connecting data socket to (212.224.89.152) port 41205
<--- 227 Entering Passive Mode (212,224,89,152,188,96).
---- Connecting data socket to (212.224.89.152) port 48224
---- Data connection established
---> LIST
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 150 Opening ASCII mode data connection for file list
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
---> PASV
---> PASV
I am trying to sync my wordpress installation from my host's FTP to my home
computer. I have ssh access, but the server is very limited in what commands
it offers; in particular, there's no rsync.
My version is:
***@volcano:~$ lftp --version
LFTP | Version 4.3.8 | Copyright (c) 1996-2012 Alexander V. Lukyanov
on a ubuntu 13.04 computer.
Therefore, I tried to go ahead with something like this:
lftp -u A,B -e'mirror --parallel=10 httpdocs/
website_backup/matthiaskauer.com' matthiaskauer.com
This command got stuck after a while, only retrieving directory information
after a while and then reaching max retries after a really long time.
I figured this may be caused by symlinks on the server that create a loop.
I tested only synchronizing a subdirectory (about 46M) with less
parallelization and -n and it worked.
lftp -u A,B -e'mirror -n --parallel=4 --no-symlinks httpdocs/dokuwiki/
test3;exit' matthiaskauer.com
I added debugging and tried the same for the entire server structure again:
lftp -d -u A,B -e'mirror -n --parallel=4 --no-symlinks httpdocs/ test3;exit'
matthiaskauer.com 2> lftplog.txt
The messages I get in the command prompt are:
dokuwiki/lib/plugins/indexmenu/conf: Getting directory contents (0)
[Delaying before retry]
tt-rss-bef1.7.10/schema/versions/pgsql: Getting directory contents (0)
[Delaying before retry]
owncloud/owncloud/apps/files_trashbin: Getting directory contents (0)
[Delaying before retry]
dokuwiki/lib/plugins/indexmenu/conf: Getting directory contents (0)
[Connection idle]
The debug log is quite lengthy. At the end, the following seems to repeat
itself (pasted below)
Thanks for your help and best regards,
Matthias Kauer
---> PASV
---> PASV
<--- 227 Entering Passive Mode (212,224,89,152,153,160).
---- Connecting data socket to (212.224.89.152) port 39328
<--- 227 Entering Passive Mode (212,224,89,152,180,98).
---- Connecting data socket to (212.224.89.152) port 46178
---- Data connection established
---> LIST
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 150 Opening ASCII mode data connection for file list
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
---> PASV
---> PASV
<--- 227 Entering Passive Mode (212,224,89,152,160,245).
---- Connecting data socket to (212.224.89.152) port 41205
<--- 227 Entering Passive Mode (212,224,89,152,188,96).
---- Connecting data socket to (212.224.89.152) port 48224
---- Data connection established
---> LIST
---- Data connection established
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 150 Opening ASCII mode data connection for file list
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
Certificate: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
Issued by: C=US,ST=Virginia,L=Herndon,O=Parallels,OU=Parallels
Panel,CN=Parallels Panel,EMAIL=***@parallels.com
WARNING: Certificate verification: Not trusted
WARNING: Certificate verification: certificate common name doesn't match
requested host name ‘matthiaskauer.com’
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
<--- 425 Unable to build data connection: Operation not permitted
---- Closing data socket
---> PASV
---> PASV