Welcome to Our Dreambox World - Japhar Sim - SuperSim
Forum Stats
12439 Members
237 Forums
7735 Topics
23833 Posts

Max Online: 4756 @ 02/20/20 11:12 PM
Newest Members
cyberfact, garpaz, Quinzico, ywan, wecki2
12439 Registered Users
Who's Online
9 registered (Admin, raffsif1234, marcopiu, Toysoft, cyberfact, ooclaf1950, x_wins, garpaz, bitgames), 1082 Guests and 216 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Top Posters
Admin 9888
Toysoft 2640
satsedhu 1713
fairbird 765
ludo19 442
Top Posters (30 Days)
Admin 3
Hum@xel 2
Toysoft 2
shipower69 1
May
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 31
Topic Options
#25179 - 12/31/23 11:41 AM Quick and dirty script to backup images, tar...
Toysoft Online   content
Japhar Member
Carpal Tunnel

Registered: 10/22/10
Posts: 2640
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 (1 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 08: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
Analyst sets timeframe for possible Dish bankruptc
by Admin
05/09/24 01:36 PM
NTV-Plus switches from the French IT broadcasting
by Admin
05/07/24 06:44 PM
DM7080 Update Rescue Bootloader
by Toysoft
04/27/24 07:33 PM
Dream box 520 tuner dead?
by shipower69
04/24/24 02:34 AM
Les principaux fournisseurs d'accès à internet...
by Toysoft
04/19/24 05:38 PM
Satellites.xml for Enigma² by Hum@xel
by Hum@xel
02/02/19 04:37 PM