General TC > Programming & Scripting - Unofficial

Idea for exittc (shutdown program) - add in checkbox to show backup status

<< < (3/4) > >>

ixbrian:

--- Quote from: TaoTePuh on August 22, 2010, 02:57:23 PM ---@tinypoodle

Okay, I have seen in filetool.sh that you must run some effort to determine (universally valid) the path to mydata.tgz. No chance for me to formulate this as a one-liner.

So I make myself easy, and correct me like this :


--- Code: ---tar tvzf /PATH_TO_YOUR_BACKUP/mydata.tgz | sort -n +2 -3
--- End code ---

 ;D ;D ;D


--- End quote ---

There is also this:   http://forum.tinycorelinux.net/index.php?topic=6979.0     It will show you the uncompressed size of your backup and what percentage each file in your backup is of the overall backup size. 

ixbrian:

--- Quote from: roberts on August 22, 2010, 02:38:32 PM ---IMHO doing a list upon exit is too late. Doing it while attempting a backup is too late.
Reviewing an existing mydata.tgz is too late. This topic has been discussed much since I first created these scripts in 2003.

--- End quote ---

I agree with you that it is too late upon shutdown to list your files in order to determine if you are backing up too much or incorrect files.    In my case, I know what is in my backup and it all needs to be there.   However, when I shutdown my computer the backup seems like it takes forever just because there is no visual indication that anything is happening.    For me, seeing the list of files being backed up on the screen changes the perception of how long the backup takes because I can see the status and progress. 

Thanks,
Brian

TaoTePuh:
@tinypoodle


--- Quote ---tc@box:~$ tar tvzf /mnt/sda5/mydata.tgz | sort -n +2 -3
sort: invalid option -- '3'
--- End quote ---

I suspect here a restriction by the "busybox sort".

A "tce-load -i coreutils" in front of the command should fix this ...


EDIT, to love of completeness, so it works with the "busybox sort" and the "corutils sort"


--- Code: ---tar tvzf /PATH_TO_YOUR_BACKUP/mydata.tgz | sort -k 3n,4
--- End code ---

tinypoodle:
That works, thanks.  ;D

roberts:

--- Quote ---currently it isn't possible to specify a backup/restore device without also implying the "noprompt" option.
--- End quote ---

Hmmmm, works as expected displaying the files with a prompt at completion;
 filetool.sh backup "" sda1/tce

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version