BackupPC

From Stadm
Revision as of 16:03, 3 December 2014 by Stadm1 (talk | contribs) (→‎Windows)
Jump to navigationJump to search

Windows

  • We have made some scripts to make the install go a little quicker and painless
  • First we have a .bat file(runs through windows command prompt) to add a user for backuppc to use
  • I have included and annotated the code to help understand what the script does, the actual script echos warnings and informs you of what it is doing along the way
net user /add root     #This adds a user named root
net localgroup administrators root /add     #adds the user root to the Administrator group 
net share sharename=C:\ /grant:root,full     #gives the user the permission to backup all files on the C:\ drive

net user root *     #Takes a password from stdin(prompt) to set for the user root

netsh advfirewall firewall add rule name="SSH-Hole Port 22" dir=in action=allow protocol=TCP localport=22 remoteip=128.111.100.0/24,128.111.101.0/24 profile=domain,private,public
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow remoteip=128.111.100.0/24,128.111.101.0/24 profile=domain,private,public