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
  •  


IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server  picture

IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server

$209.98



IBM SYSTEM x3200 M2 Server - HDD wiped, No OS picture

IBM SYSTEM x3200 M2 Server - HDD wiped, No OS

$75.00



IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES picture

IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES

$27.25



ibm server z series picture

ibm server z series

$16000.00



IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server

$319.99



IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W picture

IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W

$199.00



IBM BladeCenter HS21 7995 AC1 Server - 1x Xeon E5440 2GB RAM - NO HDDs picture

IBM BladeCenter HS21 7995 AC1 Server - 1x Xeon E5440 2GB RAM - NO HDDs

$22.43



IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED picture

IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED

$99.99



IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD) picture

IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD)

$294.92