0

I am trying to create an encrypted MySQL backup on a remotes server using Java to prevent IT employees from viewing the backup. Basically the sever I'm working on runs MySQL, which generate .sql backup files that are easy to access. I searched a lot on how to create an encrypted backup with no effective result. What i came to at the end is to use the java server to compress the .sql file into a password protected rar file and delete the .sql file from the pc. Is there any better way to keep my backup non-accessible without the need of rar?

Hassan Al Bourji
  • 185
  • 1
  • 13

1 Answers1

0

I guess a password encrypted 7zip file would be better because it reduces the backup size. But since MySQL cannot encrypt by itself, you always have to do it externally.

If you code in Java, you can use the 7zip SDK for Java, which allows to encrypt also.

Daniel
  • 27,718
  • 20
  • 89
  • 133
  • that what i am doing so far but I'm just wondering if there is any other way because the data are extremely private and accurate and zip files can be brute forced easily if you have access to HPC. – Hassan Al Bourji Dec 09 '15 at 11:46
  • 1
    I can't believe "Brute forced easily" in this context. If you are really afraid to have your stuff decrypted you could always double encrypt it with two different algorithms. Since knowing the contents of a backup will ease decryption, and since maybe all your backups start with similar headers you should always double encrypt them with different passwords. Else I believe HPC could really crack it. – Daniel Dec 09 '15 at 12:13