Tiny Core Base > TCB Q&A Forum
Use encrypted backup
roberts:
Upon initial use of "protect" it will not find any backup file via automatic scanning. One must use the "restore" boot option.
If starting new then upon normal shutdown or backup the backup file will be encrypted.
However, if you already have an existing backup, mydata.tgz, then, of course, "protect" will not load it.
Therefore you must manually load it via:
$ sudo tar -C / -zxvf /path/to/mydata.tgz
Then upon shutdown/backup it will be encrypted.
Subsquent booting and shutdown will work as expected and the restore boot option is no longer required.
Xianwen Chen:
Thanks Robert,
I use boot Core Linux from a USB disk. Here is my menu.lst for GRUB:
--- Code: ---default 0
timeout 10
title Core Linux
kernel /tcl/vmlinuz tce=UUID=01503e74-9aae-40cb-96f0-8164b891c652 waitusb=3 restore=UUID=01503e74-9aae-40cb-96f0-8164b891c652 tz=MST7MDT,M3.2.0,M11.1.0 kmap=dvorak/ANSI-dvorak host=foo.bar text cron protect
initrd /tcl/core.gz
boot
--- End code ---
I was asked to input password twice after kmaps was loaded. Then, a clean system showed up since I moved mydata.tgz (and since it wouldn't be loaded anyway). I ran filetool.sh -b but the resulted archive is not encrypted. I tried to move option protect right after /vmlinuz but it didn't help. Does it have something to be with the way I specify restore (using UUID)?
roberts:
Try filetool.sh -b sdxy
where xy are what your uuid maps to.
Xianwen Chen:
Hi Robert,
Thanks. I used filetool.sh -b sdc1 and mydata.tgz was generated. Is there some temporary file which saves encryption configuration I can look into?
roberts:
First using the uuid did not play into the protect backup. What happens is when you have an existing mydata.tgz and you use the protect boot code, it will not find the encrypted backup, mydata.tgz.bfe, as it has not been created yet. Because the system did not find it /etc/sysconfig/backup_device never gets set. That is why filetool.sh -b did not work and required the extra parameter.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version