v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby plevans on Sun Oct 04, 2009 4:10 pm

Hi Fred,

When I run the script and select 'No' when asked 'Do you wish to restore your files?' the terminal window closes. Being a Linux newbie, I have no idea where to go from here.

I am using Gloria with GNOME 2.26.1.

Help!

Patti
plevans
Level 1
Level 1
 
Posts: 42
Joined: Wed Apr 29, 2009 7:28 pm

Linux Mint is funded by ads and donations.
 

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Sun Oct 04, 2009 4:34 pm

plevans,

At first glance it appears you may have made a mistake in the configuration section. Please post what you have in the first part of the file, down to the section below.

# # Begin - Begin --- Don't change anything below this line.
#
# ==========================================
#
# # Begin - Begin --- Start of Restore Utility v 1.4b by Fred

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby plevans on Sun Oct 04, 2009 6:09 pm

Code: Select all
# Change the folders mounted to other partitions below to
# indicate the data partitions and folders in your /home
# directory that you don't want backed up. You can exclude
# up to 5 folders/partitions from back-up. Always exclude
# the back-up folder if mounted in your /home. If you do
# not have data or back-up partitions mounted in your
# /home this doesn't apply to you. Put "no" in all 5
# positions.

fldr1="no"
fldr2="no"
fldr3="no"
fldr4="no"
fldr5="no"

# Set the mounting partitions that correspond to any data
# folders in your /home above, that are being excluded.
# If you do not have data or back-up partitions mounted in
# your /home this doesn't apply to you. Put "no" in all 5
# positions.

prtn1="no"
prtn2="no"
prtn3="no"
prtn4="no"
prtn5="no"

# If you wish to disable the clean-up portion of this script,
# change the "no" entry for skip to "yes".

skip="no"

# If you have a Windows install or another Linux install
# you want to back-up, enter the partition designator, sdxx,
# of your other install below. Enter "no" if you don't have
# another install or you don't wish to back it up.

win="no"

# If you are backing up another install above and wish to
# back-up a recovery partition or a /home partition. Enter
# the partition designator below in the form "sdxx" or "no".

winr="no"

# Do you want to automatically back-up your another install
# every time the back-up script runs? Enter "yes" below for
# automatic or "no" to be given a choice each time, or if
# you aren't backing up another install.

winrun="no"

# Do you want to automatically back-up your Windows Recovery
# partition or another /home partition every time the back-up
# script runs? Enter "yes" below for automatic or "no" to be
# given a choice each time, or if you aren't backing up
# Windows Recovery or another /home partition.

winrrun="no"

# NOTE!: Make sure your Linux system has read/write access
# to your Windows partition and your Windows Recovery
# partition through /media/sdxx for both partitions before
# running the script and attempting to back-up or restore
# Windows or Windows Recovery.

# Set the 3 days of the week you wish to run the backup.
# I use Monday, Thursday, and Saturday. You can set all
# 3 to the same day if you only want to run it once a week.

bak1="Mon"
bak2="Thu"
bak3="Sat"

# If you want it to run anytime the script is called, put
# "anytime" in bak4 below. "stop" will prevent the back-up
# and clean-up portion of this script from running except
# on the 3 days a week specified above.

bak4="anytime"

# The Restore portion of the routine will run whenever
# bakclean is run, regardless of the settings above.

# Create folders on your back-up partition to hold your
# back-up data and files. You can create a master folder
# to hold all of these folders if you want. Create folders
# on your back-up partition sdxx. Change them if you wish.
# Note! -- No spaces allowed in folder names. You must
# back-up and create folders for dataBF and configBF. Enter
# "none" for any folders you choose not to back-up. If you
# are not backing up Windows or Windows recovery, put "none"
# in those two entries also. I called mine:

dataBF="BackUpData"
configBF="BackUpConfig"
usrBF="BackUpUsr"
etcBF="BackUpEtc"
bootBF="BackUpBoot"
binBF="BackUpBin"
sbinBF="BackUpSbin"
libBF="BackUpLib"
devBF="BackUpDev"
varBF="BackUpVar"
winBF="BackDenRoot"; # winBF could be "WindowsXP";
winrBF="BackDenHome"; # winrBF could be "WinRecovery";

# You only have to create folders for dataBF and configBF.
# All the others are optional. If you don't wish to back
# other folders up enter "none" for each.

# Do you have or want a master back-up folder on your back-up
# partition that contains all the back-up folders above?
# If so, what is it's name? Enter "no" or "folder_name".

bakM="MasterBackUp"

# Would you like the script to make these back-up storage
# folders for you? Enter "yes" or "no" below.

makeBF="yes"

# Put your back-up partition designator in below.

bakP="sdd1"
plevans
Level 1
Level 1
 
Posts: 42
Joined: Wed Apr 29, 2009 7:28 pm

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Sun Oct 04, 2009 9:48 pm

plevans,

The only thing that I saw that appeared incorrect is the creation of the two folders below. This should probably be "none" since it appears you are not backing up Windows or another install.

winBF="BackDenRoot"; # winBF could be "WindowsXP";
winrBF="BackDenHome"; # winrBF could be "WinRecovery";

should be:

winBF="none"; # winBF could be "WindowsXP";
winrBF="none"; # winrBF could be "WinRecovery";

Check and make sure all the information is correct for your system.

