disk cloning by dd command (143 Views)
Reply
Trusted Contributor
sarfaraj ahmad
Posts: 122
Registered: ‎11-15-2008
Message 1 of 4 (143 Views)

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.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 4 (143 Views)

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
Acclaimed Contributor
Dennis Handly
Posts: 25,188
Registered: ‎03-06-2006
Message 3 of 4 (143 Views)

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.
Trusted Contributor
sarfaraj ahmad
Posts: 122
Registered: ‎11-15-2008
Message 4 of 4 (143 Views)

Re: disk cloning by dd command

thank you very much for your reply.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.