Re: [BackupPC-users] save backuppc backups on a ultrium tape
2013-11-18 10:05:59
On 11/15/2013 04:46 PM, Les Mikesell wrote:
> On Fri, Nov 15, 2013 at 8:38 AM, info AT newoffice DOT it <info AT newoffice
> DOT it> wrote:
>> i must to put all the backuppc backups on a tape , i think that i can
>> use something like tar -cvpzf /dev/st0 /var/lib/backuppc +cronjob
> It is generally not practical to copy the whole archive directory with
> file-oriented methods like tar. There is no efficient way to
> reconstruct the millions of hardlinks in the filesystem and it will
> take a very long time to complete.
>
>> is there something better? like some bacuppc feature ( so i can have a
>> mail if the job fails)
> One thing that would work would be to use the command line tool
> Backuppc_tarCreate to generate tar images of the latest backup from
> each host that you can write to tape. You don't get the whole history
> on a single tape that way, but you do gain the ability to restore
> directly with tar without needing to reconstruct backuppc for the job.
>
> Backuppc has a concept called 'archive' hosts that you can set up to
> make tar images for you through the web interface but it is probably
> better to just write your own script around Backuppc_tarCreate so you
> can schedule it with cron.
>
hi
i've found this script
######################################
# BackupPC Archive Script
# Brian Smith - Bonnier Corporation
######################################
#!/bin/bash
DATADIR=/var/lib/backuppc/pc
BackupPCDATADIR=/dev/st0
BackupPCBIN=/usr/share/backuppc/bin
# Uncomment to remove old backups
#echo "Removing old backups....."
#find $DATADIR/ -type f | while read foo; do
# rm -fv $foo
#done
echo "Checking dump directories....."
ls $BackupPCDATADIR | grep -v archive | while read foo; do
mkdir $DATADIR/$foo 2>/dev/null
chmod 777 $DATADIR/$foo 2>/dev/null
done
ls $BackupPCDATADIR | grep -v archive | while read host; do
echo Dumping $host `date`........
$BackupPCBIN/BackupPC_tarCreate -t -h $host -n -1 -s \* . >
$DATADIR/$host/$host.`date +%Y%m%W`.tar
pbzip2 -p7 $DATADIR/$host/$host.`date +%Y%m%W`.tar
echo Done! `date`
done
exit 0
https://forums.zmanda.com/showthread.php?1823-Archive-to-Tape
it seems doing exactly what i need...
do you think it could be ok?
tnx
AbsyntH
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|