Browsed by
Category: Backup

Backup your Linux system via Powershell. WHAT?!

Backup your Linux system via Powershell. WHAT?!

I have a Linux. I have a Powershell….ahhh…

Sorry. Ahem.

Anyway. Yesterday I found out that Powershell can invoke SSH commands to Linux machines. And that’s bonkers, you can control your Linux system and leverage PS functionality together. Let’s see how you deal with it.

Adding SSH capabilities to Powershell

Microsoft once promised us to add OpenSSH to Powershell, we still didn’t get it. But whatever, we have an alternative called Posh-SSH. All you need is love the command:

After that connect to your Linux machine by creating a new SSH session:




Invoking SSH commands

Now as a proof of concept let’s try something simple.


Holy cow! It returned the hostname!

Using Veeam Agent for Linux

But I wouldn’t be a backup guy if I didn’t try to backup something with all this. So let’s try using some of the commands of Veeam Agent for Linux.


As you see, the output of shell is truncated, so if you care for the output, apply a little cheat and try again:


Now that is better, but the string is not readable, so let’s apply some formatting! (it soounds like it something obvious, but I killed a lot of time trying to make it look right, and the rules are weird)


Now that looks about right. Not perfect, but definitely readable.

Hey I just backed it up!

What’s next?

Well, I just discovered this stuff, so there’s a lot to do. You can combine Linux commands and powershell to create some powerfull scripts. I’m no scripting guy by any means, but even for me  that sounds pretty exciting.

As for you guys, I hope that opens some automation opportunities for you, just turn on your imagination.


About Veeam, Count Dracula and Bitlooker

About Veeam, Count Dracula and Bitlooker

Happy Wednesday, my fellow readers, and casual internet viewers. DK here.

Not everyone knows that, despite the fact that Veeam’s HQ is located in Switzerland, the actual location of two main offices is in Saint-Petersburg, Russia. I’m working in one of them, and it is right here (you can even press “view larger map” and check out the street view):

The second one is relatively close; others are scattered around the world, and I’ll probably get to them eventually🙂.

Occasionally we get people from our other offices. This week, for example, we have our colleagues from Romania (see: Count Dracula, Romanian Longhorn). In fact, Romania is going to become our big location in the nearest future, getting the same big office with the same functions.

You don’t see that, but most of our marketing campaigns, webinars and whitepapers are managed from our SPB office. This is, in fact, the office of marketing, sales, and financial departments. And we have the designers here. And the backend systems. Well, we have a bit of everything, roughly 400 people in this very building.

But back to what you’ve come here for. Today’s small note is about Bitlooker. If you’ve read “Bitlocker”, please read it again. Okay, okay, relax, even Google reads it wrong.

First of all: did you know that the files you’ve deleted actually stay on disk? In fact, what happens is a file system removes only a path to these files, so they become sort of hidden, but still can be extracted with special software (if you ever tried to recover your files/photos/whatever, you know what I mean).

Bitlooker reads through the virtual disk and understands if the files were deleted. Then it just excludes disk blocks containing these files from a backup thus reducing its size. As far as I know it works not only in our Veeam B&R, but also in Agent for Windows and Agent for Linux.

Also, it excludes swap and hibernation files, but that’s not that interesting. And, did I mention, you get for FREE*!

I’ll let you find the appropriate checkbox yourself:

As you see Veeam loves you and saves you precious disk space and even more precious bandwidth.

Stay tuned for more.

DK out

* meaning it’s included in our free editions, but we all get paid from the revenue, so please buy Enterprise Plus🙂

[Upd] How to backup (and restore) Linux machine using free tools

[Upd] How to backup (and restore) Linux machine using free tools

Hey everyone, DK here.

Back in the days, I remember myself trying Linux for the first time (I think it was Jaunty Jackalope) and screwing up A LOT. Unfortunately, I had no idea about backups as such, so I wasted ages on reinstalling stuff and trying to make it work.

It’s been several years since I stopped using Linux, but now I wanna catch up and start things right – with an ability to back up my machine. Ideally, if an emergency happens I want to be able to restore either certain files from a backup, or perform bare-metal recovery of my entire machine.

I will do 2 blog posts: this post is for those who simply want to back up their machine without playing around with settings and a slightly deeper one where I’ll show the command lines for more advanced tweaking.

Read More Read More