From: GATOUILLAT Pierre-D. <PDG...@fr...> - 2006-10-11 15:54:55
|
=20Hi, Did=20you=20try=20the=20archive=20function=20of=20backuppc=20? http://backuppc.sourceforge.net/faq/BackupPC.html#archive_functions I'm=20using=20this=20function=20in=20a=20script=20(found=20in=20the=20arch= ives=20of=20the=20list)=20to=20create=20some=20tar.gz=20archive=20of=20my=20= hosts,=20then=20put=20them=20on=20a=20tape=20for=20offsite=20storage,=20wi= th=20a=20cron=20job=20: DIR=3D/backup/backuppc/pc HOSTS=3D'host1=20host2=20host3=20host4' DIR_GZ=3D/backup/tmp rm=20-f=20$DIR_GZ/* for=20h=20in=20$HOSTS do =20=20=20=20=20=20=20=20LAST_FULL=3D`tail=20-1=20$DIR/$h/backups=20|=20awk= =20{'print=20$1'}` =20=20=20=20=20=20=20=20echo=20"$h=20$LAST_FULL" =09=09#one=20line=20command =20=20=20=20=20=20=20=20/usr/share/backuppc/bin/BackupPC_archiveHost=20/us= r/share/backuppc/bin/BackupPC_tarCreate=20/usr/bin/split=20/usr/bin/par2=20= $h=20$LAST_FULL=20/bin/gzip=20.gz=200000000=20/backup/tmp=200=20"*" done Hope=20that=20helps, Pierre-Damien >=20-----Message=20d'origine----- >=20De=20:=20b...@li...=20 >=20[mailto:bac...@li...]=20De=20la=20 >=20part=20de=20Tomasz=20Chmielewski >=20Envoy=E9=20:=20mercredi=2011=20octobre=202006=2012:56 >=20=C0=20:=20backuppc-users >=20Objet=20:=20[BackupPC-users]=20how=20to=20retrieve=20last=20backup=20f= or=20a=20 >=20host=20(fromcommand=20line)? >=20 >=20I=20have=20X=20hosts,=20and=20would=20like=20to=20write=20a=20script=20= to=20retrieve=20 >=20last=20backups=20from=20these=20hosts,=20and=20save=20it=20as=20host1.= tar,=20 >=20host2.tar=20etc.=20-=20to=20later=20write=20it=20to=20a=20tape. >=20 >=20What=20is=20the=20best=20method=20to=20do=20that? >=20 >=20Should=20I=20just=20tar=20the=20current=20BackupPC=20archives=20like=20= below? >=20 >=20tar=20-cf=20host1-last.tar=20/backuppc-data/pc/hosts/host1/<last_backu= p> >=20tar=20-cf=20host1-last.tar=20/backuppc-data/pc/hosts/host2/<last_backu= p> >=20 >=20Or=20is=20there=20a=20better=20method? >=20 >=20The=20above=20seems=20to=20have=20an=20advantage=20that=20I=20don't=20= have=20to=20"repack"=20 >=20everything=20(i.e.,=20uncompress=20from=20BackupPC=20format,=20than=20= make=20 >=20a=20tar=20package=20out=20of=20it)=20-=20but=20I'm=20not=20sure=20if=20= I=20can=20restore=20 >=20such=20a=20backup=20reliably=20later=20on. >=20 >=20 >=20Or=20should=20I=20do=20it=20some=20other=20way? >=20 >=20 >=20-- >=20Tomasz=20Chmielewski >=20http://wpkg.org >=20 >=20-------------------------------------------------------------- >=20----------- >=20Using=20Tomcat=20but=20need=20to=20do=20more?=20Need=20to=20support=20= web=20 >=20services,=20security? >=20Get=20stuff=20done=20quickly=20with=20pre-integrated=20technology=20to= =20make=20 >=20your=20job=20easier=20Download=20IBM=20WebSphere=20Application=20Serve= r=20 >=20v.1.0.1=20based=20on=20Apache=20Geronimo >=20http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& >=20dat=3D121642 >=20_______________________________________________ >=20BackupPC-users=20mailing=20list >=20B...@li... >=20https://lists.sourceforge.net/lists/listinfo/backuppc-users >=20http://backuppc.sourceforge.net/ >=20 ______________________________________________________________________ Ce=20message=20contient=20des=20informations=20dont=20le=20contenu=20est=20= susceptible=20d'etre=20confidentiel. Il=20est=20destine=20au(x)=20destinataire(s)=20indique(s)=20exclusivement.= A=20moins=20que=20vous=20ne=20fassiez=20partie=20de=20la=20liste=20des=20d= estinataires,=20ou=20que=20vous=20soyez=20habilite=20a=20recevoir=20le=20m= ail=20a=20leur=20place,=20il=20vous=20est=20interdit=20de=20le=20copier,=20= de=20l'utiliser=20ou=20de=20devoiler=20son=20contenu=20a=20un=20tiers. Si=20vous=20avez=20recu=20cet=20email=20par=20erreur,=20merci=20de=20prend= re=20contact=20avec=20l'emetteur. Les=20opinions=20exprimees=20dans=20cet=20e-mail=20sont=20celles=20de=20l'= emetteur=20et=20ne=20refletent=20pas=20necessairement=20celles=20de=20l'en= treprise. Ce=20e-mail=20peut=20contenir=20des=20pieces=20jointes=20dont=20certaines=20= pourraient=20contenir=20des=20virus=20qui=20pourraient=20endommager=20votr= e=20systeme=20informatique. La=20compagnie=20a=20pris=20toutes=20dispositions=20afin=20de=20minimiser=20= ce=20risque=20et=20decline=20toute=20responsabilite=20pour=20toute=20perte= =20ou=20dommage=20resultant=20directement=20ou=20indirectement=20de=20l'ut= ilisation=20de=20cet=20email=20ou=20de=20son=20contenu. Il=20vous=20appartient=20d'effectuer=20vos=20propres=20controles=20anti-vi= rus=20avant=20d'ouvrir=20la=20ou=20les=20pieces=20jointes. ______________________________________________________________________ |