First of all, I know nothing. This feature could already exist, and I didn't even know.
This may completely screw up your server and I haven't discovered that yet. I have no idea what I'm doing.
I know nothing. I'm at tf@ft,net,au if you want something or you can tell me a better way to do this.
This works for me. I've been struggling for two years with hard drives bigger than the tapes. Can't backup -- tape full, job stops. Crap.
It means file ownership in ibays gets clobbered, so this breaks user quotas and file ownership in general.
You need sets, so you need to get the new version of flexbackup, it's at
<http://flexbackup.sourceforge.net/RPMS/flexbackup-1.2.1-1.noarch.rpm>
So then you setup your own flexbackup.conf from templates, it should include lines like this
$set{'Wednesday'} = "/home/e-smith/files/ibays/install";
Do a different set and ibay for each weekday.
Even better is to set it up so it automatically scans the /ibays folder and will make a new set when a new ibay is added. I can't do this myself because I know nothing.
Using nice templates fix up /sbin/e-smith/backup so that the actual command becomes
/usr/bin/flexbackup -set date +%A
So Monday it does the Monday set and so forth.
OK, Quotas. Quotas are based on users not folders, so make some users in the usual way, named after the ibays:
installquota
gamequota
accountsquota
Whatever the ibays are called. Now the files in each ibay need to be owned by the dummy user for the ibay, so make a new file in /etc/rc.d/init.d/quotainit
chmod +x that file, and it should contain:
#!/bin/bash
for i in ls /home/e-smith/files/ibays/; do
chown echo -n $i && echo quota -R /home/e-smith/files/ibays/$i/*
done
this means at every bootup it will set the ownership of all the files in an ibay to the dummy ibay user.
You also add a line in the backup file to run the quotainit script. It would be better in the warnquota cronjob, but that's in perl and I know nothing.
Set the quotas to, say, 20% lower than the tape capacity. It may take some tweaking but that's not so hard.
Happy happy joy joy!