Answer the question
In order to leave comments, you need to log in
How can I copy a site to a local PC from a server?
Good evening everyone, a question of such a plan.
I bought myself a small server on debian 10 to learn, and the following question arose.
My server has 15GB of space.
The site is 10GB. The question arose how to download it to the local computer. It's just on the PC, not on the server.
(but by the way, if you can download it to a local server on a PC, it’s also interesting)
So I won’t give a damn, you can of course install via SFTP to download, but it will download there for a couple of days ...
scp - I know that you can download from server to server.
Of course, the server will not let you archive, because there is practically no free space.
How do such volumes generally swing? if it is not possible to make a tar archive and download it via SFTP
Answer the question
In order to leave comments, you need to log in
You gave an example of a site from which you installed a web server, and on this site in the blogs section there is an article https://itdraft.ru/2018/08/29/kopirovanija-sinhron...
(Copying (synchronizing) data from a remote server to a network storage (NAS)). Here is an example of copying.
We create a folder where we upload the site on our computer
mkdir /tmp/site.ru
, we open port 22 on our computer to an external device, if you have a router, then do not forget to make port forwarding in it.
tar cvfz - /var/www/site.ru |ssh [email protected] "cd /tmp/site.ru;tar xvfz -"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question