Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: djca on September 03, 2012, 12:34:30 PM

Title: problem with backup
Post by: djca on September 03, 2012, 12:34:30 PM
So my question in short is that when I enter etc/inittab in file .filetool.lst the system do not create mydata.tgz and the file is not backed up. Why this happens? I thought that it is possible to backup any file.

Best Regards
Title: Re: problem with backup
Post by: gerald_clark on September 03, 2012, 12:50:27 PM
It is, but why do you need to backup /etc/inittab?
Check the backup log in /tmp
Title: Re: problem with backup
Post by: djca on September 03, 2012, 12:55:19 PM
I want to have more than one console terminal. I checked in tmp but don't see any log file there. By the way I have deleted mydata.tgz because the system keeped restoring even if I deleted home and opt from .filetool.lst.

Best Regards.
Title: Re: problem with backup
Post by: gerald_clark on September 03, 2012, 01:01:53 PM
Use the multivt boot code.
Title: Re: problem with backup
Post by: djca on September 03, 2012, 01:11:34 PM
Thanks for your fast reply. Now it is working perfectly.

But interesting why the system don't make backup of this file you have an idea.

Tnx again.
Best Regards.
Title: Re: problem with backup
Post by: gerald_clark on September 03, 2012, 01:29:23 PM
You mistyped something.
Backup will fail if anything in .flietool.lst is missing.
Title: Re: problem with backup
Post by: djca on September 03, 2012, 01:33:23 PM
very strange because I enter exactly this:
etc/inittab
Anyway now it is ok.

Best Regards.
Title: Re: problem with backup
Post by: coreplayer2 on September 03, 2012, 09:48:39 PM
It always amazes me how unforgiving (but that is a good thing) the backup is, not that this is wrong it's just just as it should be..  One small typo or missing file and the shutdown process comes to a halt until the issue is fixed.   The thing I remember most from this is every time I ever had an issue, it was always my fault..

I think the file to check is /tmp/backup_status (??)  it will display the filetool entry which is causing the error

 :-[
Title: Re: problem with backup
Post by: djca on September 08, 2012, 04:46:25 AM
I did some additional testing and it turns out that the system is not doing the backup before shutdown. I have to manually do filetool.sh -b so mydata file to be created.

Best Regards.
Title: Re: problem with backup
Post by: Rich on September 08, 2012, 06:11:37 AM
Hi djca
Are you running a GUI or non-GUI? Describe your shutdown procedure.
Title: Re: problem with backup
Post by: djca on September 08, 2012, 09:00:28 AM
Hello Rich

Well I use ISOLINUX console install. I created two primary partitions first with fat 32 and second ext4 on my flash drive. Then installed isolinux. and copied vmlinuz and core.gz. Well that is pretty much it.

Best Regards.
Title: Re: problem with backup
Post by: gerald_clark on September 08, 2012, 01:26:11 PM
Where is your tce directory?

ls -l /etc/sysconfig/tcedir
Title: Re: problem with backup
Post by: djca on September 08, 2012, 11:48:37 PM
All the three folders home opt and tce are on my flash drive sdb2.

Best Regards.
Title: Re: problem with backup
Post by: Rich on September 09, 2012, 05:08:57 AM
Hi djca
Quote
Are you running a GUI or non-GUI? Describe your shutdown procedure.
If you are running a GUI, use the Exit icon. If you are not running a GUI, you may have to call  filetool.sh -b
yourself, I'm not sure what the procedure is for that. If you just hit the power switch, all bets are off.
Title: Re: problem with backup
Post by: roberts on September 09, 2012, 07:55:37 AM
FYI there is a shortcut just type backup at prompt.
Title: Re: problem with backup
Post by: djca on September 09, 2012, 10:14:23 AM
Thanks for the info. This is the way I do it at the moment if there are some changes I do manual backup. I also found out that sdb1 is not mounted on boot. What do you think is the correct way to mount it. Create a new line in fstab and backup it or there is some other way.

Best Regards.
Title: Re: problem with backup
Post by: tinypoodle on September 09, 2012, 10:23:09 AM
Append the appropriate mount command to /opt/bootlocal.sh
Title: Re: problem with backup
Post by: Rich on September 09, 2012, 10:25:18 AM
Hi djca
Tinycore only mounts the drives it needs when it boots. All drives that it recognizes it lists in /etc/fstab.
To mount sdb1 just execute:
Code: [Select]
mount /mnt/sdb1If you want that drive mounted when you boot, just add that line to  /opt/bootlocal.sh
Title: Re: problem with backup
Post by: gerald_clark on September 09, 2012, 10:33:09 AM
If that is the partition with the tce directory, you have bad boot codes.
Show the output of showbootcodes.
Title: Re: problem with backup
Post by: djca on September 10, 2012, 10:13:56 AM
No this is a fat32 partition that I use to transfer files. I will try with  /opt/bootlocal.sh

Tnx
Best Regards.
Title: Re: problem with backup
Post by: gerald_clark on September 10, 2012, 10:17:11 AM
Even with a bootlocal.sh change, it will not automount if plugged in after boot.