Recursive encrypting

Ryan Malayter rmalayter@bai.org
Thu Aug 7 17:00:02 2003


There's a similar command in Windows NT/2000/XP/2003.

The "FOR /R" command recursively walks a directory tree and calls a
command for each file. Type "FOR /?" at a command prompt for details.

> -----Original Message-----
> From: Anonymous Sender [mailto:anonymous@remailer.metacolo.com]=20
> Sent: Wednesday, August 06, 2003 10:55 AM
> To: gnupg-users@gnupg.org
> Subject: Re: Recursive encrypting
>=20
>=20
> Bob Metelsky:
> > Can someone tell me how I can recursively encrypt files and=20
> directories
>=20
> If you are on a unix box, use 'find' to encrypt your files.
>=20
>  $ find /some/path -type f -exec /path/to/my_script \{\} \;
>=20
>=20
> where my_script contains:
> #!/bin/sh
> # if everything goes as planned, the original files get deleted.
> gpg -e -r my_encryption_keyid "$1" && rm -f "$1"
>=20
>=20
> For a wholesale encryption of directories use 'cfs'.
>=20
>=20
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>=20