General TC > Programming & Scripting - Unofficial
Idea for exittc (shutdown program) - add in checkbox to show backup status
roberts:
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.
Typically, it is in HOME that files accumulate that you may not be aware that will cause an attempted backup to either take very long to complete or possibly even fail.
To see large files residing in your home you can use:
find /home/tc/ -type f -size +1M | xargs ls -lhS
I will add a tab to system stats to report big files.
TaoTePuh:
@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
tinypoodle:
--- Quote from: roberts on August 22, 2010, 02:38:32 PM ---
To see large files residing in your home you can use:
find /home/tc/ -type f -size +1M | xargs ls -lhS
--- End quote ---
--- Code: ---tc@box:~$ find /home/tc/ -type f -size +1M | xargs ls -lhS
find: invalid number '1M'
--- End code ---
Replacing '1M' by '1024k' appears to work. ;)
ixbrian:
--- Quote from: tinypoodle on August 22, 2010, 01:54:04 AM ---Would it be easy to have such a feature for backup even when not done upon shutdown?
--- End quote ---
Attached is an updated filetool.fl that includes an optional check box that will pop open a terminal that will show you the backup/restore status.
I also had to make a minor change to filetool.sh (also attached) because currently it isn't possible to specify a backup/restore device without also implying the "noprompt" option.
Brian
tinypoodle:
--- Quote from: TaoTePuh on August 22, 2010, 02:57:23 PM ---
--- Code: ---tar tvzf /PATH_TO_YOUR_BACKUP/mydata.tgz | sort -n +2 -3
--- End code ---
--- End quote ---
--- Code: ---tc@box:~$ tar tvzf /mnt/sda5/mydata.tgz | sort -n +2 -3
sort: invalid option -- '3'
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version