Oky...
Um.. To do a full backup of your directory :
flexbackup -fs /directory
To erase the tape first *then* do a full backup :
flexbackup -erase -fs /directory
to do an incremental backup :
flexbackup -fs /directory -level <x>
Where x is a number corresponding to the number of the incremental. The way it works is that if you use incremental 1, then it'll backup any files that have changed since you did the full backup. Incremental 2 will backup any changed since incremental 1 and so on. From the README on the flexbackup page comes this :
2.1. Can you explain numeric dump levels?
Level 0 gets everything. For 1 or higher, files that have been changed since the last backup at a lower level are archived. For instance, if a level 2 backup was done on Monday, followed by a level 4 backup on Tuesday, a subsequent level 3 backup on Wednesday would contain all files modified or added since the level 2 (Monday) backup.
See also these sun docs for an example with some pictures.
http://docs.sun.com/db/doc/805-7228/6j6q7uf18?a=view
So, taking the example you provide below
Sunday - Full backup
Monday - Incremental
Tuesday - Incremental
.... etc etc
You would do :
Sunday:
flexbackup -erase -fs /downloads
monday
flexbackup -fs /downloads -level 1
tuesday
flexbackup -fs /downloads -level 2
wednesday
flexbackup -fs /downloads -level 3
etc..
I have a question for you though.
Your 10-15 gig directory. Can ONE tape hold that much?
If I recall correctly a DDS3 can hold um.. 8 gig?
I forget how much a DDS4 can hold, and if you have a DLT then you should be fine (35 gig DLT is what I have).
However, if your tape can't hold your *entire* directory then you'll have problems with flexbackup. You'll need to split your /directory into /directory/one and /directory/two and span them over different tapes..
Bit of a bummer, but that's a limitation of flexbackup.
As for how you'd do it automatically. You'd need to set the above commands up as cron jobs.
That's a whole 'nother subject and feel free to open a new topic on it when you're happy that the above works.
Slick.