Welcome to Our Dreambox World - Japhar Sim - SuperSim
Forum Stats
12364 Members
237 Forums
7868 Topics
24169 Posts

Max Online: 9115 @ 08/24/24 07:30 PM
Newest Members
puntik, bercat, claxalc, r00ted_be, Ben Sad
12364 Registered Users
Who's Online
3 registered (Toysoft, Admin, samh), 620 Guests and 412 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Top Posters
Admin 10038
Toysoft 2697
satsedhu 1713
fairbird 765
ludo19 442
Top Posters (30 Days)
Toysoft 4
Admin 2
frnk 1
Hum@xel 1
OMEGA 1
June
M Tu W Th F Sa Su
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Topic Options
#25179 - 12/31/23 03:41 AM Quick and dirty script to backup images, tar...
Toysoft Online   content
Japhar Member
Carpal Tunnel

Registered: 10/21/10
Posts: 2697
Script below, modify as you want (folders, etc) and add then pigz compression tool (mipsel), chmod 777 it naturally.

TS

DM52xHD/DM820HD/DM7080HD
Code:
#!/bin/sh -x
rm /home/root/.ash_history
exec > /tmp/backup_DM520HD.log 2>&1
#cat /tmp/backup_DM520HD.sh
df -h
umount /tmp/root
rmdir /tmp/root
mkdir /tmp/root
mount -o bind / /tmp/root
/bin/tar -cf /media/hdd/dm520hd/Image_Backup_dm520.tar  -C /tmp/root .
/media/hdd/dm520hd/pigz /media/hdd/dm520hd/Image_Backup_dm520.tar
umount /tmp/root
rmdir /tmp/root
chmod 777 /media/hdd/dm520hd/Image_Backup_dm520.tar.*
ls -alh /media/hdd/dm520hd/Image_Backup_dm520.tar*
du -h /media/hdd/dm520hd/Image_Backup_dm520.tar* > /tmp/.backup-result
df -h
#rm /tmp/.backup
exit 0


DM9x0UHD/DreamOne-Two
Code:
#!/bin/sh -x
rm /home/root/.ash_history
exec > /tmp/backup_DM900UHD.log 2>&1
#cat /tmp/backup_DM900UHD.sh
df -h
umount /tmp/root
rmdir /tmp/root
mkdir /tmp/root
mount -o bind / /tmp/root
/bin/tar -cf /media/hdd/dm900uhd/Image_Backup_dm900.tar  -C /tmp/root .
gzip /media/hdd/dm900uhd/Image_Backup_dm900.tar
umount /tmp/root
rmdir /tmp/root
chmod 777 /media/hdd/dm900uhd/Image_Backup_dm900.tar.*
ls -alh /media/hdd/dm900uhd/Image_Backup_dm900.tar*
du -h /media/hdd/dm900uhd/Image_Backup_dm900.tar* > /tmp/.backup-result
df -h
#rm /tmp/.backup
exit 0


Attachments
pigz-mipsel.zip (2 downloads)

_________________________
DM8000, DM800se, DM500HD, DM800HD, DM7025, DM7020s, DM7000, DM500s
VU+ Solo, VU+ Uno, VU+ Duo, Kathrein UFS910
Tivusat, TNTSat, Fransat, SSR/TSR, BBC1-2-3/ITV
DE-OpenBlackHole 1.4 image : http://www.openblackhole.com/

Top
#25180 - 01/01/24 12:06 AM Re: Quick and dirty script to backup images, tar... [Re: Toysoft]
misup Offline
stranger

Registered: 02/14/16
Posts: 2
Very good !
Let say we don't want to backup the current partition !!!
We are into a GPT Multiboot of Dream ONE/TWO and we want
to backup any of not running mmcblk0p6 mmcblk0p7 mmcblk0p8 !
A very interesting case of study !

Top


Moderator:  Toysoft 
New Topics
EchoStar bondholders brace for default battle
by Admin
06/11/25 12:23 PM
Orange bolsters Eutelsat ties with new LEO deal
by Admin
06/06/25 12:56 PM
SES, Intelsat $3.1B deal to win unconditional EU
by Toysoft
06/05/25 12:37 PM
EchoStar misses $326M payment amid FCC probe
by Toysoft
06/02/25 12:17 PM
EmbyDream on DM500HD (v1): which image?
by frnk
05/27/25 07:52 PM
DM7020HDv2 : OpenPLi 9.xStar 20250115 GSt 1.20.5
by Toysoft
01/17/25 12:21 AM
Satellites.xml for Enigma² by Hum@xel
by Hum@xel
02/02/19 08:37 AM