Am 05.01.2011 um 10:38 schrieb Mister IT Guru: > I've run lots of test jobs, and I have a lot of backup data, that I > don't really need, around 2TB or so! (we have a few servers!) I would > like to know if it's possible to remove all of those jobs out of the > bacula database. Personally, I would have cut this configure out, and > drop it on a previous backup I have, but then I don't learn about how > bacula works. > > My main fear, is that I rsync my disk backend offsite, and I've > currently suspended that because of all these test jobs that I'm > running. Also, I've reset the bacula-dir and sd, during backups, and > I've a feeling that some of them are not viable. > > I guess what I'm asking is, is it possible to wipe the slate clean, > but > keep my working configuration from within bacula?
/etc/init.d/bacula-dir stop /etc/init.d/bacula-sd stop /etc/init.d/bacula-fd stop /usr/libexec/bacula/drop_bacula_tables /usr/libexec/bacula/make_mysql_tables STR=$(cat /etc/bacula/bacula-sd.conf | grep "Archive Device" |grep -v dev |cut -d"=" -f2 | grep -v tmp | tr -d " ") if [ -d "$STR" ];then echo "Removing $STR ..." rm "$STR"/* fi rm /var/spool/bacula/* /etc/init.d/bacula-dir start /etc/init.d/bacula-sd start /etc/init.d/bacula-fd start maybe (for sure) some path are different on you system -- PM ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
