Results 1 to 9 of 9

Thread: Unofficial cheatcodes to backup and restore persistent data

Threaded View

  1. #9
    Senior Member
    Join Date
    Jan 2011
    Posts
    242
    utu san,

    I wish I could say the confusion is all mine and apologise profusely.


    Quote Originally Posted by utu View Post

    To recoup, here's what I think is the current state of affairs:
    you have invented patches to give Knoppix 6.4.4 two new cheatcodes, backup
    and restore.
    Yes. I'd rather say developed or even elaborated than invented.

    Quote Originally Posted by utu View Post

    These two capabilities, in effect, automate the utilzation of the
    capability already in 6.4.4 which manages a file update*.tar.gz in a manner to
    allow the backing-up and restoration-of the knoppix-data.img file.
    No. I don't use the update*.tar.gz facility. It is not appropriate.

    Quote Originally Posted by utu View Post

    These newer offerings utilize squashfs to speed things up beyond the capabilities
    of the initial offerings.
    No. This has nothing to do with squashfs.

    The first offering used the BusyBox with tar+zlib. The new offering contrives to the full tar + gzip programs available to use from the Knoppix desktop. This cleverness uses facilities KK already uses himself in /init. to run programs not available in BusyBox or minirt, most notably to handle the creation of encrypted knoppix-data.aes files.

    Quote Originally Posted by utu View Post

    Only the backup speed improved significantly, but this
    may be due to limitations in writing to the USB. Please confirm or correct me here.
    Yes. That is what I wrote.

    Quote Originally Posted by utu View Post

    I really would like backup to be a menu choice to be used during normal on-line use of 6.4.4.
    My first question on this forum was how do I add an item to the LXDE menu. As I recall your answer was "I'd like to know too".

    You can tar + gzip /KNOPPIX-DATA any time you like. Even a dodgy backup is better than none.

    For me, the trouble with a menu item is I'd forget to use it and after a week I'd forget it was there. The same is true for a cheat code but less so, if you know what I mean.

    Quote Originally Posted by utu View Post

    Restore I would use as a cheatcode in addition to my normal DEFAULT set of cheatcodes.
    Yes. There is little choice here. You can, naturally, extract individual files from the backup if that's what you need to do.

    Quote Originally Posted by utu View Post

    The meaning of backup here is to create a tar.gz of a snapshot of KNOPPIX-DATA,
    using squashfs, since it offers an advantage; but do this as a menu choice,
    or as a console command, but not as a cheatcode, per se.
    You repeat yourself. No. This has nothing to do with squashfs.

    It has to do with 'snapshot' . Think of a snapshot as a digital photograph of your persistent data. You want a clean crisp photo taken while the subject is not moving to avoid blurring of the details. Using a cheat code is the only way of ensuring the photo is taken before the subject starts moving. Backup from menu item means the subject is moving and you won't find out if some crucial detail is blurred until you, out of necessity, have to restore.

    Quote Originally Posted by utu View Post

    This I realize is a complication of your approach to backup. And, I know you are hesitant on doing the back-up on-line, but I'm not sure it's a show-stopper.
    No. Taking a shapshot from the command line is so simple I do it everyday but I boot Debian to ensure I take a clean snapshot of Knoppix. Developing the user space shell script I use from Debian was a darn sight easier than adding cheat codes to /init.

    Quote Originally Posted by utu View Post

    The meaning of restore might be simply to find such a snapshot and restore it
    simply per the normal update* process of 6.4.4, since squash seems not to offer
    any improvement; do this as a cheatcode to be appended to a normal default.
    This might actually be a simplification of your approach to restore.
    No. There is nothing normal about this or the update* process. Using the update* process involves more error prone manual intervention than a simple cheat code but that is not the reasons using update* is a bad idea. The reason it to do with ensuring deleted files stay deleted.

    If someone were to use these cheat codes on a regular basis, I'd suggest they add new boot targets to syslinux.cfg. Instead of typing in knoppix backup_data=/dev/sda6 at the boot: prompt and getting it wrong half the time, they'd type in knoppix_with_backup or something shorter they can easily remember.

    Quote Originally Posted by utu View Post

    I need to review for myself if there is any complication in appending a cheatcode
    to my normal DEFAULT set of cheatcodes; I don't recall.
    See previous remark.

    Quote Originally Posted by utu View Post

    I have in the back of my mind how nice Win7 allows system image snapshots, and how
    handy these are when something goes funny.
    That's a system function more akin to saving and restoring from the file system journal. What I have done is a simple user space add-on.

    File system journal recovery is for hard drives where the risk of file system corruption through user error is greater than the risk of damage or loss of the hardware medium.

    What I have done is intended as much as a protection against the loss or temporary misplacement of my USB stick as it is against the risk that I remove the USB stick from its slot without first shutting down Knoppix.

    Quote Originally Posted by utu View Post

    The faster restore is a holy grail for another day. I don't know why the
    KNOPPIX file can be unpacked so fast, but not the knoppix-data.img; doesn't make
    sense, or it's just not fair, somehow.
    Umm. Nonsense. Unpacking or decompression is always faster than packing or compression. Reading from a USB stick is always faster than writing.

    The KNOPPIX file is read and unpacked but only the bits needed, not the whole thing. By definition, backup / restore have to read / write all the bits of persistent store.

    Here are my (unrepresentative times):

    ~ 60 s copy of 1 Gb knoppix-data.img file from USB to hard drive under Debian 6.
    ~ 30 s tar + gzip of knoppix-data.img file from USB to hard drive under Debian 6.

    ~ 30 s backup with revised cheat code from USB to hard drive
    ~ 90 s backup with original cheat code from USB to hard drive

    My knoppix-data.img file is currently two thirds full and its backup is almost a ¼ Gb.

    The Debian tar + gzip is faster than the cheat code but not when you take into account the time needed to boot and shutdown Debian.

    The backup takes several minutes at work because I've a virtual machine with a virtual USB 1.1 controller that is very much slower than a real USB 2.0 controller. The go faster stripe has no effect where I need it most.

    Enjoy the simplicity of your tax return form.
    Last edited by Forester; 03-10-2011 at 10:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge R240 Intel Xeon E-2224 3.50GHz 8GB DDR4 ECC NO HDD 250W picture

Dell PowerEdge R240 Intel Xeon E-2224 3.50GHz 8GB DDR4 ECC NO HDD 250W

$285.97



Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700 picture

Dell Poweredge R810 4x Xeon X7560 2.26ghz 32-Cores | 256GB | 3x Trays | H700

$289.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99



Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays picture

Dell PowerEdge R640 10SFF 2x Gold 6140 2.3GHz 36-Cores 64gb H730p 2x Trays

$599.99



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W

$524.99



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1... picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores | 32gb | HBA330 | 2x 1...

$324.99