Kurztipp: Linux Festplattenimage über SSH sichern


(Alles in einer Zeile:)

server# dd bs=65536 if=/dev/hda | ssh -o Compression=yes user@host "cat > image.img"

  1. liest aus der shell von "server"
  2. mit 64k Blöcken
  3. den Festplatteninhalt von /dev/hda aus
  4. meldet sich dann als user bei host an
  5. und schickt das image via ssh komprimiert über die Leitung
  6. und legt das Image im Homedir des Benutzers user als image.img ab.
Ja, ich steh auf ssh :-).

Vote for articles fresher than 30 days!
Current karma: 5 of 5, 1 vote(s) 1148 hits
Defined tags for this entry: , , , ,

Comments

Display comments as (Linear | Threaded)

  1. Hans says:

    Herzlichen dank für den "Einzeiler" :-)


Add Comment


Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

You can use [geshi lang=lang_name [,ln={y|n}]][/lang] tags to embed source code snippets
BBCode format allowed