Hi,
I'm doing a backup via rsync over SSH to a directory on my Linux PC..
10.0.12.100 - beagle
/disk2/beagleBackup - dir on PC
To dir on PC:
sudo rsync -aAXv [email protected]:/* /disk2/beagleBackup
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
Back to beagle ..booted from SD card, flash mounted to /tmp/rootfs
sudo rsync -aAXv /disk2/beagleBackup/* [email protected]:/tmp/rootfs
Here is my modified version of*beaglebone-black-copy-microSD-to-eMMC.sh
*( format flash, copy uboot and mount flash to /tmp/rootfs)
#!/bin/bash
#
# Copyright (c) 2013 Robert Nelson <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining
a copy
# of this software and associated documentation files (the "Software"),
to deal
# in the Software without restriction, including without limitation the
rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
if ! id | grep -q root; then
echo "must be run as root"
exit
fi
source="/dev/mmcblk0"
destination="/dev/mmcblk1"
mkfs.vfat -F 16 ${destination}p1
mkfs.ext4 ${destination}p2
mount ${destination}p1 /mnt/flashBoot
mount ${source}p1 /mnt/boot
cp /mnt/boot/* /mnt/flashBoot
mkdir -p /tmp/rootfs/ || true
mount ${destination}p2 /tmp/rootfs/
sync
echo ""
echo "This script has now completed it's task"
echo "-----------------------------"
echo "Note: Actually unpower the board, a reset [sudo reboot] is
not enough."
echo "-----------------------------"
ArSi
------------------------------------------------------------------------
*From:* Rattus
*Sent:* Friday, May 15, 2015 4:02AM
*To:* Beagleboard
*Subject:* [beagleboard] Preserving flashable eMMC image
How would I dump an eMMC-flashable image to SD card to be able to
produce clones?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.