Re: [BackupPC-users] BackupPC_tarCreate with only certain types of files

2015-05-23 Thread Timothy J Massey
Holger Parplies wb...@parplies.de wrote on 05/23/2015 09:29:25 AM:

 for the archives: you don't strictly *need* the free space. You can pipe 
the
 output of BackupPC_tarCreate directly into a 'tar x' and tell tar to 
only
 extract files named '*.pdf', something like
 
BackupPC_tarCreate -h host -n 123 -s /share /path \
   | tar xf - --wildcards '*.pdf' '*.PDF'

Forget the archives:  I appreciate the tip.  It'd be nice to avoid all the 
I/O to have BackupPC stream all that data just so it can end up in the bit 
bucket, but at least it doesn't end up on my disk again, too!  :)

 This seems to be another good case for using the fuse module. You can 
navigate
 the backup view (or run a 'find', 'rsync', ...) at a relatively low cost 
and
 only need to read/decompress the file data you actually act on - andyou 
don't
 need any intermediate storage space.

I completely forgot about that.  I've already done most of the data so 
far, but that's an excellent suggestion, too.

once again, thank you.

Tim Massey
 
Out of the Box Solutions, Inc. 
Creative IT Solutions Made Simple!
http://www.OutOfTheBoxSolutions.com
tmas...@obscorp.com 
 
22108 Harper Ave.
St. Clair Shores, MI 48080
Office: (800)750-4OBS (4627)
Cell: (586)945-8796 
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate with only certain types of files

2015-05-23 Thread Timothy J Massey

Thank you very much for the confirmation that I'm not crazy and you can't
do wildcards with BackupPC_tarCreate.

In this instance, I was able to come up with enough free space to be able
to do the complete restore and then grab the data I needed from that. But
thank you very much for your code: I will experiment with it is a need to
use it in the future.

Timothy J. Massey

Sent from my iPad

 On May 23, 2015, at 7:43 AM, Holger Parplies wb...@parplies.de wrote:

 Hi,

 Timothy J Massey wrote on 2015-05-22 20:40:52 -0400 [Re: [BackupPC-users]
BackupPC_tarCreate with only certain types of?files]:
  Les Mikesell lesmikes...@gmail.com wrote on 05/22/2015 04:24:56 PM:
 
What am I missing?  How do I get BackupPC_tarCreate to create a
tar file that contains all PDF's stored in that path?
[...]
  
   Can't help with BackupPC_tarCreate's wildcard concepts

 I can: there are none. BackupPC_tarCreate gets a list of path names to
include
 in the tar. Each of these is looked up verbatim and included (with
 substructure if it happens to be a directory).

  The problem is not that I couldn't figure out how to get the PDF's at
all,
  but how I could avoid restoring 500GB of data for the 500*MB* I
actually
  need!  :)

 It should be *fairly* simple to patch BackupPC_tarCreate for the simple
case
 you need. A more general case would add an option and include correct
handling
 of hardlinks and symlinks. In sub TarWriteFile, after the calculation of
 $tarPath and before the big file type if (line 455 in the 3.3.0
source),
 I'd add

   return
 if $hdr-{type} != BPC_FTYPE_DIR and $tarPath !~ /\.pdf$/i;

 (omit the i modifier if you really only mean lowercase pdf). Note
that
 this is once again completely untested ;-).

 Hope that helps.

 Regards,
 Holger


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate with only certain types of files

2015-05-23 Thread Holger Parplies
Hi,

Timothy J Massey wrote on 2015-05-22 20:40:52 -0400 [Re: [BackupPC-users] 
BackupPC_tarCreate with only certain types of?files]:
 Les Mikesell lesmikes...@gmail.com wrote on 05/22/2015 04:24:56 PM:
 
   What am I missing?  How do I get BackupPC_tarCreate to create a 
   tar file that contains all PDF's stored in that path?
   [...]
  
  Can't help with BackupPC_tarCreate's wildcard concepts

I can: there are none. BackupPC_tarCreate gets a list of path names to include
in the tar. Each of these is looked up verbatim and included (with
substructure if it happens to be a directory).

 The problem is not that I couldn't figure out how to get the PDF's at all,
 but how I could avoid restoring 500GB of data for the 500*MB* I actually
 need!  :)

It should be *fairly* simple to patch BackupPC_tarCreate for the simple case
you need. A more general case would add an option and include correct handling
of hardlinks and symlinks. In sub TarWriteFile, after the calculation of
$tarPath and before the big file type if (line 455 in the 3.3.0 source),
I'd add

return
  if $hdr-{type} != BPC_FTYPE_DIR and $tarPath !~ /\.pdf$/i;

(omit the i modifier if you really only mean lowercase pdf). Note that
this is once again completely untested ;-).

Hope that helps.

