Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

disk cloning by dd command

sarfaraj ahmad
Trusted Contributor

disk cloning by dd command

i had started backup through dd command but after some hours my session timed out and disconnected.
now how can i know that backup is completed successfully or not?
is there any log message where these information stores?
i have checked already /var/adm/syslog/syslog.log, /var/mail/root and dmesg, but nothing found.
can anybody tell me how can i confirm about the backup.
thanks.
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: disk cloning by dd command

Shalom,

Safe thing to assume without data is the backup failed. If you need it and its not there the disappointment will be large.

What you can do is this:

Scripted backup

dd command
rc=$?
# This is a return code. zero means successful.
if [ $rc -eq 0 ]
then
echo "Backup succeeded"
else
echo "Backup failed"
fi

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: disk cloning by dd command

>my session timed out and disconnected.

I suppose it could have worked but the stderr output indicating any issues was lost. You could redirect the output and use nohup to put it in the background.

>is there any log message where these information stores?

Only to your terminal, if you didn't redirect it.

>can anybody tell me how can i confirm about the backup.

dd(1) isn't really a backup utility, it is a raw copying command.
It's not like there is a length on the target so you can see how much was copied.
Highlighted
sarfaraj ahmad
Trusted Contributor

Re: disk cloning by dd command

thank you very much for your reply.