Buffer: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
find /Users/sergiopacheco/Pictures -xdev -size +55M |while read line ;do mkdir -p '/Volumes/VERBATIM HD'"$(dirname "$line")" ;mv "$line" '/Volumes/VERBATIM HD'"$line" ;done | |||
== Mediawiki Docker == | == Mediawiki Docker == | ||
Revision as of 22:12, 27 May 2018
find /Users/sergiopacheco/Pictures -xdev -size +55M |while read line ;do mkdir -p '/Volumes/VERBATIM HD'"$(dirname "$line")" ;mv "$line" '/Volumes/VERBATIM HD'"$line" ;done
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