Answer the question
In order to leave comments, you need to log in
Is there a ready-made script for transferring files from server to server with both FTP access?
There are 2 hosts:
The original one has an author's hosting control panel and there is no way to download a backup.
The final one has control through the ISP socket.
The amount of data is 10 GB.
Access to them via FTP is available, you need to transfer files from one to another. It is not possible to download filezilla completely, because. there are files containing Cyrillic.
Answer the question
In order to leave comments, you need to log in
Something like that:
lftp -c "set ftp:list-options -a;
open ftp://user:[email protected];
lcd ./web;
cd /web/public_html;
mirror --reverse --use-cache --verbose --allow-chown
--allow-suid --no-umask --parallel=2 --exclude-glob .svn"
run the following command in ssh on the receiving server:
wget -mc --ftp-user=USER --ftp-password=PASS ftp://FTP-SERVER/path/to/directory
as a result you will get a full copy of the specified directory. in case of a connection break, the files will simply be downloaded.
If you have SSH access to the source hosting, and a reserve in place, you can go in and pack everything, and then download it in one file. Or rsync if both hosts have SSH.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question