Buffer: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Fix RedHat boot == === hostDestination === <pre> diskMy=sda backupDir=~/$(hostname).$(date -u +"%Y-%m-%dT%H_%M_%SZ") mkdir "${backupDir}" cd "${backupDir}" dd if=/dev/${di...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Mediawiki Docker == | |||
docker pull wikimedia/mediawiki | |||
== Fix RedHat boot == | == Fix RedHat boot == | ||
=== hostDestination === | === hostDestination === | ||
Line 28: | Line 32: | ||
<pre> | <pre> | ||
diskMy=sda | diskMy=sda | ||
restoreDir= | restoreDir= | ||
cd "${restoreDir}" | cd "${restoreDir}" | ||
zcat | dd if=${diskMy}.mbr of=/dev/${diskMy} bs=512 count=1 | ||
zcat sda1.dd.gz |dd of=/dev/${diskMy}1 | |||
</pre> | </pre> |
Latest revision as of 08:19, 26 February 2022
Mediawiki Docker
docker pull wikimedia/mediawiki
Fix RedHat boot
hostDestination
diskMy=sda backupDir=~/$(hostname).$(date -u +"%Y-%m-%dT%H_%M_%SZ") mkdir "${backupDir}" cd "${backupDir}" dd if=/dev/${diskMy}1 |gzip >${diskMy}1.dd.gz dd if=/dev/${diskMy} of=${diskMy}.mbr bs=512 count=1
hostSource
hostDestination= diskMy=sda backupDir=~/$(hostname).$(date -u +"%Y-%m-%dT%H_%M_%SZ") mkdir "${backupDir}" cd "${backupDir}" dd if=/dev/${diskMy}1 |gzip >${diskMy}1.dd.gz dd if=/dev/${diskMy} of=${diskMy}.mbr bs=512 count=1 ssh root@${hostDestination} -c 'mkdir '"${backupDir}" scp -p * root@${hostDestination}:"${backupDir}"/.
hostDestination
diskMy=sda restoreDir= cd "${restoreDir}" dd if=${diskMy}.mbr of=/dev/${diskMy} bs=512 count=1 zcat sda1.dd.gz |dd of=/dev/${diskMy}1