IFW Backup Batch Script by Tom Cole - 07-Mar-2022

User discussion and information resource forum for scripting of TeraByte products using script lanugages such as TBScript, VBScript, Batch Files, and more.
TAC109
Posts: 259
Joined: Tue Sep 06, 2011 10:41 pm

Re: IFW Backup Batch Script by Tom Cole - 31-Jan-2020

Post by TAC109 »

31-Jan-2020 Vn 4.14 - Bug fix.

- Fixed an error in three of the 'MyDefrag' scripts.
- Changed the 'MyDefrag' scripts to not defrag 'swapfile.sys'.
Last edited by TAC109 on Tue Jan 18, 2022 2:53 am, edited 1 time in total.
My IFW backup batch script:- http://bit.ly/2xTuLyw
skunk
Posts: 1
Joined: Fri Sep 06, 2019 1:32 pm

Re: IFW Backup Batch Script by Tom Cole - 31-Jan-2020

Post by skunk »

I'm way late, but these scripts are amazing. Much <3.
TAC109
Posts: 259
Joined: Tue Sep 06, 2011 10:41 pm

Re: IFW Backup Batch Script by Tom Cole - 31-Jan-2020

Post by TAC109 »

Thanks for the compliment!
My IFW backup batch script:- http://bit.ly/2xTuLyw
YesAndNo
Posts: 38
Joined: Sat Aug 24, 2013 11:14 am

Re: IFW Backup Batch Script by Tom Cole - 31-Jan-2020

Post by YesAndNo »

I've been using these scripts for a long time, they've been great.
Something strange happened today though, I got a 'disk full' error message part way through backup. It didn't delete old backups as would be normal. I did however force a full backup as I'd made changes to partition size, don't know if that could be the problem. Other than that, maybe I've got something set up wrong.

If you have any ideas on this, please let me know.
Many thanks.
TAC109
Posts: 259
Joined: Tue Sep 06, 2011 10:41 pm

Re: IFW Backup Batch Script by Tom Cole - 31-Jan-2020

Post by TAC109 »

Hi YesAndNo

The script calculates the space required for the next full backup based on the size of the previous full backup multiplied by a percentage. If the backup sizes are very different then the script can run out of space, as you have found. (The percentage to be used in the calculation is specified by the 'msf' entry in the IFW_Env.cmd file, and the default is usually set to 130).

If you start the script from the 'IFW Backup - Options' shortcut, there is a menu item '2 - Space needed for next backup' where you can enter the number of megabytes estimated for the next backup. After specifying this, when you run the next backup, sufficient old backups will be deleted to free up at least that amount of space.

Hope this helps and you are keeping well.
My IFW backup batch script:- http://bit.ly/2xTuLyw
YesAndNo
Posts: 38
Joined: Sat Aug 24, 2013 11:14 am

Re: IFW Backup Batch Script by Tom Cole - 31-Jan-2020

Post by YesAndNo »

Thanks a lot Tom, I appreciate it.
Difficult to guess the size of the next backup though, I suppose take the size of the last full and add 50% or something, or maybe double it. Will give it a go.
Thanks again.
TAC109
Posts: 259
Joined: Tue Sep 06, 2011 10:41 pm

Re: IFW Backup Batch Script by Tom Cole - 31-Jan-2020

Post by TAC109 »

If you look at the stats from the start of the failed run you can then use menu item 2 to input a size that will force the script to delete the oldest backup (full plus associated changes). Hopefully there will then be enough room to repeat your last backup successfully. You can repeat this procedure if necessary.

Edit: If there is no 'Sz' shown in the stats, take the 'Free' value and add on a bit more. Use this value as the 'Space needed for next backup' size.

Edit2: If there is a 'Sz' shown in the statistics, the calculation is 'Sz' - 'Used' + 'Need'. Then add on a bit more and use this value as the 'Space needed for next backup' size.
Last edited by TAC109 on Tue Mar 01, 2022 4:03 am, edited 2 times in total.
My IFW backup batch script:- http://bit.ly/2xTuLyw
TAC109
Posts: 259
Joined: Tue Sep 06, 2011 10:41 pm

Re: IFW Backup Batch Script by Tom Cole - 14-Jan-2022

Post by TAC109 »

Updated 14-Jan-2022 Vn 4.15 - Enhancements.
  • IFW_Backup can now automatically wait up to a specified maximum
    number of seconds to allow any offline folders to come on-line
    prior to proceeding with the backup. This new facility can also
    take place when running under TBWinPE/RE. (There is no need to
    regenerate the TBWinPE/RE environment to use this facility.) The
    maximum wait time is specified in the new 'set mw' entry in the
    IFW_Env.cmd file, and defaults to 45 seconds.
  • Date and time processing has been changed to handle more regions
    and to avoid possible roll-over problems at midnight.
  • Detection of %Temp% folders has been improved when running under
    TBWinPE/RE.
  • There is now a 'MyDefrag' script (and its _test equivalent) to
    minimally defragment SSD's before a full backup.
Last edited by TAC109 on Tue Mar 01, 2022 2:04 am, edited 1 time in total.
My IFW backup batch script:- http://bit.ly/2xTuLyw
TAC109
Posts: 259
Joined: Tue Sep 06, 2011 10:41 pm

Re: IFW Backup Batch Script by Tom Cole - 07-Mar-2022

Post by TAC109 »

01-Mar-2022 Vn 4.16 - Enhancements and bug fixes.
  • IFW_Backup now handles backups protected by TeraByte's 'ProtectIt'
    driver. See the 'set bak' and 'set dat' entries in the
    IFW_Env.cmd file for more details. (Also, if you need to move
    existing backups to the new folder structure, see
    IFW_Read_Me_n.nn.txt => 'Options' => 'M - Maintain Control Files
    menu' => option 'C - Change Backup Folder Name'.)
  • Added a new optional 'set rax' entry to the IFW_Env.cmd file to
    copy the latest specified number of logs to the IFW installation
    folder so that these can be viewed with the 'TBI Notify' utility.
  • The IFW_Installer will adjust the 'set ifw' entry in the user's
    IFW_Env.cmd file(s) to refer to the '\Program Files(x86)\' folder
    directly if needed. (Used for the new 'set rax' entry above.)
  • Fixed a bug where the warning message 'Next backup will be full'
    could be incorrectly shown if a Change-only backup was selected
    in the Options menu.
  • Fixed the error message shown for a parameter error.
07-Mar-2022 Vn 4.17 - Enhancements and bug fixes.
  • Fixed the creation of the IFW_Data folder on first run which failed sometimes.
  • Improved the formatting of the 'Display backup statistics' option.

Updated version is at https://bit.ly/34ocPzy

See these screenshots for how to change the backup folder name. (More screenshots at beginning of this thread.)
Attachments
IFW_Backup_4R.png
IFW_Backup_4R.png (17.21 KiB) Viewed 2266 times
IFW_Backup_6R.png
IFW_Backup_6R.png (47.61 KiB) Viewed 2310 times
My IFW backup batch script:- http://bit.ly/2xTuLyw
Post Reply