Author Topic: Backup Solution  (Read 1980 times)

Offline Cababs

  • Master General
  • ****
  • Posts: 157
Backup Solution
« on: October 05, 2012, 12:25:19 PM »
Hey ev'ryone,

Can you help me out please. I've made a backup script that automatacly copyies all infomation from XP or Vista's users folders. there are other features in the file such as cleanup drive, directX diagnostic tool and the ablity to restore files.

I would like you to test it

This script will work in all versions of windows, including the server versions. Also it works in the Windows PE (Preinstallation Environment) and Windows RE (Recovery Enviroment)

Option 5 is incomplete so it will not work.

you can look at the code of the script, im always looking for more effiecent code

any questions just ask :)

Ta,
Cababs
« Last Edit: January 01, 2014, 05:40:41 PM by Cababs »
OS: Windows 7 Ultimate 64-bit SP1 (can vary on monthly basis)
Processor: AMD Phenom(tm) II X6 1100T Processor (6 CPUs), ~3.3GHz
RAM: 8GB
External GFX card: Nvidia GeForce GTX 550 Ti 1GB

Offline Feargan

  • Commodore
  • Unfound Engineer
  • *****
  • Posts: 472
    • UNFOUND
Re: Backup Solution
« Reply #1 on: October 11, 2012, 10:39:10 AM »
I have, to a limited degree.

You misspelled "Acquire". - But DxDiag loads fine.
I'm running windows 7, so the cleanup drive won't work for me.
I'd suggest a cancel option within the "Copy" menus.
I'm OUT of drive space, so I didn't try making any images.
Hope my not thorough testing helps.  :-\
Great script!  :D

Offline Cababs

  • Master General
  • ****
  • Posts: 157
Re: Backup Solution
« Reply #2 on: October 11, 2012, 01:59:03 PM »
You misspelled "Acquire". - But DxDiag loads fine.
I'm running windows 7, so the cleanup drive won't work for me.
I'd suggest a cancel option within the "Copy" menus.
I'm OUT of drive space, so I didn't try making any images.
Hope my not thorough testing helps.  :-\
Great script!  :D

1.) Acquire Mis-spelt - FIXED
2.) Odd Error. ill work on it
3.)WORKING ON IT NOW - IT WILL TAKE A WHILE.

great feedback :)
thanks, when im finshed ill upload the new version
OS: Windows 7 Ultimate 64-bit SP1 (can vary on monthly basis)
Processor: AMD Phenom(tm) II X6 1100T Processor (6 CPUs), ~3.3GHz
RAM: 8GB
External GFX card: Nvidia GeForce GTX 550 Ti 1GB

Offline Cababs

  • Master General
  • ****
  • Posts: 157
Re: Backup Solution
« Reply #3 on: October 15, 2012, 10:55:36 AM »
ok ive got a new backup solution uploaded. so download that suckker. hopefully the old problems should go away
OS: Windows 7 Ultimate 64-bit SP1 (can vary on monthly basis)
Processor: AMD Phenom(tm) II X6 1100T Processor (6 CPUs), ~3.3GHz
RAM: 8GB
External GFX card: Nvidia GeForce GTX 550 Ti 1GB

Offline Cababs

  • Master General
  • ****
  • Posts: 157
Re: Backup Solution
« Reply #4 on: February 18, 2016, 09:59:23 AM »
Wow my original post was October 2012.
I knew I had this script for a while but I didn't realise it was this long.

Over the last couple of weeks I have been replacing the majority of the code with more streamlined and "professional" code.

It still has a lot of IF STATMENTS but now it relies on your windows NT number. I have tried the different options and all seem to be working fine.

I have removed the option to create an image and to restore files back to a pc.

Features of renewed script.
Copy files from Users/docs and settings folder
Copy hidden files Users/docs and settings folder(app data/local settings)
retrieves system information using Dxdiag/MSINFO32
cleans HDDs. Deletes recycle bin context/ temp files / internet history-files. (idea taken from CCleaner)

