Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: mbertrand on July 18, 2012, 09:22:47 AM

Title: Backup very slow
Post by: mbertrand on July 18, 2012, 09:22:47 AM
I've noticed that the backup is very slow and that mydata.tgz is only 15MB nad located on sda1.
I don't have much in installed at least I don't think so. I only use .files.lst for persistence. No boot codes.
Title: Re: Backup very slow
Post by: roberts on July 18, 2012, 10:13:11 AM
Use Control Panel then System Stats and the default tab displays BigHomeFiles.
Use that to decide what to add to .xfiletoo.lst. Likely it is browser database files.

Or open a Terminal window and type
$ filetool.sh -d

The d is for dry-run this will display all files that are included in your backup.
Title: Re: Backup very slow
Post by: mbertrand on July 18, 2012, 10:26:30 AM
34 MB uncompressed
15 MB compressed.

I have my 2 program that is 15 MB and a QT lib that is 12 MB and the rest is not worth mentioning, just basic.
My computer is used in automation industry to control show there is the bare minimal with X and ssh for my program.
Title: Re: Backup very slow
Post by: roberts on July 18, 2012, 10:31:44 AM
Why would you include a static file, QT lib, in your backup.
Static content should be repackaged into an extension.
Title: Re: Backup very slow
Post by: mbertrand on July 18, 2012, 10:35:21 AM
Well as of now I don't know how to create extensions and currently the repos only has QT 4.7.4 and I need 4.8.2 so I'm managing it my self. Any ways, I believe the backup was find with these files and then suddenly became slow, like really slow (2 minutes).
Title: Re: Backup very slow
Post by: roberts on July 18, 2012, 10:50:51 AM
Visit the wiki such is not difficult.
Title: Re: Backup very slow
Post by: mbertrand on July 18, 2012, 10:53:27 AM
Of course I will, but you think this is the cause of a 2 minute backup?
Title: Re: Backup very slow
Post by: curaga on July 18, 2012, 12:56:37 PM
Well, is it a slow cpu? Compressing 34mb of content can take a while.
Title: Re: Backup very slow
Post by: Rich on July 18, 2012, 01:33:44 PM
Hi mbertrand
Quote
but you think this is the cause of a 2 minute backup?
You can easily answer that question yourself.
1. Copy your filetool.lst to filetool.bak.
2. Edit filetool.lst to remove any references to the two programs you are backing up.
3. Open a terminal and enter   time filetool.sh -b
4. Copy the filetool.bak to filetool.lst
5. Run another backup so you don't lose your two programs.
Step three will report how long it took to run your backup.
Title: Re: Backup very slow
Post by: mbertrand on July 19, 2012, 09:28:40 AM
My two programs and one QT lib (my big files) total about 30MB. The backup goes from 1m 40s to 0m 14s.
Wow I'm surprised that compression would take that long. Well thanks for your help.
Title: Re: Backup very slow
Post by: tinypoodle on July 20, 2012, 03:45:50 AM
You haven't provided any specs neither about your CPU or your write data throughput (bus + medium), but I can't see anything surprising at those values when compressing and writing such large binary files.
Title: Re: Backup very slow
Post by: roberts on July 20, 2012, 11:56:48 AM
The fact remains that static content has no useful purpose to be re-written upon every shutdown. It should be read only as provided by moving such out from any backup consideration and into an extension. That is the very purpose of extensions. Using the system as not intended will lead to poor results.