-
Senior Member
registered user
Self-Contained Backup for Persistent-Store
.
The following is offered as a 'proof of principle' example for
prospective future modification of, or inclusion into Knoppix.
This idea has been employed with satisfactory outcome by me for
some time. This idea builds upon an already available feature
of the current Knoppix distribution.
Back-up & restore for 2 GB Knoppix 6.4.4 LiveUSB Persistent-store
0. When making a LiveUSB from the Knoppix LiveCD, allow 850 Mb for
persistent store; this leaves 350 Mb in /mnt-system for a com-
pressed persistent-store backup, update.tar.gz. Save the LiveCD.
If more than 1200 Mb is available and useful, then just preserve
a 2.5:1 ratio of persistent:compressed storage allotments.
1. Occasionally, while the LiveUSB is in active use, make a
compressed copy of the filesystem /KNOPPIX-DATA, name this
update.tar.gz, and then save* it in the /mnt-sytem/ directory,
or replace an older update.tar.gz there with a newer one.
*Hint: use or invent something like /etc/backup, see below.
2. When needed to restore the previous persistent-store info,
assuming the non-Live USB is at sdb1, use a LiveCD to move* what
now appears as
/media/sdb1/update.tar.gz one level to
/media/sdb1/KNOPPIX/update.tar.gz, then dismiss the LiveCD
and reboot the modified LiveUSB.
*Hint: using the LiveCD's PCManFM to drag & drop is the easy way.
3. After rebooting the modified LiveUSB & before shut-down, move*
/mnt-system/KNOPPIX/update.tar.gz back one level to
/mnt-system/update.tar.gz for safe-keeping until the next time
a restore is needed. Don't leave it in the /KNOPPIX directory.
*Hint: use the LiveUSB's PCManFM to drag & drop this time.
4. Back to step 1.
__________________________________________________ ______________
#!/bin/bash
#
# /etc/backup Note: make this root:root and executable
#
echo 'Saving update.tar.gz to /mnt-system.'
echo -e 'Patience; this may take a little time..\c'
#
cd /
tar -cf /tmp/update.tar KNOPPIX-DATA
cd /tmp
gzip update.tar
mv update.tar.gz /mnt-system
#
echo '..Done.'
#
exit 0
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
Lot of 10 Mixed Brand 256GB 2.5" SATA SSD HDD Solid State Hard Drive Internal
$87.99
Fanxiang SSD 512GB 1TB 2TB 4TB 2.5''SATA III Internal Solid State Hard Drive LOT
$188.09
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$109.99
Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot
$109.99
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$13.99
Crucial MX500 CT250MX500SSD1 250 GB SATA III 2.5 in Solid State Drive
$14.99
Micron RealSSD C400 2.5" 512GB SATA SSD Solid State Hard Drive MTFDDAK512MAM-1K1
$24.99
Intel DC S3510 Series 120GB SSD 2.5" 6Gb/s SATA Solid State Drive SSDSC2BB120G6K
$9.49
Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot
$208.99
SAMSUNG SSD 870 EVO 1TB 500GB 250GB 2.5 inch SATA III 3 Solid State Drive US
$92.99