12528 Members
237 Forums
7811 Topics
24004 Posts
Max Online: 9115 @ 08/24/24 07:30 PM
|
|
|
13 registered (Toysoft, Admin, Smokey, haki, bobot, karimkaki15, goode men, Franco89, OMEGA, raffsif1234, didond, gerolamo, bori),
1499
Guests and
146
Spiders online. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|
|
|
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
|
|
|
|
|
#25179 - 12/31/23 03:41 AM
Quick and dirty script to backup images, tar...
|
Japhar Member
Carpal Tunnel
Registered: 10/21/10
Posts: 2649
|
Script below, modify as you want (folders, etc) and add then pigz compression tool (mipsel), chmod 777 it naturally. TS DM52xHD/DM820HD/DM7080HD #!/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 #!/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 12:06 AM
Re: Quick and dirty script to backup images, tar...
[Re: Toysoft]
|
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
|
|
|
|
|
|
|