-
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
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
Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W
$399.00
Dell PowerEdge M640 Barebone Server Blade No Hard Drive Trays
$499.00
HP ProLiant BL460c G9(Gen9) 2x 10 CORE E5-2660v3 2.6GHz 128GB RAM No SSD
$222.00
Cisco B200 M3 2x E5-2697 V6 @ 2.70GHz Blade Server 2x HDD Blanks 256GB Ram
$360.00
NEW Dell PowerEdge M820 Blade Server 2x Xeon E5-4603 @2GHz 32GB RAM 2x 10gb net
$599.00
Dell PowerEdge M630 (HHB005) Blade Server
$299.00
Rubrik 344 Supermicro X10DRT-H 4 Blade Server Chassis 256GB RAM 4x E5-2630V3
$407.00
HP ProLiant BL460c G9 Server Blade 2x Intel E5-2660v3 256GB RAM NO HDD
$149.95
DELL PowerEdge M630 Blade 2x E5-2690v4 2.6GHz =28 Cores 64GB H330 2x10Gb X520
$264.00
DELL PowerEdge M630 Blade 2x E5-2683v3 2.0GHz =28 Cores 128GB H330 2x10Gb X520
$281.00