Thanks to Feargan for talking about Notepad++. it has allowed me to see it easier. it now looks like a VBA project, that which I am quite familiar with.

Hope you enjoy using this as much as I developed it.
Any questions or any changes, i'm happy to hear about them.
OS: Windows 7 Ultimate 64-bit SP1 (can vary on monthly basis)
Processor: AMD Phenom(tm) II X6 1100T Processor (6 CPUs), ~3.3GHz
RAM: 8GB
External GFX card: Nvidia GeForce GTX 550 Ti 1GB

Offline Feargan

  • Commodore
  • Unfound Engineer
  • *****
  • Posts: 472
    • UNFOUND
Re: Backup Solution
« Reply #5 on: February 18, 2016, 10:30:37 AM »
Fuckin' Sweet! I have some questions I'll ask you later in ts, but the code looks great!

Offline Cababs

  • Master General
  • ****
  • Posts: 157
Re: Backup Solution
« Reply #6 on: February 27, 2016, 06:21:45 AM »
good to hear, I keep missing you on TS or we are distracted by TF2.

What questions do you have?
OS: Windows 7 Ultimate 64-bit SP1 (can vary on monthly basis)
Processor: AMD Phenom(tm) II X6 1100T Processor (6 CPUs), ~3.3GHz
RAM: 8GB
External GFX card: Nvidia GeForce GTX 550 Ti 1GB

Offline Feargan

  • Commodore
  • Unfound Engineer
  • *****
  • Posts: 472
    • UNFOUND
Re: Backup Solution
« Reply #7 on: February 27, 2016, 10:53:18 AM »
good to hear, I keep missing you on TS or we are distracted by TF2.

What questions do you have?

My questions all revolve around image creation and restoration through scripting.
The parts you removed, lol   ;D

Offline Cababs

  • Master General
  • ****
  • Posts: 157
Re: Backup Solution
« Reply #8 on: March 04, 2016, 03:58:58 PM »
I took them out for 2 reasons, 1st you would have to run this part of the script from Windows Recovery Enviroment (winRE). 2nd I would have had to add an imagex folder so that becomes more that 1 file. I am trying to contain everything in the one file.

Windows Image Backup, which can be run directly from Windows, I find is better. to understand why I will briefly explain Imagex or rather how it behaves in winRE. winRE assigns drive letters to each volume, this means that that 100MB partition that is generally on your OS drive then becomes C: and what you would see becomes D:.

you could capture this D: drive but you must apply it back to a D: drive.

I prefer to use Windows System Image because it captures both partitions, allowing you to replace the HDD with a different size.


The restore part of the script would copy the files to a user folder you choose. this was only usefull for 1 user. now I place the data recovered on the C: root and then place a shortcut on the desktop.
OS: Windows 7 Ultimate 64-bit SP1 (can vary on monthly basis)
Processor: AMD Phenom(tm) II X6 1100T Processor (6 CPUs), ~3.3GHz
RAM: 8GB
External GFX card: Nvidia GeForce GTX 550 Ti 1GB

Offline Cababs

  • Master General
  • ****
  • Posts: 157
Re: Backup Solution
« Reply #9 on: October 25, 2016, 02:30:02 PM »
SO when I get bored or need to do other things I tend to go back to things.

This backup script has now be rebuilt within Notepad++. it now has the correct indentation and some of the blocks of code have been moved for easy reading/editing. the core functions have not changed.

- removed Windows 9x support. only used it in VM, never in the real world.
* Changed how script detects windows version. now uses findstr for ver.
+ added Windows 10 support
+ added windows PE/RE support

if you like to test this feel free. file is now attached
OS: Windows 7 Ultimate 64-bit SP1 (can vary on monthly basis)
Processor: AMD Phenom(tm) II X6 1100T Processor (6 CPUs), ~3.3GHz
RAM: 8GB
External GFX card: Nvidia GeForce GTX 550 Ti 1GB