To produce a single encrypted file containing all files in the directory, with symmetric encryption:
tar cvf -name_of_directory | gpg -c > files.tar.gpg
or key-based encryption:-
tar cvf -name_of_directory | gpg -e > files.tar.gpg
To encrypt each file separately:-
find name_of_directory -type f -exec gpg -e '{}' \;
No comments:
Post a Comment