Restore di client Windows con BackupPc: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
 
Line 56: Line 56:


==Sistemazione ACL e boot sector==
==Sistemazione ACL e boot sector==
* TBD
 
===Ripristino Windows 2008 Server==
 
* Vedi questi link:
*[http://serverfault.com/questions/169251/reset-windows-2008-server-permissions Reset Windows 2008 Server Permissions - Server Fault]
*[http://blogs.msdn.com/b/astebner/archive/2006/09/04/739820.aspx Solving setup errors by using the SubInACL tool to repair file and registry permissions - Aaron Stebner's WebLog - Site Home - MSDN Blogs]
*[http://platformadmin.com/blogs/paul/2011/01/resetting-file-permissions-windows-server-2008-r2/ Resetting File Permissions in Windows Server 2008 R2 - platformadmin.com]
*[http://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/cd3d665f-3d95-4617-946d-55d8c03448fe Windows Server 2008 Repair Install]
*[http://serverfault.com/questions/34846/in-place-upgrade-from-windows-server-standard-to-enterprise-or-datacenter In-place upgrade from Windows Server Standard to Enterprise or Datacenter - Server Fault]
*[http://www.networksteve.com/forum/topic.php/Repair_Server_2008_R2_system_files_with_DVD_/?TopicId=15477&Posts=9 Repair Server 2008 R2 system files with DVD ? (Network Steve Forum)]
*[http://social.technet.microsoft.com/Forums/en-US/winserversetup/thread/cd3d665f-3d95-4617-946d-55d8c03448fe/ Windows Server 2008 Repair Install]
*[http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/92019325-38c4-41a8-9a57-38a3c39eec75/ SFC Windows Resource Protection could not perform the requested operation FIX!]
*[http://mybroadband.co.za/vb/showthread.php/240169-How-to-fix-Windows-Server-2008-R2-bootloader How to fix Windows Server 2008 R2 bootloader]
*[http://serverfault.com/questions/133008/cant-reset-windows-7-registry-permissions acl - Can't reset Windows 7 Registry permissions - Server Fault]
*[http://blogs.msdn.com/b/astebner/archive/2006/09/04/739820.aspx Solving setup errors by using the SubInACL tool to repair file and registry permissions - Aaron Stebner's WebLog - Site Home - MSDN Blogs]
 
* Per le acl, usare
C:
CD \
C:\cygwin\usr\local\bin\subinacl /playfile c.acl


==Riferimenti==
==Riferimenti==

Latest revision as of 22:59, 8 December 2012

  • Si suppone di avere un backup VSS dell'installazione, con il file contenente le ACL generate con subinacl


VEDERE:

Preparazione del client

  • Fare il boot con clonezilla
  • Diventare root
sudo -i
  • Creare una partizione con
id=7
boot
  • Formattare la partizione in ntfs
mkfs.ntfs -f /dev/mydevice
  • Montare la partizione in /mnt
mount /dev/mydevice /mnt
  • Abilitare la rete, si suppone che l'indirizzo sarà 1.2.3.4
  • Mettere in ascolto il tar con netcat
 netcat -l -p 8888 | tar -xpv -C /mnt

Restore dal Server

  • I files sono backuppati da /cygdrive/c/shadow e sono in /c
  • Sul server, elencare i files da restorare, ad esempio:


VERIFICARE lo strip del percorso per errore:

tar: ./cygwin/usr/share/zoneinfo/Etc/Zulu: Cannot hard link to `c/cygwin/usr/share/zoneinfo/Etc/UTC': No such file or directory
 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarCreate -n -1 -h windowshost -l -r /c -p '' -s /cygdrive/c/shadow c/
  • -n -1: restore dell'ultima sessione
  • -h windowshost: nome dell'host da restorare in backuppc
  • -l: elenca, non restorare
  • -r /c: elimina il prefisso c/
  • -p : sostituisci il prefisso eliminato con niente
  • -s /cygdrive/c/shadow: seleziona la share da backuppare
  • c/: è la cartella da restorare, che in realtà è la vss di C:\
  • Se i percorsi sono corretti, lanciare il restore vero e proprio, togliendo -l e indirizzando l'output in netcat
 sudo -u backuppc /usr/share/backuppc/bin/BackupPC_tarCreate -n -1 -h windowshost -r /c -p '' -s /cygdrive/c/shadow c/ | netcat  1.2.3.4 8888

Sistemazione ACL e boot sector

=Ripristino Windows 2008 Server

  • Per le acl, usare
C:
CD \
C:\cygwin\usr\local\bin\subinacl /playfile c.acl

Riferimenti