Skip to content

Commit 50c623b

Browse files
committed
Intermediary script cleanup.
1 parent 81664e1 commit 50c623b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

2-run-backup.cmd

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
#############################################################
2+
#
3+
# EBS Automatic Snapshot - Part #2: Intermeditary Script
4+
# By Casey Labs Inc.
5+
# Github repo: https://github.com/CaseyLabs/aws-ec2-ebs-automatic-snapshot-powershell
6+
#
7+
############################################################
8+
19
# Intermediary batch script - called by the Disk Shadow script.
210
#
3-
# Why do we also have this separate batch script to call the EBS snapshot script?
4-
# Because in Windows 2012, the Task Scheduler passes the Default User environment variables,
5-
# and therefore can't get the admin user's AWS credentials.
11+
# NOTE: if you configured the AWS credentials under a Windows user other than the Administrator account,
12+
# you will need to set the USERPROFILE below to match that Window user's profile directory.
613

7-
# NOTE: if you configured the AWS credentials under a user other than the Administrator account, you will need to set
8-
# the USERPROFILE below to match that user's home directory.
914
set USERPROFILE=C:\Users\Administrator\
10-
1115
powershell.exe -ExecutionPolicy Bypass -file "C:\aws\3-ebs-snapshot.ps1"

0 commit comments

Comments
 (0)