Every night I'm running a cron backup script, that gathers the files that I think is essential for the system and stores then in Info-ZIP archives. What I really would like is to encrypt these archives, but is it possible to do this without user input ?
Thanks in advance /flywheel
In short yes it is.
The real question is why are you encrypting them, and where are you storing them once encrypted. You can use a couple of methods to encrypt the data, but you will need to have a key, or password stored in the script or on the box doing the encrypting. GPG is a simple method of doing this, there are much more complicated version of this procedure as well.
To encrypt the file you would use something like:
not the -c tells is to use symmetric encryption
and to decrypt the file:
answered 05 Jul '11, 10:50