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.
- Clone project.
- 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.
- 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"
}
]
}
}
- Build and run.