How often do you pump at work?

I go back to work in 6 weeks and I was wondering how long you wait in between pumps and how long do you pump for.

I tried breast feeding my daughter a couple years ago and had no idea what I was doing. I started a job when she was 3 months and I tried pumping every 2 hours for 30 min (because I was told to pump when it’s time for baby to eat) and I dried up within a couple weeks.. only because I didn’t stay consistent because I thought they’d fire me if I did it that often and I probably waited too long in between pumps.. I also never looked into how much I should really be pumping.

I just had my son a month ago and I’ve been breastfeeding him since day one (I didn’t stay consistent with breastfeeding my daughter, I gave her formula sometimes too) he’s never had formula. I’m still at the same job so I’m more comfortable with taking breaks to pump because they know my work ethic now. And I do not want to give my son formula.. but I’m terrified I’m going to dry up.

What would be a good schedule to pump??