Is it possible to backup individual files (i.e. database backups) from the disk of an on-premise Linux (CentOS) server to the Azure Recovery Services vault?
Do I need the Recovery Services agent and is that available for Linux?
Or is there a smarter way?
I could also make a script which would transfer my backup files to Azure blob storage. Can I then connect some Azure service to the blob storage so it would remove files according to some policy/schedule?
You can use free VEEAM B&R https://www.veeam.com/linux-backup-free.html to automate the backup process itself and upload your backups directly to Azure VM mounted as a backup repository or automate/script the upload with azure cli.
No, it is not possible. Based on my knowledge, you could backup Linux VM VHD with Azure Recovery Services vault, but backup a single file is not supported. Because if you want to back up files and folders to Azure, you need install and register the Recovery Services agent. However, the agent does not support Linux VM now.
Please refer to backup file or folder and how to restore file or folder on Azure.
For now, backup agent does not support Linux OS.
You could use
azure cli
to upload Linux File to azure storage account. Please refer to this link.Azure cli
is supported on a Linux VM.