Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Someone
Wednesday, December 26th, 2012 at 2:09:40pm UTC 

  1. #!/bin/bash
  2. #
  3. #
  4. #Script para retaurar la terminal del usuario, esto solo clona la particion que tiene
  5. #el sistema operativo, en este caso /dev/sda1
  6. #
  7. #
  8. #
  9. #
  10. read -p "Ingrese ai si quiere restaurar la imagen de Antel Integra o f123 si quiere restaurar la de F123: " n
  11.  
  12. if test $n = "ai"
  13. then
  14.  
  15.  
  16. clear
  17. echo    "##########################################################"
  18. echo    "##########################################################"
  19. echo    "##########################################################"
  20. echo    "******************* RESTAURANDO **************************"
  21. echo    "                                                          "
  22. echo    "                                                          "
  23. echo    "   NO APAGUE EL EQUIPO SE REINICIARA SOLO AL FINALIZAR    "   
  24. echo    "     FAVOR INGRESE NUEVAMENTE LA CLAVE PARA CONFIRMAR     "                           
  25. echo    "                LA RESTAURACION DEL EQUIPO                "
  26. echo    "                                                          "
  27. echo    "                                                          "
  28. echo    "    PRESIONE CTRL+ALT+SUPR PARA CANCELAR LA OPERACION     "   
  29. echo    "                                                          "
  30. echo    "##########################################################"
  31. echo    "##########################################################"
  32. echo    "##########################################################"
  33. sudo partclone.ext4 -r -d -s /home/restaura/imagen.img -o /dev/sda1
  34. sudo reboot
  35. fi
  36.  
  37. if test $n = "f123"
  38. then
  39.  
  40. clear
  41. echo    "##########################################################"
  42. echo    "##########################################################"
  43. echo    "##########################################################"
  44. echo    "******************* RESTAURANDO **************************"
  45. echo    "                                                          "
  46. echo    "                                                          "
  47. echo    "   NO APAGUE EL EQUIPO SE REINICIARA SOLO AL FINALIZAR    "   
  48. echo    "     FAVOR INGRESE NUEVAMENTE LA CLAVE PARA CONFIRMAR     "                           
  49. echo    "                LA RESTAURACION DEL EQUIPO                "
  50. echo    "                                                          "
  51. echo    "                                                          "
  52. echo    "    PRESIONE CTRL+ALT+SUPR PARA CANCELAR LA OPERACION     "   
  53. echo    "                                                          "
  54. echo    "##########################################################"
  55. echo    "##########################################################"
  56. echo    "##########################################################"
  57. sudo partclone.ext4 -r -d -s /home/restaura/f123.img -o /dev/sda3
  58. sudo reboot
  59.  
  60. fi
  61. #
  62. #
  63. #       -c      clonar
  64. #       -d      destino
  65. #       -s      origen
  66. #       -r      restaura
  67. #       -o      salida
  68. (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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right
worth-right
worth-right