David chen
unread,Aug 11, 2011, 3:14:39 AM8/11/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to My Network
1. Using the following the command rsync, directories tree will be
created on target host/directory without files:
rsync -avc --no-links -f\"+ */\" -f\"- *\" --files-from=/usr/tmp/
filelist.txt / root@host:/usr/tmp/
#/usr/tmp/filelist.txt is file list, include the full path
2. openssl & dd
Using openssl encrypt the data and output the file to remote host/
directory with dd command:
openssl enc -md sha256 -aes-256-cbc -salt -k password -in /etc/init.d/
httpd |ssh host2 dd of=/root/httpd.enc
#You will get httpd.enc on host2 after run above command on host1, the
file has been encrypted, use the following command to decryption
httpd.enc on host2:
openssl enc -md sha256 -aes-256-cbc -d -salt -k password -in /root/
httpd.enc /tmp/httpd