-
Senior Member
registered user
An update on the 'update' program
.
Here's an update using Werner's dating method, even in the status lines.
I've included a listing of tarred files, mailed to root, also suitably dated.
I now backup ~124 Mb into 48 Mb of tgz on /mnt-system.
IceWeasel alone accounts for 91 Mb of the 124 Mb it might be noted.
Code:
#!/bin/bash
#
# new.backup: do 'chmod +x new.backup' & 'chown root:root new.backup'
#
cd /
STOR=update$(date +'%m%d%y').tar
echo -e 'Tarring data to '$STOR' in /tmp..\c'
tar -cf /tmp/$STOR KNOPPIX-DATA/home/ KNOPPIX-DATA/etc/ \
KNOPPIX-DATA/root/ mnt-system/boot/syslinux/syslinux.cfg
echo '..Done.'
cd /tmp
STORZ=$STOR.gz
echo 'Zipping to '$STORZ' in /tmp.'
tar -tf $STOR > ~/$STOR.lst
echo -e 'Patience; this may take a little time..\c'
gzip $STOR; echo '..Done.'
#
echo -e 'Moving '$STORZ' to /mnt-system..\c'
mv $STORZ /mnt-system; echo '..Done.'
#
echo 'All 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

Cisco Catalyst C9300X-NM-2C 2-Port 40G/100G Multi Gig
$775.00

Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New
$101.99

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch
$439.00

Cisco | N3K-C3232C | 32-Port 100G QSFP Network Switch W/ 2x PSU, 2x Power Cords
$205.00

Cisco Catalyst WS-C2960X-48FPD-L 48-Port Gigabit Managed PoE+ Ethernet Switch
$69.99

Cisco C3850-NM-2-10G Catalyst 3850 2 x 10GE Network Module
$30.00

Cisco C3850-NM-2-10G
$75.00

Cisco Catalyst WS-C2960+24TC-S 24-Port Gigabit Managed SFP Switch
$39.99