In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use ssh to download all the contents of the remote server offline. I hope you will get something after reading this article. Let's discuss it together.
We can use the following command to achieve our goal.
Wget-nH-- cut-dirs=*-m-- ftp-user=*-- ftp-password=* ftp://*.*.*.*/*
The * sign in this needs to be replaced with its own value, needless to say the user name and password, the main thing is the processing of the directory part.
Suppose that after FTP logs in to 127.0.0.1, there is a directory under the root directory called somedir. We want to download the files in this directory to the current directory on our machine, as follows
Wget-nH-- cut-dirs=1-m-- ftp-user=*-- ftp-password=* ftp://127.0.0.1/somedir/ assumes that you are downloading the second directory under somedir under the root directory, as follows
Wget-nH-- cut-dirs=2-m-- ftp-user=*-- ftp-password=* ftp://127.0.0.1/somedir/second/ if we download so many files that it will take several days to download, can't we just shut down the computer and let VPS download it offline?
The answer is also no, but with screen, it is different.
Screen can simulate multiple windows on a physical terminal. Most importantly, you can hang these windows. In this way, it is possible to close the window that is executing the program.
Create a new window
1. Type the command screen.
This creates a new window that can be used like a normal terminal. You can execute the exit command if you need to exit this window. Windows can be nested, and if it is a multi-tier window, it will return to the previous level after exiting.
two。 Enter the command screen vim
This will allow you to run vim with a new window.
Suspend and restore window
Type Cmura d (Ctrl + a) in the current screen window, and then press the d key to suspend the current window, but the program that opens in this window continues to execute.
Enter the command screen-ls to view the suspended window:
[root@Nginx domain] # screen-ls
There is a screen on:
22496.pts-0.Nginx (Detached)
1 Socket in / var/run/screen/S-root.
Recovery window: screen-r 22496
Install screen:
Yum install screen
After reading this article, I believe you have a certain understanding of "how to download all the contents of a remote server offline using ssh". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.