Tips: openssl and rsync

188 views
Skip to first unread message

David chen

unread,
Aug 11, 2011, 3:14:39 AM8/11/11
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

黄昊

unread,
Aug 11, 2011, 3:21:23 AM8/11/11
to share...@googlegroups.com
天书

2011/8/11 David chen <chen...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages