This post of more for posterity but maybe there is a better way to do this.
I had a single folder of SQL dumps. In that Folder were thirty folders each with DB dumps in it. I have been backing it up in one job but it was taking 24+ hours to backup the 2 TB of data. Plus, that is a long time for a network connection to stay working. I decided to split the single job into three jobs. I created three FileSets, each with a unique "File" line: File = "|sh -c 'ls -d1 /mnt/BACKUP_SQLDump/* | sed -n \"1,20p\"'" So this one does a "ls -d1" on the master folder and supplies only the first thru 20 folders. The next one does 21 thru 25. The last one does 25 thru 10000 (to get any newly created folders). I'm sure I could have used a regex, but this seems the least likely to miss any folders. Any better ideas? -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
