Selaa lähdekoodia

Backup script updated

David Witham 4 vuotta sitten
vanhempi
sitoutus
ea490bdb87
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      backup_to_server.psm1

+ 3 - 3
backup_to_server.psm1

@@ -55,11 +55,11 @@ function backup_to_server {
 
         # Config file
         $config_file = Join-Path $env:TEMP backup_script.txt
-        Set-Content $config_file "open sftp://bethany@gandalf/ -hostkey=""ssh-ed25519 256 55:2d:b5:25:58:19:5d:cd:14:39:36:ec:c9:7c:ee:08"" -privatekey=""$key_file"""
+        Set-Content $config_file "open sftp://bethany@thorin/ -hostkey=""ssh-ed25519 256 1d0dZTuF/AnK1iGlgjJnT2WEqcpJ6mGKQ4G8A9klmRA"" -privatekey=""$key_file"""
         Add-Content $config_file "option batch continue"
         
         # Sync to server
-        $remote_directory = "/data2/backups/bethany/{0}/Profiles/" -f ( $env:COMPUTERNAME )
+        $remote_directory = "/data/backups/bethany/{0}/Profiles/" -f ( $env:COMPUTERNAME )
         $local_directory = "c:\Users"
         $mask = parse_sync_exclude
         $config = "synchronize remote -delete -filemask=""$mask"" ""$local_directory"" $remote_directory"
@@ -68,7 +68,7 @@ function backup_to_server {
         # If requested, sync the outlook data files as well
         if (!($skipoutlook)) {
             $local = "$HOME\AppData\Local\Microsoft\Outlook\*.ost"
-            $remote = "/data2/backups/bethany/{0}/" -f $env:COMPUTERNAME
+            $remote = "/data/backups/bethany/{0}/" -f $env:COMPUTERNAME
             $config = "put -resume ""$local"" $remote"
             Add-Content $config_file $config
         }