Книга: Fedora™ Unleashed, 2008 edition
Compressing, Encrypting, and Sending tar Streams
Compressing, Encrypting, and Sending tar
Streams
The file copy techniques using the tar
command in the previous section can also be used to quickly and securely copy a directory structure across a LAN or the Internet (using the ssh
command). One way to make use of these techniques is to use the following command line to first compress the contents of a designated directory, and then decompress the compressed and encrypted archive stream into a designated directory on a remote host:
$ tar cvzf - data_folder | ssh remote_host '( cd ~/mybackup_dir; tar xvzf - )'
The tar
command is used to create, list, and compress the files in the directory named data_folder.
The output is piped through the ssh
(secure shell) command and sent to the remote computer named remote_host
. On the remote computer, the stream is then extracted and saved in the directory named /mybackup_dir
. You are prompted for a pass word to send the stream.
- Разработка приложений баз данных InterBase на Borland Delphi
- Open Source Insight and Discussion
- Introduction to Microprocessors and Microcontrollers
- Chapter 6. Traversing of tables and chains
- Chapter 8. Saving and restoring large rule-sets
- Chapter 11. Iptables targets and jumps
- Chapter 5 Installing and Configuring VirtualCenter 2.0
- Chapter 16. Commercial products based on Linux, iptables and netfilter
- Appendix A. Detailed explanations of special commands
- Appendix B. Common problems and questions
- Appendix E. Other resources and links
- IP filtering terms and expressions