Advertising
- Someone
- Wednesday, December 26th, 2012 at 2:09:40pm UTC
- #!/bin/bash
- #
- #
- #Script para retaurar la terminal del usuario, esto solo clona la particion que tiene
- #el sistema operativo, en este caso /dev/sda1
- #
- #
- #
- #
- read -p "Ingrese ai si quiere restaurar la imagen de Antel Integra o f123 si quiere restaurar la de F123: " n
- if test $n = "ai"
- then
- clear
- echo "##########################################################"
- echo "##########################################################"
- echo "##########################################################"
- echo "******************* RESTAURANDO **************************"
- echo " "
- echo " "
- echo " NO APAGUE EL EQUIPO SE REINICIARA SOLO AL FINALIZAR "
- echo " FAVOR INGRESE NUEVAMENTE LA CLAVE PARA CONFIRMAR "
- echo " LA RESTAURACION DEL EQUIPO "
- echo " "
- echo " "
- echo " PRESIONE CTRL+ALT+SUPR PARA CANCELAR LA OPERACION "
- echo " "
- echo "##########################################################"
- echo "##########################################################"
- echo "##########################################################"
- sudo partclone.ext4 -r -d -s /home/restaura/imagen.img -o /dev/sda1
- sudo reboot
- fi
- if test $n = "f123"
- then
- clear
- echo "##########################################################"
- echo "##########################################################"
- echo "##########################################################"
- echo "******************* RESTAURANDO **************************"
- echo " "
- echo " "
- echo " NO APAGUE EL EQUIPO SE REINICIARA SOLO AL FINALIZAR "
- echo " FAVOR INGRESE NUEVAMENTE LA CLAVE PARA CONFIRMAR "
- echo " LA RESTAURACION DEL EQUIPO "
- echo " "
- echo " "
- echo " PRESIONE CTRL+ALT+SUPR PARA CANCELAR LA OPERACION "
- echo " "
- echo "##########################################################"
- echo "##########################################################"
- echo "##########################################################"
- sudo partclone.ext4 -r -d -s /home/restaura/f123.img -o /dev/sda3
- sudo reboot
- fi
- #
- #
- # -c clonar
- # -d destino
- # -s origen
- # -r restaura
- # -o salida
- (END)
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.