Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 937 Bytes

README.md

File metadata and controls

30 lines (27 loc) · 937 Bytes

RsyncWindows

Backs up data on your Windows machine running DeltaCopy to specified host via SSH and rsync protocol.

Use case scenario - you want to backup files on your Windows machine to a local Linux server and run this script manually or via task scheduler.

How to run

  1. Clone project.
  2. Make sure you have DeltaCopy server running on your Windows machine (as a Windows service) and virtual directories setup. Aliases of those directories are used in secrets.json project file.
  3. Open project in Visual Studio and set user secrets.json which should look like this:
{
  "BackupConfiguration": {
    "BackupHostName": "domain.net",
    "Username": "user",
    "Password": "password",
    "DeltaCopyFolderAliases": [
      {
        "Alias": "backup",
        "HostPath": "~/backup/folder1"
      },
      {
        "Alias": "documents",
        "HostPath": "~/backup/folder2"
      }
    ]
  }
}
  1. Build and run.