[flexbackup-help] How to use PRUNE
Hi: I'm trying to backup some smbfolders /mnt/hariseldon/admContainer/... /mnt/hariseldon/beeTracert/... /mnt/jmorales/admContainer/... /mnt/ragnarok/z4Project/... /mnt/kerberos/Data In some of them there is another dir named build and others deploy For instance /mnt/hariseldon/admContainer/build /mnt/ragnarok/z4Project/deploy What I need is to not backup this dirs. I think that I can do that whit prune, but I just can't understand the way it's used :-( I can't not use exclude_expr, because if I try to put some in there flexbackup crash due to excesive number of files to backup (I've to comment every exclude line) Thanx! -- ___ Carlos A. Sepulveda M. | JID: [EMAIL PROTECTED] |___| http://www.tuxpan.com/casep | ICQ: 31472448 (o\_|_/o) May the TUX be with You | user #292837 counter.li.org U U'76 1300 L Bob Esponja --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ flexbackup-help mailing list flexbackup-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flexbackup-help
[flexbackup-help] Don't know if there is interest ...
I wrote a few scripts to help turn flexbackup into a disk-to-usbdisk backup system, maintaining a set duration of backups. You could accomplish much the same thing with some fancy crontab+shell scripts, but I prefer using Perl for anything moderately or more so complex. The first is rmob.pl at http://downloads.scalableinformatics.com/downloads/backup/rmob.pl . It will look over the names in the directory pointed to by --dir=/path/to/backup/files and remove any that are older than --age=number_of_days . By default it will work in the current directory and remove only the back files that are older than 30 days. The second is rotate_backup.pl, which will adjust a soft link to the backup directory (as specified in the /etc/flexbackup.conf file), to point to one of several usbdisk units hanging off /media/usbdisk1, /media/usbdisk2, ... , /media/usbdiskN . Based upon the number of disks (hardwired on the 6th line of the script), and the number of days in a month (hardwired to 31), it will evenly divide the month into 31/N slices, and set an index equal to the integer portion of (1+31/N) which is then used to construct the soft link to the appropriate USB2 hard disk. You can set the particular directory where your usbdisk are mounted using the --dir=/path/to/usbdisk which the script will use as a template to create the soft link to --link=/path/to/link/to/for/backup . Couple these two with a few USB2 drives, and a hotplug system that mounts things like this in /media/usbdisk*, as well as a flexbackup config which always backs up to the link (/media/backup in this case), and some simple crontabs 05 0 * * * /usr/sbin/rotate_backup.pl /srv/backup/rotate-`date -I`.log 21 5 0 * * * /usr/sbin/rmob.pl --age 15 --dir /media/backup 30 0 1,15 * * /usr/bin/flexbackup -set all /srv/backup/backup-all-`date -I`.log 21 30 0 2-14,16-31 * * /usr/bin/flexbackup -set user -level differential /srv/backup/backup-user-`date -I`.log 21 30 6 2-14,16-31 * * /usr/bin/flexbackup -set system -level differential /srv/backup/backup-system-`date -I`.log 21 (note: you could simply do incremental backups rather than differentials) and you have a rather complete rotating backup system to USB2 media. Quite simple really. Joe -- Joseph Landman, Ph.D Founder and CEO Scalable Informatics LLC, email: [EMAIL PROTECTED] web : http://www.scalableinformatics.com phone: +1 734 786 8423 fax : +1 734 786 8452 cell : +1 734 612 4615 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ flexbackup-help mailing list flexbackup-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flexbackup-help
Re: [flexbackup-help] Don't know if there is interest ...
Joe, http://downloads.scalableinformatics.com/downloads/backup/rmob.pl . It will look over the names in the directory pointed to by --dir=/path/to/backup/files and remove any that are older than --age=number_of_days . By default it will work in the current directory and remove only the back files that are older than 30 days. Looks cool. Why not upload them to sourceforge? --Josh -- __Aglio Database Solutions___ Josh BerkusConsultant josh@agliodbs.comwww.agliodbs.com Ph: 415-752-2500Fax: 415-752-2387 2166 Hayes Suite 200San Francisco, CA --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ flexbackup-help mailing list flexbackup-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flexbackup-help
Re: [flexbackup-help] Don't know if there is interest ...
Hi Josh: They are more for flexbackup. If there is interest in them for the project, I'd be happy to include them. Otherwise, I am not sure there would be general enough interest in this. Any thoughts? Joe Josh Berkus wrote: Joe, http://downloads.scalableinformatics.com/downloads/backup/rmob.pl . It will look over the names in the directory pointed to by --dir=/path/to/backup/files and remove any that are older than --age=number_of_days . By default it will work in the current directory and remove only the back files that are older than 30 days. Looks cool. Why not upload them to sourceforge? --Josh -- Joseph Landman, Ph.D Founder and CEO Scalable Informatics LLC, email: [EMAIL PROTECTED] web : http://www.scalableinformatics.com phone: +1 734 786 8423 fax : +1 734 786 8452 cell : +1 734 612 4615 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ flexbackup-help mailing list flexbackup-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flexbackup-help