Bash Script to decrypt encrypt log and archive

Hi

Please see if you have come across any aprts of this. I can read, integrate and syntehsixe. Any help you could offer me would be super. thanks in advance!

Good day.

Thank you for your response in this matter. Here are some further details:

1) scripting is to be in BASH shell programming

2) when targeting a named directory, based on filtering, we will need to:
a) identify the .pgp extension files present (there may be a timestamp before or after the .pgp)
b) archive the received file (.pgp)
c) decrypt the file using GPG (we have the priv key)
d) put the file back into the same directory and archive it as well
Log all activities, delete gpg file from directory only if successful in decrypting

3) when targeting another directory, we will need to
a) archive the file(s) pre-encryption. (based on location (file name) and then on extension
b) may or may not need to timestamp it
c) encrypt the files separately. Here: depending on the directory that the file is present it will be encrypted with a certain key
(a hierarchy of folders will be scanned)
d) may need to timestamp it here (not sure yet if timestamp is needed before or after encryption)
e) archive the encrypted files
f) be sure the new files are in the same directory as the original ones
g) delete the original files from the directory (this may be done by GPG but im not sure), but only delete if the encryption was successful
h) may need to change the rights of the new file
i) log all steps performed or failed on.

4) For each of the archivings done, every week (MON 00:01) a new tarball should be created. Not sure progamatically
what is simpler, but weekly or some like variation (ideally start new MON 00:01 AM) may be the best

As well, it is important to check that the file is not in use when going to encrypt it, or decrypt it.
Not sure what method is best to verify if the file is in use, but this should be checked as well.

thanks for your help in advance!

Really? You're basically asking us to do your work for you? Because this basically is a project proposal, and I don't think you've got any idea on how to do it.

If you do, ask specific questions about certain parts, and show some effort on your part first.