sync
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#start-transcript "D:\log.log"
|
||||
xcopy C:\repos\NDGOV_CS\ C:\repos\ZM_Backup\_NDGOV_CS\ /s /e /Y
|
||||
xcopy C:\repos\NDGOV_WindowsTeam\ C:\repos\ZM_Backup\_NDGOV_WindowsTeam\ /s /e /Y
|
||||
|
||||
#Copy-Item -Path D:\ADO\NDGOV_ITD\ -exclude *.git -Destination D:\ADO\ZM_Sandbox\_NDGOV_ITD_backup -Recurse -Force
|
||||
#Get-ChildItem -Path D:\ADO\ZM_Sandbox\_NDGOV_ITD_backup -Directory -Recurse -include *.git | remove-item -Force -recurse -Confirm:$false
|
||||
|
||||
If (Test-Path -Path $profile.AllUsersAllHosts) {
|
||||
Copy-Item -Path $profile.AllUsersAllHosts -Destination C:\repos\ZM_Backup\PwshProfiles\work\AllUsersAllHosts.ps1 -Force
|
||||
}
|
||||
If (Test-Path -Path $profile.AllusersCurrentHost) {
|
||||
Copy-Item -Path $profile.AllusersCurrentHost -Destination C:\repos\ZM_Backup\PwshProfiles\work\AllusersCurrentHost.ps1 -Force
|
||||
}
|
||||
If (Test-Path -Path $profile.CurrentUserAllHosts) {
|
||||
Copy-Item -Path $profile.CurrentUserAllHosts -Destination C:\repos\ZM_Backup\PwshProfiles\work\CurrentUserAllHosts.ps1 -Force
|
||||
}
|
||||
If (Test-Path -Path $profile.CurrentUserCurrentHost) {
|
||||
Copy-Item -Path $profile.CurrentUserCurrentHost -Destination C:\repos\ZM_Backup\PwshProfiles\work\CurrentUserCurrentHost.ps1 -Force
|
||||
}
|
||||
If (Test-Path -Path "C:\Users\zmeier\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json") {
|
||||
Copy-Item -Path "C:\Users\zmeier\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Destination "C:\repos\ZM_Backup\PwshProfiles\work\WindowsTerminal_settings.json"
|
||||
}
|
||||
If (Test-Path -Path "C:\Users\zmeier\AppData\Roaming\Code\User\keybindings.json") {
|
||||
Copy-Item -Path "C:\Users\zmeier\AppData\Roaming\Code\User\keybindings.json" -Destination "C:\repos\ZM_Backup\VSCodeSettings\work\keybindings.json"
|
||||
}
|
||||
|
||||
|
||||
Set-Location C:\repos\ZM_Backup\
|
||||
|
||||
git config --global --add safe.directory C:/repos/ZM_Backup
|
||||
git add *
|
||||
git commit -m "update"
|
||||
git push
|
||||
|
||||
<#Set-Location D:\GitHub\PwshProfiles\
|
||||
|
||||
git config --global --add safe.directory D:/GitHub/ADO_Backup
|
||||
git add *
|
||||
git commit -m "update"
|
||||
git push
|
||||
#>
|
||||
Set-Location C:\repos\ZM_Sandbox\
|
||||
|
||||
git config --global --add safe.directory C:/repos/ZM_Sandbox
|
||||
git add *
|
||||
git commit -m "update"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user