Moxa IA3341-LX [25/72] Backing up the user directory

Moxa IA3341-LX [25/72] Backing up the user directory
IA3341 Linux User’s Manual Managing Embedded Linux
3-5
Backing Up the User Directory
1. Create a backup file. First type the following command to enable the RAM disk:
#upramdisk
Next, use the file system backup utility provided by Moxa:
#backupuf /mnt/ramdisk/usrfs-backup
2. Once the file system is backed up, use FTP to transfer the file usrfs-backup to your PC.
192.168.3.127 - Putty
root@Moxa:~# upramdisk
root@Moxa:~# cd /mnt/ramdisk
root@Moxa: /mnt/ramdisk# df –h
Filesystem Size Used Available Use% Mounted on
/dev/root 8.0M 5.7M 2.3M 71% /
/dev/ram3 1003.0K 9.0K 943.0K 1% /dev
/dev/ram0 499.0K 18.0K 456.0K 4% /var
/dev/mtdblock3 6.0M 492.0K 5.5M 8% /tmp
/dev/mtdblock3 6.0M 492.0K 5.5M 8% /home
/dev/mtdblock3 6.0M 492.0K 5.5M 8% /etc
tmpfs 30.5M 0 30.5M 0% /dev/shm
/dev/ram1 16.0M 1.0K 15.1M 0% /var/ramdisk
root@Moxa:/mnt/ramdisk# backupuf /mnt/ramdisk/usrfs-backup
Sync the file system...
Now backup the user root file system. Please wait...
...............................................................................
Backup user root file system OK.
root@Moxa:/mnt/ramdisk#
Deploying the User Directory to Additional IA3341 Units
For some applications, you may need to ghost one IA3341 user file system to other IA3341 units.
Back up the user file system to a PC (refer to the previous subsection, “Backing Up the User File
System,” for instructions), and then type the following commands to copy the backup to additional
IA3341 units.
#upramdisk
#cd /mnt/ramdisk
#upfirm usrfs-backup
192.168.3.127 – PuTTY
root@Moxa:/mnt/ramdisk# ls -al
drwxr—xr-x 3 root root 1024 Jun 15 02:47
drwxr—xr-x 15 root root 0 Sep 29 2004
-rw------- 1 root root 12288 Jun 15 02:45 lost+found
-rw-r--r-- 1 root root 27263140 Jun 15 02:48 usrfs-backup
root@Moxa:/mnt/ramdisk# upfirm usrfs-backup
Moxa ThinkCore IA3341 upgrade firmware utility version 1.0.
To check source firmware file context.
The source firmware file conext is OK.
This step will destroy all your firmware.
Continue ? (Y/N) : Y
Now upgrade the file [userdisk]:
Format MTD device [/dev/mtd3] . . .
MTD device [/dev/mtd3] erase 128 Kibyte @ 600000 – 100% complete.
Wait to write file . . .
Completed 100%
Upgrade the firmware is OK.

Содержание

Похожие устройства

Скачать