Results 1 to 10 of 23

Thread: a new & improved, self-contained Knoppix personal backup

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Hi, Werner

    Not to belabor the point, but if the system sees a file is to be
    saved with the same name as one already 'in situ' it asks if you
    want to 'write over' the earlier file. I first became aware of
    this when it seemed to spoil my status prompts.

    Your idea allows making backups unique wrt DAYs. Making several
    in a given day I still observe this phenomenon. I might prefer
    to swap YEAR for HOUR, retaining the same brevity but allowing
    for more changes per DAY of the medium.

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    ... no problem
    Code:
    STOR=update$(date +'%m%d%H').tar.gz
    or
    STOR=update$(date +'%m%d-%H%M').tar.gz

  3. #3
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Further refinements to the personal backup idea.
    .
    I've incorporated all of Werner's excellent suggestions, and since
    I found I never referred to the tar listing, that's been omitted.

    In examining the remaining contributors to the 'personal backup', I found
    that not only is .mozilla the real space hog, but its caches are its
    biggest contributors. It is possible to clear at least one of these caches
    with a quick trip to the IceWeasel Edit>Preferences GUI before making
    a backup, resulting in a great reduction in the size of the stored file.

    A revised listing is as follows:
    Code:
    #!/bin/bash
    #
    # new.backup2: do 'chmod +x new.backup2' & 'chown root:root new.backup2'
    # Before backup, Go to Edit>Prefs on IceWeasel & 'Clear Now' the Off-Line cache.
    #
    cd /; STOR=/mnt-system/update$(date +'%m%d%H').tar.gz
    echo -e 'Compressing data; patience, this may take a little time..\c'
    tar -czf $STOR KNOPPIX-DATA/home/  KNOPPIX-DATA/etc/ \
                   KNOPPIX-DATA/root/  mnt-system/boot/syslinux/syslinux.cfg 
    echo '.Done.'; echo 'Restore using the command, tar -xzf '$STOR' -C /'
    #
    exit 0
    Now if some clever person here will inform me of some appropriate API,
    assuming there is one, we might automate that effort as well. This is
    to say that I haven't been able to 'exclude' from the tar inclusion
    the Cache & OfflineCache directories from ~/.mozilla/firefox/*.default/
    which are the culprits I'd like to exclude.

Posting Permissions

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


VTG Atari 400 Home Computer System ** Sold

VTG Atari 400 Home Computer System ** Sold "AS-IS" for Parts or Repair

$88.75



Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On) picture

Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)

$300.00



DEFECTIVE Atari 810 Vintage Computer Disk Drive  powers on Unit Only Boo G3D picture

DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D

$49.29



UNOCART-2600 SD card Multi Rom Cartridge for ATARI 2600 with CASE picture

UNOCART-2600 SD card Multi Rom Cartridge for ATARI 2600 with CASE

$34.25



SDrive Max Floppy Drive Emulator Atari 8-Bit 400/800/XL/XE Firmware 1.5 USB C R2 picture

SDrive Max Floppy Drive Emulator Atari 8-Bit 400/800/XL/XE Firmware 1.5 USB C R2

$70.00



Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working picture

Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working

$99.99



Atari XE  130XE Computer NTSC with Power Supply Powers On Untested picture

Atari XE 130XE Computer NTSC with Power Supply Powers On Untested

$159.95



ATARI Mouse with Adapter for ST, STE, Mega STE, TT Optical  - USA Seller picture

ATARI Mouse with Adapter for ST, STE, Mega STE, TT Optical - USA Seller

$29.99



Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ picture

Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ

$350.00



Vintage Atari SF354 Floppy Disk Drive & Power Supply FOR PARTS OR REPAIR AS IS picture

Vintage Atari SF354 Floppy Disk Drive & Power Supply FOR PARTS OR REPAIR AS IS

$120.00