Comprehensive data protection for all workloads
Post Reply
Andrew5143
Lurker
Posts: 2
Liked: never
Joined: Oct 07, 2016 1:25 pm
Contact:

Backup a single VM from a Backup job

Post by Andrew5143 »

Hi all,

Is there a way of backing up a single VM from a backup job. For example when we build a new virtual server we add it to a backup job. As part of the process we take a full backup of the server as soon as it is built. (we have not had to do this since we installed Veeam). Is there a way to backup the new server without creating a separate backup job for that single server?
Shestakov
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Backup a single VM from a Backup job

Post by Shestakov »

Hi Andrew and welcome to the community!
You can use VM containers as backup job objects so you don`t need to create another job each time new VM or host appears.
Thanks!
dellock6
Veeam Software
Posts: 6137
Liked: 1928 times
Joined: Jul 26, 2009 3:39 pm
Full Name: Luca Dell'Oca
Location: Varese, Italy
Contact:

Re: Backup a single VM from a Backup job

Post by dellock6 »

The request sounds more like the need to run the backup job, and inside it only process the newly added VM and not every vm that is in the job. You can use quick backup for this need:
https://helpcenter.veeam.com/backup/vsp ... ackup.html

Luca
Luca Dell'Oca
Principal EMEA Cloud Architect @ Veeam Software

@dellock6
https://www.virtualtothecore.com/
vExpert 2011 -> 2022
Veeam VMCE #1
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup a single VM from a Backup job

Post by veremin »

I doubt quick backup will help here, as it is for incremental tasks only. Thanks.
dellock6
Veeam Software
Posts: 6137
Liked: 1928 times
Joined: Jul 26, 2009 3:39 pm
Full Name: Luca Dell'Oca
Location: Varese, Italy
Contact:

Re: Backup a single VM from a Backup job

Post by dellock6 »

Oh, right, my bad. So, something like this may be better?
powershell-f26/backup-single-vm-not-all ... 10159.html
I haven't tested it in a while (probably v7) but it's worth a try.

Luca
Luca Dell'Oca
Principal EMEA Cloud Architect @ Veeam Software

@dellock6
https://www.virtualtothecore.com/
vExpert 2011 -> 2022
Veeam VMCE #1
matsholm
Influencer
Posts: 19
Liked: 1 time
Joined: Jan 19, 2016 8:02 am
Full Name: Mats Holm
Contact:

Re: Backup a single VM from a Backup job

Post by matsholm »

Has anyone tried this script on v9 since the script in this thread is for v7?
I also lack a shortcut to run only one VM in a backup job fron within the GUI maybe something for future releases?
WRS2200
Enthusiast
Posts: 28
Liked: 3 times
Joined: Aug 06, 2015 8:21 pm
Full Name: Weston Strom
Contact:

Re: Backup a single VM from a Backup job

Post by WRS2200 »

Yes, I would also be interested in shortcut in future releases.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup a single VM from a Backup job

Post by veremin »

Has anyone tried this script on v9 since the script in this thread is for v7?
I think the latest version of the script has been confirmed against version 8. So, chance are, it will work smoothly for version 9 as well, since it makes use of the methods and parameters that have been changed between versions.

If instead of individual VMs container (such as resource pool, folder, etc.) is selected as a source for a backup job, you will need to re-write the code.

Anyway, if you'd like to continue the discussion about scripting, let's switch to PowerShell subforum.

Thanks.
Andrew5143
Lurker
Posts: 2
Liked: never
Joined: Oct 07, 2016 1:25 pm
Contact:

Re: Backup a single VM from a Backup job

Post by Andrew5143 »

Hi Guys,

Thanks for the replies and sorry for the delay in my response. We will have a look into the script.
ferrus
Veeam ProPartner
Posts: 299
Liked: 43 times
Joined: Dec 03, 2015 3:41 pm
Location: UK
Contact:

Re: Backup a single VM from a Backup job

Post by ferrus »

It would be handy to be able to take an on demand Full Backup of a single VM in a job, as well as a Quick (incremental) Backup.

We have many occasions where our DBA requests a full backup of a SQL VM (required to reset transaction logs ?? - don't know, not a DBA :lol: ), and that means a new Full Backup of every VM in the entire job.
It seemed impossible because of the file structure prior to v9, but with the per-VM files - would it not be easier to implement this (or even script it) now?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Backup a single VM from a Backup job

Post by veremin »

It seemed impossible because of the file structure prior to v9, but with the per-VM files - would it not be easier to implement this (or even script it) now?
The upcoming release won't have this functionality. However, you can still use the script referenced by Luca. In nutshell, the code excludes all, but one VM and initiates a full backup cycle. Thanks.
phil987AQ
Novice
Posts: 9
Liked: never
Joined: Dec 14, 2016 7:47 pm
Full Name: Phil Bailey
Contact:

[MERGED] Backup VM within a Job - especially SQL?

Post by phil987AQ »

Hello
Feature request!! Please can we have the option to backup single VM within a Job? For example when adding SQL severs to backup jobs the log backup fails every 15 minutes until you can run a full backup! I don't want to run the other 50 machines in the backup job.
Or am I missing anyway to already do this?
Thanks
Phil
Gostev
Chief Product Officer
Posts: 31457
Liked: 6647 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Backup VM within a Job - especially SQL?

Post by Gostev »

Hi, Phil - it's in my list, I too think it is important to have. Thanks!
RobinPGI
Influencer
Posts: 13
Liked: 5 times
Joined: May 05, 2016 3:52 pm
Full Name: Robin Matthews
Contact:

Re: Backup a single VM from a Backup job

Post by RobinPGI »

Did this functionality ever get added?
Shestakov
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Backup a single VM from a Backup job

Post by Shestakov »

Hello Robin,
The feature was not added to the product UI. However the script still should work.
Thanks!
cookiejc
Enthusiast
Posts: 81
Liked: never
Joined: Nov 06, 2013 3:15 pm
Full Name: J Cook
Contact:

Re: Backup a single VM from a Backup job

Post by cookiejc »

Does anyone know if this feature ever got added? We're facing the same issue with SQL servers needing a full backup before logs will be processed. Thanks
Shestakov
Veteran
Posts: 7328
Liked: 781 times
Joined: May 21, 2014 11:03 am
Full Name: Nikita Shestakov
Location: Prague
Contact:

Re: Backup a single VM from a Backup job

Post by Shestakov »

Hello, cookiejc.
The feature is not added yet.
Thanks
Jim_eHealth
Lurker
Posts: 2
Liked: never
Joined: Jan 28, 2020 9:07 pm
Full Name: Jim
Contact:

Re: Backup a single VM from a Backup job

Post by Jim_eHealth »

Does this exist yet via the GUI in version 11? We are still on 9.5.4. Does the script still work in Version 11 ?
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Backup a single VM from a Backup job

Post by foggy »

Hi Jim, v11 doesn't have this kind of functionality but the script should do the trick. Could you please describe your scenario so we could maybe think of a possible workaround?
Post Reply

Who is online

Users browsing this forum: dbeerts, Google [Bot], Max93 and 149 guests