Welcome to Our Dreambox World - Japhar Sim - SuperSim
Forum Stats
12410 Members
237 Forums
7873 Topics
24199 Posts

Max Online: 9115 @ 08/24/24 07:30 PM
Newest Members
Torricelli, Longobucco, errboulder, mmmm, Josef
12410 Registered Users
Who's Online
6 registered (Toysoft, Admin, ery77, Smokey, 87katia, Torricelli), 669 Guests and 108 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Top Posters
Admin 10047
Toysoft 2704
satsedhu 1713
fairbird 765
ludo19 442
Top Posters (30 Days)
Vige 3
Toysoft 2
Admin 2
magid idir 1
August
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 03:41 AM Quick and dirty script to backup images, tar...
Toysoft Online   content
Japhar Member
Carpal Tunnel

Registered: 10/21/10
Posts: 2704
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