-
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
ProLabs 10GBase-TX SFP+ RJ-45 Copper Transceiver Module P/N: SFP-10GBASE-T-C NEW
$34.99
New Sealed Cisco GLC-TE 1000BASE-T RJ45 SFP Transceiver module *US Shipping*
$20.00
Cisco Nexus 96-Port 10G SFP+ Switch N9K-93128TX w/ 9K-M12PQ 12-Port 40G QSFP
$149.99
New Sealed Cisco SFP-10G-LR 10GBASE-LR SFP Plug-in GBIC Transceiver module A
$15.80
Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03
$8.00
Netgear 16-Port Gigabit Ethernet Switch GS316 Unmanaged
$10.00
Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC
$10.99
Lot of 10 - HP 10Gb SR SFP+ Transceiver 455883-B21 455885-001 456096-001 850nm
$25.99
LOT OF 10 HPE JD092B X130 10G SFP+ LC SR Transceiver
$40.00
10Gtek XG0200-SFP SFP+ OEO Media converter (no modules)
$60.00