Comprehensive data protection for all workloads
Post Reply
cowhow
Enthusiast
Posts: 26
Liked: 1 time
Joined: May 17, 2013 5:01 pm
Full Name: Tony Price
Contact:

Rotate Backup Job

Post by cowhow »

I've got two file copy jobs pushing backups off site to AWS S3. One runs on the first Saturday of the month and a second job runs on the third Saturday. Has anyone came up with a way of rotating backups out of S3 rather than just allowing them to pile up until manually deleted? I'm not that creative or smart. :D
MCITP/EA, VCP6.5-DCV
Gostev
Chief Product Officer
Posts: 31532
Liked: 6703 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Rotate Backup Job

Post by Gostev »

How do you get them to S3?
cowhow
Enthusiast
Posts: 26
Liked: 1 time
Joined: May 17, 2013 5:01 pm
Full Name: Tony Price
Contact:

Re: Rotate Backup Job

Post by cowhow »

Gostev, I use a third party app to map my S3 bucket as a drive and then use the file copy job to push them up. But, I don't have a way of cleanly overwriting or rotating old backup out.
MCITP/EA, VCP6.5-DCV
Gostev
Chief Product Officer
Posts: 31532
Liked: 6703 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Rotate Backup Job

Post by Gostev »

That's what I thought. What backup mode are you using on your primary backup job? And does this third party app support block-level incrementals?
cowhow
Enthusiast
Posts: 26
Liked: 1 time
Joined: May 17, 2013 5:01 pm
Full Name: Tony Price
Contact:

Re: Rotate Backup Job

Post by cowhow »

I'm using reverse incrementals with synthetic full once a week. The third party app is an app called TntDrive. Basically, all it does is allow me to mount the bucket as a network drive so the file copy job can see it. The app is actually not in the loop as far as backup jobs are concerned. I'm trying to use this approach rather than Cloudberry so I can keep my backup jobs self contained in the Veeam console.
MCITP/EA, VCP6.5-DCV
dellock6
VeeaMVP
Posts: 6139
Liked: 1932 times
Joined: Jul 26, 2009 3:39 pm
Full Name: Luca Dell'Oca
Location: Varese, Italy
Contact:

Re: Rotate Backup Job

Post by dellock6 »

What about mounting different buckets and use them as different drives? AWS charges you by bytes and consumed bandwidth, not the number of buckets...
Luca Dell'Oca
Principal EMEA Cloud Architect @ Veeam Software

@dellock6
https://www.virtualtothecore.com/
vExpert 2011 -> 2022
Veeam VMCE #1
cowhow
Enthusiast
Posts: 26
Liked: 1 time
Joined: May 17, 2013 5:01 pm
Full Name: Tony Price
Contact:

Re: Rotate Backup Job

Post by cowhow »

I've kind of done something similar. I created two copy jobs for each backup job I push to AWS and route them to different folders in the same bucket to help sort out dates. The copy jobs only run every every other week into their own specific folder. It would be nice to be able to delete previous week's files prior to uploading the current job. That way I'd only have each week's current backup and my bucket storage quota would stay essentially the same rather than grow as time goes by.
MCITP/EA, VCP6.5-DCV
dellock6
VeeaMVP
Posts: 6139
Liked: 1932 times
Joined: Jul 26, 2009 3:39 pm
Full Name: Luca Dell'Oca
Location: Varese, Italy
Contact:

Re: Rotate Backup Job

Post by dellock6 »

You can just create a pre-job script that deletes the files in a given bucket, easy since it's seen as a folder from the local Veeam server.
Luca Dell'Oca
Principal EMEA Cloud Architect @ Veeam Software

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

Re: Rotate Backup Job

Post by veremin »

I'm a bit against using pre-job script to delete previous backups. Because if the backup job run fails for some reason, not only would you have no up-to-date restore point, but also you'd loose the previous one. Post-job command might be a better option.
cowhow
Enthusiast
Posts: 26
Liked: 1 time
Joined: May 17, 2013 5:01 pm
Full Name: Tony Price
Contact:

Re: Rotate Backup Job

Post by cowhow »

v.Eremin wrote:I'm a bit against using pre-job script to delete previous backups. Because if the backup job run fails for some reason, not only would you have no up-to-date restore point, but also you'd loose the previous one. Post-job command might be a better option.
That's a good point. I'm still scratching my head about this one. Every possible solution I can come up with has more downsides than benefits. You're right about possibly deleting your only good backup so I guess for now at least I'll just have to manually do bucket housekeeping periodically. Of course, S3 isn't terribly expensive to upload to, it's downloading that gets you.

The journey continues...
MCITP/EA, VCP6.5-DCV
Post Reply

Who is online

Users browsing this forum: Meow1 and 103 guests