WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can I have only restore on startup and no backup on shutdown?  (Read 2506 times)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Can I have only restore on startup and no backup on shutdown?
« 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?

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: Can I have only restore on startup and no backup on shutdown?
« Reply #1 on: November 08, 2009, 03:34:47 AM »
Try to add this in ~/.profile:
Code: [Select]
BACKUP=0
export BACKUP
dCore user

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Can I have only restore on startup and no backup on shutdown?
« Reply #2 on: November 08, 2009, 04:04:39 AM »
That worked, thanks!  :D

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Can I have only restore on startup and no backup on shutdown?
« Reply #3 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.
Many people see what is. Some people see what can be, and make a difference.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Can I have only restore on startup and no backup on shutdown?
« Reply #4 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
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Can I have only restore on startup and no backup on shutdown?
« Reply #5 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.
Many people see what is. Some people see what can be, and make a difference.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Can I have only restore on startup and no backup on shutdown?
« Reply #6 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."