-
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
![IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture](/store/img/M~sAAOSwFVlkVr-r/s-l225//IBM-System-X3250-M3-Server-8GB-RAM-Intel-Xeon-x344.jpg)
IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)
$41.99
![IBM EServer Xseries 220 Desktop Computer Intel Pentium 3 1GHz 512MB Ram No HDD picture](/store/img/u88AAOSw9sxmltD4/s-l225//IBM-EServer-Xseries-220-Desktop-Computer-Intel-Pen.jpg)
IBM EServer Xseries 220 Desktop Computer Intel Pentium 3 1GHz 512MB Ram No HDD
$224.99
![IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture](/store/img/xiEAAOSwwGtmRmN6/s-l225//IBM-Power-S822-8284-22A-12SFF-Power8-3-89GHz-6Core.jpg)
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$314.99
![1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray picture](/store/img/RRoAAOSwonVguq4o/s-l225//1U-IBM-x3550-M5-4-Bay-SFF-SAS3-Server-2x-E5-2683-V.jpg)
1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray
$318.00
![IBM Server Rack Cabinet Machine Type 9308 Model 42P w/ Mounting Accessories picture](/store/img/9r4AAOSw0lNmkTwe/s-l225//IBM-Server-Rack-Cabinet-Machine-Type-9308-Model-42.jpg)
IBM Server Rack Cabinet Machine Type 9308 Model 42P w/ Mounting Accessories
$379.99
![IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture](/store/img/oRsAAOSw~pRmQitC/s-l225//IBM-System-x3550-M3-Dual-Intel-Xeon-X5650-2-67GHz-.jpg)
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$68.50
![IBM System x3250 M3 4251PAB Server Intel Xeon X3430 2.4GHz 4GB SEE NOTES picture](/store/img/mqQAAOSwPypmfZMB/s-l225//IBM-System-x3250-M3-4251PAB-Server-Intel-Xeon-X343.jpg)
IBM System x3250 M3 4251PAB Server Intel Xeon X3430 2.4GHz 4GB SEE NOTES
$21.41
![IBM 9009-41A Power S914 w/ IBM Power9 CPU Processor 02CY259 9314 CA PQ NO RAM picture](/store/img/8A0AAOSwk7pk3XOr/s-l225//IBM-9009-41A-Power-S914-w-IBM-Power9-CPU-Processor.jpg)
IBM 9009-41A Power S914 w/ IBM Power9 CPU Processor 02CY259 9314 CA PQ NO RAM
$2000.00
![IBM QRadar xx29 Server 4412Q2A picture](/store/img/7GAAAOSwmK1lqTUO/s-l225//IBM-QRadar-xx29-Server-4412Q2A.jpg)
IBM QRadar xx29 Server 4412Q2A
$209.99
![IBM QRadar 1501 G3 Server picture](/store/img/2LMAAOSwFxBlule~/s-l225//IBM-QRadar-1501-G3-Server.jpg)
IBM QRadar 1501 G3 Server
$167.99