Browsed by
Category: Linux

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:

 

2016-12-09-11_44_46-ssalab-amust-local_7232-remote-desktop-connection

 

Invoking SSH commands

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

2016-12-09-11_35_58-ssalab-amust-local_7232-remote-desktop-connection

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.

2016-12-09-11_56_02-ssalab-amust-local_7232-remote-desktop-connection

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

2016-12-09-11_59_36-ssalab-amust-local_7232-remote-desktop-connection

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)

2016-12-09-12_04_15-ssalab-amust-local_7232-remote-desktop-connection

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 9.5, secret killer feature and heresy

About Veeam 9.5, secret killer feature and heresy

 

Hello ladies. And dudes. DK here.

3 days left before the Ignite and 2 days before I board a plane. That’s quite a journey to get from Saint-Petersburg, Russia to Atlanta. 4 hours to Paris, then 10 hours to Atlanta. And 4.5 hours layover. Luckily I missed the latest two seasons of Game of Thrones, so I’ll be entertained enough.

Now about 2 cool features of upcoming Veeam Backup and Replication 9.5:

First: Integration with Veeam Agent for Linux!

It’s so cool, you just add a VBR server in the settings of Agent for Linux and it automatically appears in your VBR console.

val_vbr

2016-09-23-13_31_42-ssalab-amust-local_7232-remote-desktop-connection

 

And now the killer feature.

Are you ready?

You can change the GUI color! w0000000t

new colors of Veeam UI

Let me try that Marine Blue

Veeam UI color blue

But wait…that’s just 4 colors, including 1 standard. What if I like other ones? Let me imagine that in Photoshop…using my madskillz

Expand the image
 
Sorry about that.

Anyway, you’ll be able to see the new colors and Agent for Linux integration at Ignite yourselves. See you there

And both features in one video🙂

DK out.

[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