-
Senior Member
registered user
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.
-
Werner's excellent suggestions
Please, don't exaggerate ![Smile](images/smilies/icon_smile.gif)
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
-
Senior Member
registered user
Thanks, I needed that.
.
With that refinement, my backup only takes 46 Mb now.
Thanks a heap & best regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Knoppix NSM 1.2 picture](/store/img/g/btwAAOSwWpVlAOZn/s-l225/Knoppix-NSM-1-2.jpg)
Knoppix NSM 1.2
$8.00
![KNOPPIX 9.1 LINUX INSTALL & LIVE DVD picture](/store/img/g/I3EAAOSwdEll-z0J/s-l225/KNOPPIX-9-1-LINUX-INSTALL-LIVE-DVD.jpg)
KNOPPIX 9.1 LINUX INSTALL & LIVE DVD
$9.99
![Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture](/store/img/g/I8UAAOSwdHdgiQtc/s-l225/Knoppix-Live-GNU-Linux-System-9-1-on-Bootable-CD-D.jpg)
Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$9.99
![Linux Knoppix 4.0.2 Installation Disc picture](/store/img/g/jvgAAOSw2kVl3ru~/s-l225/Linux-Knoppix-4-0-2-Installation-Disc.jpg)
Linux Knoppix 4.0.2 Installation Disc
$39.99
![Knoppix Linux Bootable OS v8.6](/store/img/g/m9EAAOSwwL5fs9mY/s-l225/Knoppix-Linux-Bootable-OS-v8-6-Original-Live-Opera.jpg)
Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$20.30
![Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA picture](/store/img/g/u1wAAOSwhBJljLXq/s-l225/Acer-Aspire-One-9-inch-Netbook-ZG5-512MB-RAM-8GB-S.jpg)
Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA
$79.99
![Hamshack Live DVD-ROM picture](/store/img/g/Or0AAOSwsZpkY8PH/s-l225/Hamshack-Live-DVD-ROM.jpg)
Hamshack Live DVD-ROM
$8.00
![Knoppix 3.4 Linux installation CD picture](/store/img/g/UqAAAOSwPf1mNj1O/s-l225/Knoppix-3-4-Linux-installation-CD.jpg)
Knoppix 3.4 Linux installation CD
$14.00
![Knoppix Linux Bootable OS v8.6](/store/img/g/m9EAAOSwwL5fs9mY/s-l225/Knoppix-Linux-Bootable-OS-v8-6-Original-Live-Opera.jpg)
Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$19.95