Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

(IV) 12-unit exercise-- on compressed file transfer scp and rsync

2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1. Package the / etc directory into / mnt in the server host, named etc.tar.gz

/ / change the directory to mnt

/ / create a fileset called etc.tar

Look at the file under the current mnt, then compress it into gz format, and then return to the upper directory to be sent.

two。 Copy the etc.tar.gz from the server host to the / mnt of the desktop host

Send files using scp remote file transfer.

Its format is scp filename username@ip:/filename

3. Synchronize all files in / etc in the server host to the desktop host / mnt, including linked files

The format is: rsync-type character filename username@ip:/filename

Synchronize and include linked files in this topic, so the type characters are r and l, respectively.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report