2004 to 2020 Mazda 3 Forum and Mazdaspeed 3 Forums banner

1 - 5 of 5 Posts

·
Registered
Joined
·
4 Posts
Discussion Starter #1
I would like to make a backup of mazda connect. it's possible ?
Thank you.


Vorrei effettuare un backup del MZD connect. E' possibile ?
Grazie
 

·
Registered
Joined
·
50 Posts
I can't upload the file here, so if you know how to run the script from USB, here it is:

#!/bin/sh

title="Backup files in CMU"
mydir=$(dirname $(readlink -f $0))
exec >>$mydir/usb.log 2>&1

log() { echo $(date '+%F %T') "[email protected]" ; }

log $0 started
listfile=$mydir/cmu.list
fname=cmu.tgz
tarball=$mydir/$fname

/jci/tools/jci-dialog --confirm --title="$title" --text="$0\nCreate a list file to ${listfile}\nand create backup to ${tarball}"

if [ $? = 0 ]; then
/jci/tools/jci-dialog --info --title="$title" --text="$0\nCreating a list file to ${listfile}..." --ok-label="Please wait" &
log listing started
echo \# mount
mount
echo \# df
df
echo \# ifconfig
ifconfig
echo \# ps -ef
ps -ef
ls -lAFR / > $listfile
ls -lF $listfile
log listing finished
killall jci-dialog

/jci/tools/jci-dialog --info --title="$title" --text="$0\nCreating backup to ${tarball}..." --ok-label="Please wait" &
log backup started
cd /
tar -zcf $tarball --exclude "$fname" bin bootchart config config-mfg data data_persist etc home jci lib media mnt resources root sbin tmp usr var
ls -lF $tarball
log backup finished
killall jci-dialog
msg="Finished"
else
log cancelled
msg="Cancelled"
fi

/jci/tools/jci-dialog --info --title="$title" --text="$0\n$msg\nTouch OK button."
log $0 finished
 

·
Registered
Joined
·
50 Posts
1 - 5 of 5 Posts
Top