spirit posteets tagged restore  [ Profile ]

Sort by: Date / Title /

  1. 9 years ago
    Il faut avoir un backup de base tel qu'il y ait un dossier par base de donnée, un fichier SQL compressé par table. "-P 4" désigne le nombre de core.
    1. find -print0 | xargs -0 -n 1 -P 4 -I {} sh -c "zcat '{}' | mysql mydatabase"
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2071"></script>
  2. 11 years ago and saved by 1 other
    1. # Boot on a live CD and open a console. sda1 is supposed to be the partition containing the OS
    2. # 1/ Restore GRUB
    3. mount -t proc none /dev/sda1/proc
    4. mount -o bind /dev /dev/sda1/dev
    5. chroot /dev/sda1/ /bin/bash
    6.  
    7. /usr/sbin/grub
    8. grub > root(hd0,0)    # 0->a, 1->b ...      #1->0, 2->1 ...
    9. grub > setup(hd0)
    10. grub > quit
    11.  
    12. # 2/ Check if partition is bootable
    13. fdsik /dev/sda
    14. fdisk > p      # print the partition table
    15. fdisk > a      # toggle a bootable flag
    16. fdsik > 1
    17. fidsk > w
    18.  
    19. # 3/ Reboot !! That's done
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/667"></script>
  3. 11 years ago
    1. # Dump
    2. mysqldump -u user -p -h localhost --database base > base.sql
    3.  
    4. # Restore
    5. mysql -u user -p -h localhost base < base.sql
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/75"></script>
  4. sponsorised links

First / Previous / Next / Last / Page 1 of 1 (3 posteets)