Restore di client Windows con BackupPc
Jump to navigation
Jump to search
- Si suppone di avere un backup VSS dell'installazione, con il file contenente le ACL generate con subinacl
VEDERE:
- How To Use the Backup Program to Back Up and Restore the System State in Windows 2000
- Backing Up and Restoring Data for Windows 2000 Server
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
- Vedi questi link:
- Reset Windows 2008 Server Permissions - Server Fault
- Solving setup errors by using the SubInACL tool to repair file and registry permissions - Aaron Stebner's WebLog - Site Home - MSDN Blogs
- Resetting File Permissions in Windows Server 2008 R2 - platformadmin.com
- Windows Server 2008 Repair Install
- In-place upgrade from Windows Server Standard to Enterprise or Datacenter - Server Fault
- Repair Server 2008 R2 system files with DVD ? (Network Steve Forum)
- Windows Server 2008 Repair Install
- SFC Windows Resource Protection could not perform the requested operation FIX!
- How to fix Windows Server 2008 R2 bootloader
- acl - Can't reset Windows 7 Registry permissions - Server Fault
- 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