-
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

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2
$75.99

OWC Mercury Elite Pro 2 Bay RAID Enclosure with USB 3.2 for Dual 3.5 inch HDDs
$87.99

Broadcom 9600-24i RAID Controller PCIe Gen 4.1 Tri-Mode NEW 05-50111-01004
$649.99

Intel VROC Premium RAID Controller Card PCIe Add-On Module VROCPREMMOD
$265.00

Acasis USB 3.2 2 Bay HDD RAID Enclosure for 2.5/3.5" SATA Drives External Array
$55.00

MegaRAID 9580-8i8e 16-port 12G SAS/SATA/NVMe 8GB PCIe RAID - 05-50076-00
$1619.19

Dell PowerEdge HBA330 LP PCI-E 12GBs RAID SAS Controller Adapter J7TNV
$18.95

LSI 9305-16i SATA SAS 12Gbs Controller card PCIe 3.0 IT-Mode w/SAS SATA cable US
$125.98

Broadcom MegaRAID 9480-8e Fujitsu PRAID EP540e SAS RAID Card (Replac 9380-8e) 8i
$228.00

Intel® Integrated RAID Mezzanine Module RMS3HC080 SAS/SATA H24093-204
$24.97