WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: restore from mydata.tgz but not ask me to backup at exit  (Read 2445 times)

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
restore from mydata.tgz but not ask me to backup at exit
« 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 ?

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: restore from mydata.tgz but not ask me to backup at exit
« Reply #1 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.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: restore from mydata.tgz but not ask me to backup at exit
« Reply #2 on: March 05, 2013, 10:05:32 AM »
You will need to backup to save the change though.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: restore from mydata.tgz but not ask me to backup at exit
« Reply #3 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.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: restore from mydata.tgz but not ask me to backup at exit
« Reply #4 on: March 10, 2013, 05:15:38 AM »
editing ~/.profile worked .
Thanks.