From 9a4b2b3690c51d348d41cb4ab3eb7069ae9c0e2f Mon Sep 17 00:00:00 2001 From: gau1991 Date: Mon, 10 Nov 2014 16:01:43 +0530 Subject: [PATCH] Improved SFTP/FTP data transfer --- src/modules/site/migrate/ee_mod_migrate_data.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/site/migrate/ee_mod_migrate_data.sh b/src/modules/site/migrate/ee_mod_migrate_data.sh index baa5bb3b..32a4ed6a 100644 --- a/src/modules/site/migrate/ee_mod_migrate_data.sh +++ b/src/modules/site/migrate/ee_mod_migrate_data.sh @@ -11,15 +11,15 @@ function ee_mod_migrate_data() fi elif [ "$EE_REMOTE_METHOD" == "ftp" ]; then - lftp -e "mirror -c $EE_REMOTE_PATH" ftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER + lftp -e "mirror --verbose -c $EE_REMOTE_PATH /ee-backup/$EE_DOMAIN; quit" ftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER if [ ! -f /ee-backup/$EE_DOMAIN/wp-config.php ]; then - lftp -e "get $EE_REMOTE_PATH/../wp-config.php" ftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER + lftp -e "get -c $EE_REMOTE_PATH/../wp-config.php; quit" ftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER fi elif [ "$EE_REMOTE_METHOD" == "sftp" ]; then - lftp -e "mirror -c $EE_REMOTE_PATH" sftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER + lftp -e "mirror --verbose -c $EE_REMOTE_PATH /ee-backup/$EE_DOMAIN" sftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER if [ ! -f /ee-backup/$EE_DOMAIN/wp-config.php ]; then - lftp -e "get $EE_REMOTE_PATH/../wp-config.php" ftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER + lftp -e "get -c $EE_REMOTE_PATH/../wp-config.php; quit" sftp://$EE_REMOTE_USER@$EE_REMOTE_SERVER fi fi }