Regards,
Holger

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate with only certain types of files

2015-05-23 Thread Holger Parplies
Hi,

Timothy J Massey wrote on 2015-05-23 08:40:21 -0400 [Re: [BackupPC-users] 
BackupPC_tarCreate with only certain types of?files]:
 [...]
 In this instance, I was able to come up with enough free space to be able
 to do the complete restore and then grab the data I needed from that.

for the archives: you don't strictly *need* the free space. You can pipe the
output of BackupPC_tarCreate directly into a 'tar x' and tell tar to only
extract files named '*.pdf', something like

BackupPC_tarCreate -h host -n 123 -s /share /path \
| tar xf - --wildcards '*.pdf' '*.PDF'

(just to demonstrate that you can specify more than one glob). This can be
problematic, in a way: if you get something wrong about the tar command line,
you will likely find out that the file(s) you were expecting were not
extracted, and you will need to repeat the whole lengthy process, whereas
with a complete restore, you can simply navigate the result and select
whatever you need.

This seems to be another good case for using the fuse module. You can navigate
the backup view (or run a 'find', 'rsync', ...) at a relatively low cost and
only need to read/decompress the file data you actually act on - and you don't
need any intermediate storage space.

Regards,
Holger

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate with only certain types of files

2015-05-22 Thread Les Mikesell
On Fri, May 22, 2015 at 2:02 PM, Timothy J Massey tmas...@obscorp.com wrote:

 Hello!

 I need to restore all PDF files from a particular backup share.  It's 30,000 
 files scattered around thousands of locations.  So, I was hoping to use 
 BackupPC_tarCreate to do it.  But I'm striking out.

 This works:

 ./BackupPC_tarCreate -l -h server -n 918 -s E /Shares/Shared

 But this does not:

 ./BackupPC_tarCreate -l -h server -n 918 -s E /Shares/Shared/*.pdf


 What am I missing?  How do I get BackupPC_tarCreate to create a tar file that 
 contains all PDF's stored in that path?

 Thank you very much for any support you can give me.  I've tried different 
 escapings/not-escapings etc to be able to achieve this and I'm out of ideas!  
 :)


Can't help with BackupPC_tarCreate's wildcard concepts but at the
expense of a lot of overhead you could let backuppc generate a tar of
the whole top-level directory (like your first command above) and
specify the '*.pdf' selection to the extracting tar to get what you
want.

-- 
   Les Mikesell
lesmikes...@gmail.com

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC_tarCreate with only certain types of files

2015-05-22 Thread Timothy J Massey
Les Mikesell lesmikes...@gmail.com wrote on 05/22/2015 04:24:56 PM:

  What am I missing?  How do I get BackupPC_tarCreate to create a 
 tar file that contains all PDF's stored in that path?
 
  Thank you very much for any support you can give me.  I've tried 
 different escapings/not-escapings etc to be able to achieve this and
 I'm out of ideas!  :)
 
 
 Can't help with BackupPC_tarCreate's wildcard concepts but at the
 expense of a lot of overhead you could let backuppc generate a tar of
 the whole top-level directory (like your first command above) and
 specify the '*.pdf' selection to the extracting tar to get what you
 want.

Yeah, that one I could figure out!  :)  The problem is not that I couldn't 
figure out how to get the PDF's at all, but how I could avoid restoring 
500GB of data for the 500*MB* I actually need!  :)

Tim Massey


 
Out of the Box Solutions, Inc. 
Creative IT Solutions Made Simple!
http://www.OutOfTheBoxSolutions.com
tmas...@obscorp.com 
 
22108 Harper Ave.
St. Clair Shores, MI 48080
Office: (800)750-4OBS (4627)
Cell: (586)945-8796 
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] BackupPC_tarCreate with only certain types of files

2015-05-22 Thread Timothy J Massey
Hello!

I need to restore all PDF files from a particular backup share.  It's 
30,000 files scattered around thousands of locations.  So, I was hoping to 
use BackupPC_tarCreate to do it.  But I'm striking out.

This works:

./BackupPC_tarCreate -l -h server -n 918 -s E /Shares/Shared

But this does not:

./BackupPC_tarCreate -l -h server -n 918 -s E /Shares/Shared/*.pdf


What am I missing?  How do I get BackupPC_tarCreate to create a tar file 
that contains all PDF's stored in that path?

Thank you very much for any support you can give me.  I've tried different 
escapings/not-escapings etc to be able to achieve this and I'm out of 
ideas!  :)

Tim Massey


 
Out of the Box Solutions, Inc. 
Creative IT Solutions Made Simple!
http://www.OutOfTheBoxSolutions.com
tmas...@obscorp.com 
 
22108 Harper Ave.
St. Clair Shores, MI 48080
Office: (800)750-4OBS (4627)
Cell: (586)945-8796 
--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/