Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: ixbrian on September 12, 2010, 05:09:37 PM

Title: Suggestion to improve encrypted backup
Post by: ixbrian 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
Title: Re: Suggestion to improve encrypted backup
Post by: roberts on September 14, 2010, 10:48:57 AM
Sure. It would be accepted.
Title: Re: Suggestion to improve encrypted backup
Post by: roberts on September 17, 2010, 07:51:29 AM
Received and accepted into base. Thanks.