-
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/g/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 Server Rack Cabinet 9308-RC4 picture](/store/img/g/tSIAAOSwSUpmAe1K/s-l225/IBM-Server-Rack-Cabinet-9308-RC4.jpg)
IBM Server Rack Cabinet 9308-RC4
$200.00
![IBM Netezza 3567 picture](/store/img/g/-uEAAOSw4ixmWekl/s-l225/IBM-Netezza-3567.jpg)
IBM Netezza 3567
$4250.00
![1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray picture](/store/img/g/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 Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture](/store/img/g/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
$359.99
![IBM X3950 X6 8x E7-8891 v2 3.2GHz 10C 512GB Server picture](/store/img/g/wwkAAOSw9R9mhadY/s-l225/IBM-X3950-X6-8x-E7-8891-v2-3-2GHz-10C-512GB-Server.jpg)
IBM X3950 X6 8x E7-8891 v2 3.2GHz 10C 512GB Server
$490.00
![IBM System X3650 M4 7915AC1 Server INTEL XEON E5-2609 2.4GHz 8GB SEE NOTES picture](/store/img/g/8N0AAOSwXAJmhb0X/s-l225/IBM-System-X3650-M4-7915AC1-Server-INTEL-XEON-E5-2.jpg)
IBM System X3650 M4 7915AC1 Server INTEL XEON E5-2609 2.4GHz 8GB SEE NOTES
$75.00
![IBM 49Y5356 Rack Mount Bracket Set picture](/store/img/g/jeAAAOSwcrJmhY~h/s-l225/IBM-49Y5356-Rack-Mount-Bracket-Set.jpg)
IBM 49Y5356 Rack Mount Bracket Set
$10.00
![IBM QRadar xx29 Server 4412Q2A picture](/store/img/g/7GAAAOSwmK1lqTUO/s-l225/IBM-QRadar-xx29-Server-4412Q2A.jpg)
IBM QRadar xx29 Server 4412Q2A
$209.99
![IBM BladeCenter HS21, 2x Intel XEON 06 E5450 3.00GHZ, 8x 4 GB Ram, 43W4015 picture](/store/img/g/UL4AAOSwvtVl683V/s-l225/IBM-BladeCenter-HS21-2x-Intel-XEON-06-E5450-3-00GH.jpg)
IBM BladeCenter HS21, 2x Intel XEON 06 E5450 3.00GHZ, 8x 4 GB Ram, 43W4015
$191.24