Are you looking for customized advices? Click here to contact the expert!
by
0
6
2,396
1
Top 1% !
Popular
Famous
Tagged
Specified
OpenSource
Popularity: 6971st place
Created
Modified Nov 11, 2013
LanguageBASH
LicenseMIT_X11
OSLinux

How to remotely backup a disk in Linux

This command let the user make a backup of the disk 'dev/hda' towards the remote server at IP 10.0.1.26.
So, the procedure is: locally launch this command, which connects to 10.0.1.26 via ssh and create a file named backup.img on remote 10.0.1.26 server
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/12280/How-to-remotely-backup-a-disk-in-Linux?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
dd if=/dev/hda | ssh cri@10.0.1.26 "(cat >/home/cri/backup.img)"
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus