laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.36k stars 443 forks source link

Encrypt the folder after backup, also decrypt it during restore #256

Open rajib-raiyat opened 1 year ago

rajib-raiyat commented 1 year ago

Is there any encryption and decryption support available?

psmanek commented 1 year ago

No. You can encrypt whole drive, for example using FileVault on mac.

rajib-raiyat commented 1 year ago

Isn't it a good feature that we include encryption and decryption?

laurent22 commented 1 year ago

Personally I don't need it because I backup to local drives which are already encrypted. But for SSH backup it's different obviously. Maybe some utility could be piped to encrypt the data before sending it?

rajib-raiyat commented 1 year ago

Most people like you don't encrypt the entire drive, but if they want to backup their data to a partition on another hard drive (not SSH), it can be very useful. Also in this script we can offer both options (backup with encryption or backup without encryption) to the user. It could be a very good feature to give an additional security option from our (this script) end.

psmanek commented 1 year ago

Backup solution should be as easy as possible. If you make encrypted backup and after few years this script will no longer be developed, you may lose access to your backup files (because they are encrypted). Simplicity is the key.

Try BorgBackup or Restic if you want encrypted and deduplicated backups.

rajib-raiyat commented 1 year ago

I agree with your opinion that backup solutions should be simple and easy to use. However, it's also true that if the backup script is no longer supported after a few years, users may not be able to access their backup files. One potential solution is to encrypt the backup files with a password and use a consistent encryption and decryption algorithm to ensure long-term accessibility and security.