Selecting encrypted files list
Brought to you by:
thesun
|
From: Shachar S. <rsy...@sh...> - 2005-06-07 14:41:07
|
Gary Holzer wrote:
>Dear List,
>
>I am currently trying to setup rsyncrypto so that the it will only
>encrypt certain file types e.g. *.dbf *.fpt *.cdx and also not to
>recursively look through a folder structure. The -r seems to include
>all directories recursively. Could I use the --trim?
>
>I am currently unsucessfuly playing around with building a file list
>in a text file and parsing this to rsyncrypto.
>
>Any help would be much appreciated.
>
>Thanks
>
>Gary
>
>
The first thing that comes to mind is:
find . -name \*.dbf -or -name \*.fpt -or -name \*.cdx -maxdepth 1 -print
| rsyncrypto --filelist - destinationdir keysdir certificate.crt
There may be some room for tweaking this, of course. For example, the
above will not delete encrypted files from the encrypted dir. If that is
what you want, a more elaborate scheme will need to be performed.
Hope this helps,
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting ltd.
http://www.lingnu.com/
|