Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: jur on November 08, 2009, 03:31:07 AM

Title: Can I have only restore on startup and no backup on shutdown?
Post by: jur on November 08, 2009, 03:31:07 AM
I have persistent /opt  and /~ folders. The way I use filetool is simply to restore xorg.conf and a few other customisation scripts.

So what I would like to have by default, is to have these files restored at boot time but not backed up at shutdown time (because they are already backed up from previous sessions). If I make a change, I commit that change either by ticking the backup tickbox on the tcexit dialog, or by using the cpanel and doing backup that way.

Something in between the norestore boot option and the default option. Possible now?
Title: Re: Can I have only restore on startup and no backup on shutdown?
Post by: jls on November 08, 2009, 03:34:47 AM
Try to add this in ~/.profile:
Code: [Select]
BACKUP=0
export BACKUP
Title: Re: Can I have only restore on startup and no backup on shutdown?
Post by: jur on November 08, 2009, 04:04:39 AM
That worked, thanks!  :D
Title: Re: Can I have only restore on startup and no backup on shutdown?
Post by: Guy on November 08, 2009, 04:31:47 AM
It is easy to make a new extension with your personal files. Then you don't need to use backup at all.

You need the squashfs-tools-4.0 extension installed.

For example

sudo su
mkdir -p /home/myextension

Copy your files to myextension. If you need to merge directories, use Rox. (sudo rox)

sudo su
cd /home
mksquashfs myextension/ myextension.tcz

Copy the new extension to the tce directory.
Title: Re: Can I have only restore on startup and no backup on shutdown?
Post by: bmarkus on November 08, 2009, 04:34:07 AM
It is easy to make a new extension with your personal files. Then you don't need to use backup at all.

You need the squashfs-tools-4.0 extension installed.

For example

sudo su
mkdir -p /home/myextension

Copy your files to myextension. If you need to merge directories, use Rox. (sudo rox)

sudo su
cd /home
mksquashfs myextension/ myextension.tcz

Copy the new extension to the tce directory.

And don't forget to create the md5 file and place in tce, otherwise it will not work:

md5sum myextension.tcz > myextension.tcz.md5.txt
Title: Re: Can I have only restore on startup and no backup on shutdown?
Post by: Guy on November 08, 2009, 04:39:47 AM
Quote
And don't forget to create the md5 file and place in tce, otherwise it will not work:

It works for me without an md5 file.
Title: Re: Can I have only restore on startup and no backup on shutdown?
Post by: bmarkus on November 08, 2009, 04:44:10 AM
Well, it was already discussed in another topic. Lack of md5 file is a pain for any extension validation, integrity check tool so even if it added to the base it is a better practice to use always.