{"id":22,"date":"2009-03-11T17:45:31","date_gmt":"2009-03-11T15:45:31","guid":{"rendered":"http:\/\/cuthbert.impire.de\/wordpress\/?p=22"},"modified":"2021-04-27T10:27:54","modified_gmt":"2021-04-27T09:27:54","slug":"mit-dump-systeme-sichern","status":"publish","type":"post","link":"https:\/\/lmaa.a-an.de\/?p=22","title":{"rendered":"mit dump Systeme sichern"},"content":{"rendered":"<div class=\"content\">\n<p>dump und restore sind echte UNIX Klassiker, mit Ihrer Hilfe lassen sich sogar Betriebssysteme klonen.<br \/>\nDas nachfolgende script sichert via ssh auf einen Server im Netzwerk:<\/p>\n<p><code><br \/>\n#!\/bin\/sh<br \/>\n###############################<br \/>\n# script for dumpin partitions<br \/>\n###############################<br \/>\nexport PATH='\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/bin\/X11:\/usr\/games:\/sbin:\/usr\/sbin:\/usr\/local\/sbin:\/root\/bin'<br \/>\nDATE=`\/bin\/date +\\%Y-\\%m-\\%d`<br \/>\nDEST='\/home\/back_up\/dumps'<br \/>\nDUMPLEVEL=`date +%w`<br \/>\nDUMP=\"\/sbin\/dump -$DUMPLEVEL -h 0 -au -f -\"<br \/>\nFIND='\/usr\/bin\/find'<br \/>\nGZIP='\/usr\/bin\/gzip -q -9 -c'<br \/>\nHOST='USER@BACKUPHOST'<br \/>\nMYNAME=`hostname -s`<br \/>\nNICE='\/usr\/bin\/nice -n 15'<br \/>\nSSH='\/usr\/bin\/ssh -c blowfish-cbc'<br \/>\n# do backup<br \/>\necho -e \"\\n*********************************************************\\n\"<br \/>\necho -e \"\\n\\tdump $MYNAME \/dev\/wd0a\\n\"<br \/>\n$NICE $DUMP \/dev\/HDDDEVICE | $NICE $GZIP | $NICE $SSH $HOST \"\/bin\/cat &gt; $DEST\/$MYNAME\/dump-$DATE-$DUMPLEVEL-$MYNAME-root.gz\"<br \/>\necho -e \"\\n\"<br \/>\necho -e \"\\n*********************************************************\\n\"<br \/>\n<\/code><\/p>\n<p>nach der Sicherung kann man mit dieser <a href=\"https:\/\/lmaa.a-an.de\/?p=23\">Anleitung<\/a> ein System wiederherstellen.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>dump und restore sind echte UNIX Klassiker, mit Ihrer Hilfe lassen sich sogar Betriebssysteme klonen. Das nachfolgende script sichert via ssh auf einen Server im Netzwerk: #!\/bin\/sh ############################### # script for dumpin partitions ############################### export PATH=&#8217;\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/bin\/X11:\/usr\/games:\/sbin:\/usr\/sbin:\/usr\/local\/sbin:\/root\/bin&#8216; DATE=`\/bin\/date +\\%Y-\\%m-\\%d` DEST=&#8217;\/home\/back_up\/dumps&#8216; DUMPLEVEL=`date +%w` DUMP=&#8220;\/sbin\/dump -$DUMPLEVEL -h 0 -au -f -&#8220; FIND=&#8217;\/usr\/bin\/find&#8216; GZIP=&#8217;\/usr\/bin\/gzip -q -9 -c&#8216; HOST=&#8217;USER@BACKUPHOST&#8216; MYNAME=`hostname [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-linux","category-openbsd"],"_links":{"self":[{"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22"}],"version-history":[{"count":2,"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions\/160"}],"wp:attachment":[{"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lmaa.a-an.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}