Bug 10233 - Severall small improvements for the backiso script
Summary: Severall small improvements for the backiso script
Status: CLOSED FIXED
Alias: None
Product: IPFire
Classification: Unclassified
Component: --- (show other bugs)
Version: 2
Hardware: all Linux
: - Unknown - Balancing
Assignee: Arne.F
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-04 13:54 UTC by Timo Eissler
Modified: 2013-02-16 17:37 UTC (History)
4 users (show)

See Also:


Attachments
small improvements for backupiso script. (2.92 KB, patch)
2012-10-04 13:54 UTC, Timo Eissler
Details
severall improvements for creating a backup iso (old indentation) (2.28 KB, patch)
2012-12-27 11:09 UTC, Timo Eissler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Eissler 2012-10-04 13:54:24 UTC
Created attachment 73 [details]
small improvements for backupiso script.

Hello,

today i made a backup of my ipfire and looked at the backupiso script because i wanted to know why there are 2 isos created for one backup.

After looking over the code i decided to improve it a little bit in my opinion.

I made the following changes:
       - do not create a backup if md5 sum mismatch
       - update syntax for newer bash versions
       - switched from tab or x whitespace for indenting to 3 whitespaces
       - remove md5 sum and downloaded iso

I will be happy if you or anyone else also finds these changes good and integrate it into ipfire.

kind regards,

Timo
Comment 1 Michael Tremer 2012-12-26 17:20:18 UTC
The patch looks very good, but could you please stick to the old indentation and re-upload it?
Comment 2 Timo Eissler 2012-12-27 11:09:56 UTC
Created attachment 105 [details]
severall improvements for creating a backup iso (old indentation)

severall improvements for creating a backup iso
       - do not create a backup if md5 sum mismatch
       - update syntax for newer bash versions
       - remove md5 sum and downloaded iso
Comment 3 Michael Tremer 2013-02-02 15:20:30 UTC
Thank you.

Arne will take care of it now.
Comment 4 Arne.F 2013-02-14 19:45:24 UTC
  - remove md5 sum and downloaded iso

Md5 is ok but I think it is a bad idea to remove the source iso. I don't want download it at every backup again.
Comment 5 Timo Eissler 2013-02-15 08:06:20 UTC
ah sorry i didn't thought about that
Comment 6 Arne.F 2013-02-15 09:01:29 UTC
It's not your fault. The original script also download it always because it also not check if the file exists.

I have changed this in git.
Comment 7 Stefan Schantl 2013-02-16 17:37:08 UTC
Fix released with IPFire 2.13.