WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Restoring user's settings?  (Read 128 times)

Offline labeas

  • Jr. Member
  • **
  • Posts: 66
Restoring user's settings?
« on: February 12, 2017, 11:18:24 AM »
What  is TC's recommended/proven method for users to restore
their chosen setting made to the apps, so that they don't need
to repeat the same setup procedure for each reboot.

=> find location of settings
=> save RAM:tree to USB:tree by calling a shutdown script
At Re-boot:
=> in SetupScript
=> copy USB:tree to RAM:tree

But there are complications eg. need to allow for
USB mount <name> to change, depending on what's plugged.

PS. I'm still googling to know how to use the apparently
installed & working WiFi.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 2297
Re: Restoring user's settings?
« Reply #1 on: February 12, 2017, 12:57:02 PM »
Hi Labeas

I think you would really benefit from reading the " Book " downloadable from here http://tinycorelinux.net/book.html
to learn how TC operates.


BTW, the recommended method to achieve persistence of custom files on subsequent reboots is to add these individual files to your backup.
This is just one form of "persistence"  you'll find others in the book

There is a "BackUp/Restore" gui in "ControlPanel" to assist with adding files to /opt/.filetool.lst that you want to keep.  Also you can add files to/opt/.xfiletool.lst
for files you wish to exclude from the backup.
Or you may enter
Code: [Select]
filetool.shto view available options

Backup is enabled by default.  You may need to verify that  a backup file exists,  if not then create one by first verifying there is a file in filetool.lst to backup then use
Code: [Select]
filetool.sh -b
a backup file is created in the tce directory, usually named something like "/tce/mydata*.tgz

Then you only need to add custom config files to .filetool.lst followed by running the backup tool to save the files.

You can also use this command to make a quick backup
Code: [Select]
backup

 
« Last Edit: February 12, 2017, 01:13:48 PM by coreplayer2 »

Offline labeas

  • Jr. Member
  • **
  • Posts: 66
Re: Restoring user's settings?
« Reply #2 on: February 12, 2017, 06:17:55 PM »
> I think you would really benefit from reading the " Book " downloadable from here >http://tinycorelinux.net/book.html
> to learn how TC operates.

Yes thanks.
That confirms the several new requirement, for TC's fast operation.

Offline patrikg

  • Full Member
  • ***
  • Posts: 234
Re: Restoring user's settings?
« Reply #3 on: February 13, 2017, 12:50:33 AM »
And if you add "v" to the filetool.sh you could also see what files being backed up.

like:
Code: (bash) [Select]
filetool.sh -bv