Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

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

  1. #21
    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.

  2. #22
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    Werner's excellent suggestions
    Please, don't exaggerate

    A suggestion with exclude something:
    Code:
    cd /; STOR=/mnt-system/update$(date +'%m%d%H').tar.gz
    echo -e 'Compressing data; patience, this may take a little time..\n'
    tar -cz --exclude=*/Cache/* --exclude=*/OfflineCache/* \
        -f $STOR KNOPPIX-DATA/home/ KNOPPIX-DATA/etc/ \
         KNOPPIX-DATA/root/  mnt-system/boot/syslinux/syslinux.cfg

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

    Thanks, I needed that.

    .
    With that refinement, my backup only takes 46 Mb now.
    Thanks a heap & best regards.

Page 3 of 3 FirstFirst 123

Posting Permissions

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


(4) Vintage PC Educational Games (Lot) ~ CD, Used DOS/Win, Mavis Beacon + More picture

(4) Vintage PC Educational Games (Lot) ~ CD, Used DOS/Win, Mavis Beacon + More

$27.00



ATI Rage IIC AGP 3.3v Vintage Gaming Video Card 4MB - Tested, Working picture

ATI Rage IIC AGP 3.3v Vintage Gaming Video Card 4MB - Tested, Working

$13.00



IBM Vintage Operating System Binder, Other Manuals in original boxes. Has discs. picture

IBM Vintage Operating System Binder, Other Manuals in original boxes. Has discs.

$100.00



Vintage 256 x 4 ROM Chip for HP 3000 Minicomputer 1816-0071 (Motorola SCM812AL) picture

Vintage 256 x 4 ROM Chip for HP 3000 Minicomputer 1816-0071 (Motorola SCM812AL)

$24.00



AOpen PG128 AGP Vintage Gaming Video Card 4MB (S3 86C365) ~ Tested, Working picture

AOpen PG128 AGP Vintage Gaming Video Card 4MB (S3 86C365) ~ Tested, Working

$17.00



ARCHIVES I - Vintage Computer Label, Rare Tag, Sticker, New Old Stock picture

ARCHIVES I - Vintage Computer Label, Rare Tag, Sticker, New Old Stock

$12.50



Vintage Dream Writer NTS 325 Computer Basic Language Notebook “Untested “ picture

Vintage Dream Writer NTS 325 Computer Basic Language Notebook “Untested “

$30.00



(5) Vintage PC Games (Lot) ~ CD, Used DOS/Win, Caesar, WWII, Big Rigs + More picture

(5) Vintage PC Games (Lot) ~ CD, Used DOS/Win, Caesar, WWII, Big Rigs + More

$23.00



Vintage Dell OptiPlex GX280 Intel Pentium 4 @ 3.0GHz 1GB RAM 40 GB HDD No OS picture

Vintage Dell OptiPlex GX280 Intel Pentium 4 @ 3.0GHz 1GB RAM 40 GB HDD No OS

$99.99



Vintage KLH 2800 Laptop picture

Vintage KLH 2800 Laptop

$150.00