Hello,
i have kind of a problem.
We have large data on a NAS (probably around 10 to 20 TB) which is splitted in Year 2018 and Year 2019
I configured a File to Tape Job for the files of 2018 and one for 2019.
The job starts on friday 1pm.
Because of that timewindow it is not possible to save both years in one job.
So my idea was to switch those jobs. for example:
Week 1 -> 2018
Week 2-> 2019
Week 3 -> 2018
Week 4 -> 2019
is there any chance via script or something that veeam automaticly enables one and disables the other job ?
Thank you very much
-
- Novice
- Posts: 7
- Liked: 1 time
- Joined: Apr 24, 2019 1:35 pm
- Contact:
-
- Product Manager
- Posts: 2581
- Liked: 708 times
- Joined: Jun 14, 2013 9:30 am
- Full Name: Egor Yakovlev
- Location: Prague, Czech Republic
- Contact:
Re: Tape Backup two different Files
Hi s.muller,
Yes, of course there is a Powershell for it.
- set both jobs schedule on Friday 1pm
- Go to job settings, under "Advanced" you will find a way to add a pre-job and post-job scripts. You will be interested in a script that runs "After the Job".
- For job File_to_Tape_2018 add a script "Get-VBRTapeJob -Name 'File_to_Tape_2018' | Disable-VBRJob; Get-VBRTapeJob -Name 'File_to_Tape_2019' | Enable-VBRJob;"
- For job File_to_Tape_2019 add a script "Get-VBRTapeJob -Name 'File_to_Tape_2019' | Disable-VBRJob; Get-VBRTapeJob -Name 'File_to_Tape_2018' | Enable-VBRJob;"
- Disable File_to_Tape_2019 manually
That should do it - first coming Friday 1pm your job 2018 will kick in, archive 2018 files on tape, and a script to disable 2018 job and enable 2019 job will follow. Next week 2019 job will kick in doing the same.
Hope that helps!
Yes, of course there is a Powershell for it.
- set both jobs schedule on Friday 1pm
- Go to job settings, under "Advanced" you will find a way to add a pre-job and post-job scripts. You will be interested in a script that runs "After the Job".
- For job File_to_Tape_2018 add a script "Get-VBRTapeJob -Name 'File_to_Tape_2018' | Disable-VBRJob; Get-VBRTapeJob -Name 'File_to_Tape_2019' | Enable-VBRJob;"
- For job File_to_Tape_2019 add a script "Get-VBRTapeJob -Name 'File_to_Tape_2019' | Disable-VBRJob; Get-VBRTapeJob -Name 'File_to_Tape_2018' | Enable-VBRJob;"
- Disable File_to_Tape_2019 manually
That should do it - first coming Friday 1pm your job 2018 will kick in, archive 2018 files on tape, and a script to disable 2018 job and enable 2019 job will follow. Next week 2019 job will kick in doing the same.
Hope that helps!
-
- Novice
- Posts: 7
- Liked: 1 time
- Joined: Apr 24, 2019 1:35 pm
- Contact:
Re: Tape Backup two different Files
Hi Egor,
thank you very much,
it worked perfectly.
thank you very much,
it worked perfectly.
Who is online
Users browsing this forum: No registered users and 20 guests