Having said that, it probably shouldn't have caused the routine to crash. Correct this and see if anything changes. Does it give you any kind of error message? Does it crash on the first screen, second screen? What exactly does the last screen you see say?

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby plevans on Sun Oct 04, 2009 10:52 pm

I neglected to say in my original post that I ran the script originally with this configuration:

Code: Select all
# Change the folders mounted to other partitions below to
# indicate the data partitions and folders in your /home
# directory that you don't want backed up. You can exclude
# up to 5 folders/partitions from back-up. Always exclude
# the back-up folder if mounted in your /home. If you do
# not have data or back-up partitions mounted in your
# /home this doesn't apply to you. Put "no" in all 5
# positions.

fldr1="no"
fldr2="no"
fldr3="no"
fldr4="no"
fldr5="no"

# Set the mounting partitions that correspond to any data
# folders in your /home above, that are being excluded.
# If you do not have data or back-up partitions mounted in
# your /home this doesn't apply to you. Put "no" in all 5
# positions.

prtn1="no"
prtn2="no"
prtn3="no"
prtn4="no"
prtn5="no"

# If you wish to disable the clean-up portion of this script,
# change the "no" entry for skip to "yes".

skip="no"

# If you have a Windows install or another Linux install
# you want to back-up, enter the partition designator, sdxx,
# of your other install below. Enter "no" if you don't have
# another install or you don't wish to back it up.

win="no"

# If you are backing up another install above and wish to
# back-up a recovery partition or a /home partition. Enter
# the partition designator below in the form "sdxx" or "no".

winr="no"

# Do you want to automatically back-up your another install
# every time the back-up script runs? Enter "yes" below for
# automatic or "no" to be given a choice each time, or if
# you aren't backing up another install.

winrun="no"

# Do you want to automatically back-up your Windows Recovery
# partition or another /home partition every time the back-up
# script runs? Enter "yes" below for automatic or "no" to be
# given a choice each time, or if you aren't backing up
# Windows Recovery or another /home partition.

winrrun="no"

# NOTE!: Make sure your Linux system has read/write access
# to your Windows partition and your Windows Recovery
# partition through /media/sdxx for both partitions before
# running the script and attempting to back-up or restore
# Windows or Windows Recovery.

# Set the 3 days of the week you wish to run the backup.
# I use Monday, Thursday, and Saturday. You can set all
# 3 to the same day if you only want to run it once a week.

bak1="Mon"
bak2="Thu"
bak3="Sat"

# If you want it to run anytime the script is called, put
# "anytime" in bak4 below. "stop" will prevent the back-up
# and clean-up portion of this script from running except
# on the 3 days a week specified above.

bak4="anytime"

# The Restore portion of the routine will run whenever
# bakclean is run, regardless of the settings above.

# Create folders on your back-up partition to hold your
# back-up data and files. You can create a master folder
# to hold all of these folders if you want. Create folders
# on your back-up partition sdxx. Change them if you wish.
# Note! -- No spaces allowed in folder names. You must
# back-up and create folders for dataBF and configBF. Enter
# "none" for any folders you choose not to back-up. If you
# are not backing up Windows or Windows recovery, put "none"
# in those two entries also. I called mine:

dataBF="data"
configBF=config"
usrBF="none"
etcBF="none"
bootBF="none"
binBF="none"
sbinBF="none"
libBF="none"
devBF="none"
varBF="none"
winBF="none"; # winBF could be "WindowsXP";
winrBF="none"; # winrBF could be "WinRecovery";

# You only have to create folders for dataBF and configBF.
# All the others are optional. If you don't wish to back
# other folders up enter "none" for each.

# Do you have or want a master back-up folder on your back-up
# partition that contains all the back-up folders above?
# If so, what is it's name? Enter "no" or "folder_name".

bakM="LinuxBackUp"

# Would you like the script to make these back-up storage
# folders for you? Enter "yes" or "no" below.

makeBF="no"

# Put your back-up partition designator in below.

bakP="sdd1"


At this point I really can't remember how far it got when I ran it, but the 2 backup folders I had created were empty.

So I decided to revert everything to the default settings except the changes I noted in the first code I posted. The first screen to come up is the 'Alert! Do You wish to continue with the Restore Utility? Do you wish to restore your files?'. When I select 'No', the terminal window closes.

When I corrected the creation of the two Windows folders which I had overlooked, then ran the script again I got the same results.
plevans
Level 1
Level 1
 
Posts: 42
Joined: Wed Apr 29, 2009 7:28 pm

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby Fred on Sun Oct 04, 2009 11:47 pm

Patti,

I don't see what may be happening at this point. It is late here and I am very tired so my old brain isn't working that well right now. I need to sleep. I will come back and take a better look when I am fresh.

I just didn't want you waiting for an answer and thinking I had deserted you. Sorry, I'll take another look at it tomorrow and post then. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: v 1.4b Sys. Back-Up/Restore & Clean-Up Script - Windows Too!

Postby plevans on Mon Oct 05, 2009 12:15 am

Thanks Fred. I certainly can appreciate the benefit of a night's rest. I'm going to bed as well and will check back tomorrow.

Patti
plevans
Level 1
Level 1
 
Posts: 42
Joined: Wed Apr 29, 2009 7:28 pm

Linux Mint is funded by ads and donations.
 
Previous

Return to Tutorials / Howtos

Who is online

Users browsing this forum: Google Adsense [Bot] and 12 guests