Closed iceyman closed 2 months ago
But how would you restore the backup then?
Have you a Rasbperry Pi with NVMe?
You could change that line easily to match the NVMe path:
for example
if [ "$(ps | grep -c 'dd if=/dev/nvme0n1')" -gt 1 ]; then
Restore it via imager or whatever to nvme as u can boot it
From: Manuel @.> Sent: Wednesday, August 28, 2024 10:12:27 PM To: mr-manuel/raspberry-pi-backup @.> Cc: iceyman @.>; Author @.> Subject: Re: [mr-manuel/raspberry-pi-backup] NVME Support (Issue #10)
But how would you restore the backup then?
Have you a Rasbperry Pi with NVMe?
You could change that line easily to match the NVMe path:
for example
if [ "$(ps | grep -c 'dd if=/dev/nvme0n1')" -gt 1 ]; then
— Reply to this email directly, view it on GitHubhttps://github.com/mr-manuel/raspberry-pi-backup/issues/10#issuecomment-2315156156, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABIYQXF7OQ65Y7XPUMAX34LZTW5CXAVCNFSM6AAAAABNIA3NZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVGE2TMMJVGY. You are receiving this because you authored the thread.Message ID: @.***>
G'day mate yes i have changed a few lines from
if [ "$(ps | grep -c 'dd if=/dev/mmcblk0')" -gt 1 ]; then
echo "Backup already running. Exiting..."
echo
exit
fi
# create backup
echo "Using script dd for backup."
"${SCRIPT_DIR}/ext/dd" if=/dev/mmcblk0 of="${BACKUP_PATH}/${BACKUP_NAME}_$(date +%Y%m%d_%H%M%S).img" bs=1MB status=progress
# if not use the system dd
else
# check if backup is already running
if [ "$(ps -aux | grep -c 'dd if=/dev/mmcblk0')" -gt 1 ]; then
echo "Backup already running. Exiting..."
To
if [ "$(ps | grep -c 'dd if=/dev/nvme0n1')" -gt 1 ]; then
echo "Backup already running. Exiting..."
echo
exit
fi
# create backup
echo "Using script dd for backup."
"${SCRIPT_DIR}/ext/dd" if=/dev/nvme0n1 of="${BACKUP_PATH}/${BACKUP_NAME}_$(date +%Y%m%d_%H%M%S).img" bs=1MB status=progress
# if not use the system dd
else
# check if backup is already running
if [ "$(ps -aux | grep -c 'dd if=/dev/nvme0n1')" -gt 1 ]; then
echo "Backup already running. Exiting..."
And works Fine :D
But how would you restore the backup then? Same as before mate you can boot a NVME and also write to an NVME is you have usb to nvme
Have you a Rasbperry Pi with NVMe? Yes i have a pi4 and a pi5 setup and i have used your script to back them up after changes
Thanks mate :D
G'day mate just wondering if you could add NVME support at all like add a section we can choose either nvme or sdcard ?