Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: mbertrand on September 06, 2017, 10:54:12 AM

Title: How to avoid an automatic backup during logout?
Post by: mbertrand on September 06, 2017, 10:54:12 AM
I know this topic was posted but it's been a long time ago. I've noticed that when I restart or shutdown that the default option is to do a backup first. I would like to default to NONE.
I've added a long time ago export BACKUP=0 in my .profile to make these changes but it does not seem to work?
Title: Re: How to avoid an automatic backup during logout?
Post by: Rich on September 06, 2017, 10:58:21 AM
Hi mbertrand
If your home directory is not persistent, did you remember to backup your  .profile  file?
Title: Re: How to avoid an automatic backup during logout?
Post by: mbertrand on September 06, 2017, 11:11:11 AM
Yes my .profile is backed up for sure
Title: Re: How to avoid an automatic backup during logout?
Post by: polikuo on September 06, 2017, 12:57:23 PM
Which arch/version are you using ?

I just test it on PiCore 9 and it's just fine.

The exittc checks for the environment variable "BACKUP", are you sure you've exported it in your .profile ?

exittc.cxx (https://github.com/tinycorelinux/fltk_projects/blob/master/exittc/exittc.cxx)
Code: [Select]
string backupDefault="1";
if ( getenv("BACKUP"))
backupDefault = getenv("BACKUP");
Title: Re: How to avoid an automatic backup during logout?
Post by: Rich on September 06, 2017, 01:06:29 PM
Hi mbertrand
I just realized you said:
I've added a long time ago export BACKUP=0 in my .profile to make these changes but it does not seem to work?
If this is really true, you should have replaced  export BACKUP=1  with  export BACKUP=0  in your  .profile  file since that
export already exists.
Title: Re: How to avoid an automatic backup during logout?
Post by: mbertrand on September 06, 2017, 01:18:04 PM
I've replaced with BACKUP=0 years ago and never realized when it stopped working until recently. I must add that we are still only at version TC 5.4.
If  I echo $BACKUP I get '0'.
Title: Re: How to avoid an automatic backup during logout?
Post by: mbertrand on September 06, 2017, 01:43:47 PM
Ummmm..... I decided to take chance and compile the latest exittc hoping I would not have any problem with newer dependencies. I was able to compile.
Still have the same problem. I'm executing it from a terminal and I can see that the BACKUP=0 .
Title: Re: How to avoid an automatic backup during logout?
Post by: mbertrand on September 06, 2017, 02:26:11 PM
Ok I know what is going on we have added the bootcode 'safebackup' a couple of years ago and exittc is looking for that and setting the backup option to 'safe'.