WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Suggestion to improve encrypted backup  (Read 1821 times)

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
Suggestion to improve encrypted backup
« on: September 12, 2010, 05:09:37 PM »
When using backup encryption, currently Tiny Core decrypts the backup file at the time it is restored and it is left unencrypted on disk until the next time a backup is made. 

This causes 2 problems that I can see:

1.  When shutting down, if the user decides to not backup, then their backup is left unencrypted (which isn't what I would expect).  Or if the computer is unexpectedly shutdown (battery dies or something) then the backup is left unencrypted.   
2.  If your encrypted backup is stored on read only media (CD disk, or a USB flash drive with write protection switch enabled), then currently it can't be restored using filetool.sh because it tries write the unencrypted file to the read only media. 

As an alternative, I think filetool.sh could be modified to restore the backup without writing the unencrypted file to disk by using a command line similiar to this:

bcrypt -o mydata.tgz.bfe | busybox tar -C / -xvzf -

This would require some changes in filetool.sh to support this.   If this is something that would be accepted, I can make the needed changes. 

Thanks,
Brian

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Suggestion to improve encrypted backup
« Reply #1 on: September 14, 2010, 10:48:57 AM »
Sure. It would be accepted.
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Suggestion to improve encrypted backup
« Reply #2 on: September 17, 2010, 07:51:29 AM »
Received and accepted into base. Thanks.
10+ Years Contributing to Linux Open Source Projects.