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
  •  


Dell Latitude LAPTOP 14” HD NOTEBOOK PC i5-8265U UP TO 32GB 2TB M.2 WIN 10 OR 11 picture

Dell Latitude LAPTOP 14” HD NOTEBOOK PC i5-8265U UP TO 32GB 2TB M.2 WIN 10 OR 11

$284.59



Dell 14

Dell 14" TOUCHSCREN Laptop 8th Gen Core i5 16GB RAM 512GB SSD/256 Bluetooth W11

$235.00



Dell OptiPlex 5060 MT Computer Core i7 8th Gen 6-core 32GB Ram 1TB NVMe SSD PC picture

Dell OptiPlex 5060 MT Computer Core i7 8th Gen 6-core 32GB Ram 1TB NVMe SSD PC

$375.00



Dell Optiplex 5040 MT Core i5-6500 3.20GHZ 8GB RAM 256GB SSD Win 10 Pro WiFi picture

Dell Optiplex 5040 MT Core i5-6500 3.20GHZ 8GB RAM 256GB SSD Win 10 Pro WiFi

$89.99



Intel Core i7-3770 3.40GHz Quad-Core CPU Processor SR0PK LGA1155 Socket picture

Intel Core i7-3770 3.40GHz Quad-Core CPU Processor SR0PK LGA1155 Socket

$25.99



Intel Core I7-3770 Processor (3.40GHz, 4 Core 8 threads, Socket H2 LGA-1155) picture

Intel Core I7-3770 Processor (3.40GHz, 4 Core 8 threads, Socket H2 LGA-1155)

$32.49



Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5... picture

Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5...

$314.99



Intel Core i7-6700T 2.80GHz LGA1151 Quad Cores 35W 8MB 64-Bit Processor SR2L3 picture

Intel Core i7-6700T 2.80GHz LGA1151 Quad Cores 35W 8MB 64-Bit Processor SR2L3

$59.99



Intel Xeon Silver 4208 CPU Processor 2.1 GHz, 8-Core, 16-Thread, LGA 3647 picture

Intel Xeon Silver 4208 CPU Processor 2.1 GHz, 8-Core, 16-Thread, LGA 3647

$120.00



Dell 15.6

Dell 15.6" NVIDIA Gaming Laptop - Intel Quad Core i7 64GB RAM 2TB SSD Windows 11

$523.00