Difference between revisions of "BackupPC"

From Stadm
Jump to navigationJump to search
(Created page with "=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 bac...")
 
Line 3: Line 3:
 
*First we have a .bat file(runs through windows command prompt) to add a user for backuppc to use
 
*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
 
*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 user /add root     #This adds a user named root
  net localgroup administrators root /add
+
  net localgroup administrators root /add     #adds the user root to the Administrator group
  net share sharename=C:\ /grant:root,full
+
  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

Revision as of 15:03, 3 December 2014

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