Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: manit123 on March 05, 2013, 03:54:34 AM

Title: restore from mydata.tgz but not ask me to backup at exit
Post by: manit123 on March 05, 2013, 03:54:34 AM
How can I do above ?
I have read
export BACKUP=0 ;  exittc
command helps .
I want 'none' selected when I choose exit .
Can I do it without explicitly running any command ?
Title: Re: restore from mydata.tgz but not ask me to backup at exit
Post by: SamK on March 05, 2013, 04:33:35 AM
I want 'none' selected when I choose exit .
Can I do it without explicitly running any command ?
In the home directory is a hidden file named .profile.  Edit this file and change the line
Code: [Select]
export BACKUP=1

to

export BACKUP=0

After a restart, when shutting down TC, the Backup Option will show None.
Title: Re: restore from mydata.tgz but not ask me to backup at exit
Post by: gerald_clark on March 05, 2013, 10:05:32 AM
You will need to backup to save the change though.
Title: Re: restore from mydata.tgz but not ask me to backup at exit
Post by: SamK on March 05, 2013, 11:48:58 AM
You will need to backup to save the change though.
This is good advice.

That step is certainly needed if your home directory is non-persistent and/or a backup has previouly been created.

It can be omitted if your home directory is persistent (via bootcode home=...) and a backup has not been previously created.
Title: Re: restore from mydata.tgz but not ask me to backup at exit
Post by: manit123 on March 10, 2013, 05:15:38 AM
editing ~/.profile worked .
Thanks.