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
  •  


HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB picture

HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB

$59.00



G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5

G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5" SSD 0G5T03 SSDSC2BA800G3E

$55.00



M.2 NVME SATA SSD Enclosure USB 3.2 Gen 2 10Gbps for M-Key or M+B Key SSD to 8TB picture

M.2 NVME SATA SSD Enclosure USB 3.2 Gen 2 10Gbps for M-Key or M+B Key SSD to 8TB

$40.86



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



Micron 5100 MAX 120GB SATA 6Gb/s 2.5

Micron 5100 MAX 120GB SATA 6Gb/s 2.5" Internal SSD MTFDDAK120TCC Solid State

$9.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$14.99



Intel DC S3510 Series 120GB SSD 2.5

Intel DC S3510 Series 120GB SSD 2.5" 6Gb/s SATA Solid State Drive SSDSC2BB120G6K

$9.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$198.99



Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5

Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5" SATA III 6GB/s for PC/MAC Lot

$188.09