WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: n00b question about backup and restore  (Read 1876 times)

Offline 0ldfart

  • WikiUser
  • *
  • Posts: 6
n00b question about backup and restore
« on: December 18, 2009, 04:21:52 AM »
I tried TCL for the first time today and was really impressed with it. Im having trouble working out the backup and restore function though.

I am booting from cd, and want to backup/restore to usb

I set mounted sdb1 and set it as backup, and the box is ticked to back up on shutdown.

Theres a mydata file on the usb - so I guess that means it worked.

However, when I reboot, there's no sign that I backed up. My installed apps are gone and everything is back to defaults.

I tried mounting sdb1 and selecting restore, but nothing happens.

After installing apps and rebooting several times I gave up and figured it was time to seek some help :)

What I want to do:

Boot from cd, and have TCL restore my personal files and installed apps from my USB drive. It would be great if its possible to do this automatically, if not, I dont mind doing whatever is required when it starts to get things back to how I left them.

Is it possible to do this?

« Last Edit: December 18, 2009, 04:24:43 AM by 0ldfart »

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: n00b question about backup and restore
« Reply #1 on: December 18, 2009, 05:01:05 AM »
Since you are booting from a cd at the very first boot prompt enter
tinycore tce=sda1 waitusb=5
Doing this a tce folder will be setup on your pendrive to store downloaded applications.

You only need to do the tce=sda1 one time.
However, since you are booting from a cd and wanting to access the pendrive for your backup and applications you will always need to type tinycore waitusb=5

5 is the number of seconds to wait for the pendrive, you may need to use more or less.
10+ Years Contributing to Linux Open Source Projects.

Offline 0ldfart

  • WikiUser
  • *
  • Posts: 6
Re: n00b question about backup and restore
« Reply #2 on: December 18, 2009, 05:43:49 AM »
Since you are booting from a cd at the very first boot prompt enter
tinycore tce=sda1 waitusb=5
Doing this a tce folder will be setup on your pendrive to store downloaded applications.

You only need to do the tce=sda1 one time.
However, since you are booting from a cd and wanting to access the pendrive for your backup and applications you will always need to type tinycore waitusb=5

5 is the number of seconds to wait for the pendrive, you may need to use more or less.


Oh great. thanks very much for your help :)

err... this is probably a really stupid question, but, how come sda1? (in TCL sdb1 is the pen drive)


Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: n00b question about backup and restore
« Reply #3 on: December 18, 2009, 05:47:06 AM »
Your right sdb1 is your pendrive. I used the generic sda1. Use whatever is approriate for your system.
10+ Years Contributing to Linux Open Source Projects.

Offline JoXo009

  • Full Member
  • ***
  • Posts: 152
Re: n00b question about backup and restore
« Reply #4 on: December 18, 2009, 03:32:24 PM »
Since you are booting from a cd at the very first boot prompt enter
tinycore tce=sda1 waitusb=5
Doing this a tce folder will be setup on your pendrive to store downloaded applications.

You only need to do the tce=sda1 one time.
However, since you are booting from a cd and wanting to access the pendrive for your backup and applications you will always need to type tinycore waitusb=5

5 is the number of seconds to wait for the pendrive, you may need to use more or less.

Just an idea:

Woudn't it possible to test from within the iso, if it is running from CD/USB this time and if so to do a waitusb=5 by default - which could be overwritten in the rare cases it isn't needed?

The same to 'first time tce=sda1/sdb1' - couldn't it be provided by default if there is no tce dir on harddrive but an usb present?

Maybe such default could make live easier for newcomers, as especially that 'handwritten bootcode needed' but 'not needed (second time)' feature often may lead to misunderstandings. (Where/when/how/what to bootcode isn't intuitive at all without explaining screenshots.)

It's an idea only. Don't know if it is possible, as I don't use CD or usb myself.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9612
Re: n00b question about backup and restore
« Reply #5 on: December 19, 2009, 01:11:07 AM »
Unfortunately not possible. It would need to be within the bootloader, to be able to choose what bootcodes to add. I don't think any of the bootloaders has that kind of scripting, nor recognition whether they run from CD or usb. Heck, even usb support at all isn't in many of them.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6912
    • My Community Forum
Re: n00b question about backup and restore
« Reply #6 on: December 19, 2009, 01:31:47 AM »
Do it differently. Does it harm to use waitusb=5 always? Is there any side effect with CD?
Béla
Ham Radio callsign: HA5DI

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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9612
Re: n00b question about backup and restore
« Reply #7 on: December 19, 2009, 03:10:46 AM »
Slower boot for everyone.
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 6912
    • My Community Forum
Re: n00b question about backup and restore
« Reply #8 on: December 19, 2009, 03:14:06 AM »
Slower boot for everyone.

Just 5 sec. But OK

On the other hand, this is so easy to edit the boot cfg file and add waitusb=5 or any other parameter, like noicons using LXDE. This is what I'm doing with USB.
Béla
Ham Radio callsign: HA5DI

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

Offline thane

  • Hero Member
  • *****
  • Posts: 619
Re: n00b question about backup and restore
« Reply #9 on: December 19, 2009, 10:52:13 AM »
Yup, I do the same thing on CD (no USB boot and flaky hard drive). Works fine.