Re: [BackupPC-users] Get a file list via command line?
Hello Holger, thank you very much für your reply and your work. Holger Parplies wrote: > Hi, > > Dirk asked on 29.03.2007 at 05:50:09 [Re: [BackupPC-users] Get a file list > via command line?]: >> Dirk wrote: >>> Holger Parplies wrote: >>>> Dirk wrote on 18.02.2007 at 09:33:51 [[BackupPC-users] Get a file list via >>>> command line?]: >>>> For a filled view including attributes it's probably a bit more >>>> complicated. If you need that and can wait a few days, I'd be willing to >>>> hack something together. >>> That would be great! >>> I think it is always useful to have some kind of >>> >>> lsbackuppc -h HOST -n DUMPNUM -s SHARE PATH... >>> >> any news about this issue? > > sorry, no, but I haven't forgotten it. I'm currently not finding much time > for BackupPC stuff. It's not the only thing I promised someone that I > haven't gotten around to yet :(. The "few days" were a bit optimistic, I > guess, but you didn't sound as if it was urgent. No, it was not urgent. But in the meantime... :-) But I don't want to hurry you in any way. I am happy about anything you do. > > Several people have asked about searching for files in backups. I guess that > could be integrated (maybe as '-f regexp' option), and a '-l' for listing > file attributes might come in handy too. On the other hand, a BackupPC_find > approach for searching could equally be used to list all files (with -print > for names only or -ls for stats). It would be far more powerful, but the Yes, you're right. This would be fine for me, too. Dirk - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Get a file list via command line?
Holger Parplies wrote: > Hi, > > Dirk asked on 29.03.2007 at 05:50:09 [Re: [BackupPC-users] Get a file list > via command line?]: >> Dirk wrote: >>> Holger Parplies wrote: >>>> Dirk wrote on 18.02.2007 at 09:33:51 [[BackupPC-users] Get a file list via >>>> command line?]: >>>> For a filled view including attributes it's probably a bit more >>>> complicated. If you need that and can wait a few days, I'd be willing to >>>> hack something together. >>> That would be great! >>> I think it is always useful to have some kind of >>> >>> lsbackuppc -h HOST -n DUMPNUM -s SHARE PATH... >>> >> any news about this issue? > > sorry, no, but I haven't forgotten it. I'm currently not finding much time > for BackupPC stuff. It's not the only thing I promised someone that I > haven't gotten around to yet :(. The "few days" were a bit optimistic, I > guess, but you didn't sound as if it was urgent. > > Several people have asked about searching for files in backups. I guess that > could be integrated (maybe as '-f regexp' option), and a '-l' for listing > file attributes might come in handy too. On the other hand, a BackupPC_find > approach for searching could equally be used to list all files (with -print > for names only or -ls for stats). It would be far more powerful, but the > option parsing sounds rather complicated (unless it can be copied from > find2perl). There could even be an option '-zexec' for executing a command > on an uncompressed copy of the file in question. Suggestions welcome. If you haven't intentionally turned off the 'locate' nightly indexing update because it is too big you can probably just 'locate filename' and mentally adjust the name mangling to see where you have copies of what you want. That will miss anything updated after the night's run, but its faster than anything else will be. -- Les Mikesell [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Get a file list via command line?
Hi, Dirk asked on 29.03.2007 at 05:50:09 [Re: [BackupPC-users] Get a file list via command line?]: > Dirk wrote: > > Holger Parplies wrote: > >> Dirk wrote on 18.02.2007 at 09:33:51 [[BackupPC-users] Get a file list via > >> command line?]: > >> For a filled view including attributes it's probably a bit more > >> complicated. If you need that and can wait a few days, I'd be willing to > >> hack something together. > > > > That would be great! > > I think it is always useful to have some kind of > > > > lsbackuppc -h HOST -n DUMPNUM -s SHARE PATH... > > > > any news about this issue? sorry, no, but I haven't forgotten it. I'm currently not finding much time for BackupPC stuff. It's not the only thing I promised someone that I haven't gotten around to yet :(. The "few days" were a bit optimistic, I guess, but you didn't sound as if it was urgent. Several people have asked about searching for files in backups. I guess that could be integrated (maybe as '-f regexp' option), and a '-l' for listing file attributes might come in handy too. On the other hand, a BackupPC_find approach for searching could equally be used to list all files (with -print for names only or -ls for stats). It would be far more powerful, but the option parsing sounds rather complicated (unless it can be copied from find2perl). There could even be an option '-zexec' for executing a command on an uncompressed copy of the file in question. Suggestions welcome. Regards, Holger - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Get a file list via command line?
Hello Holger any news about this issue? Thank you, Dirk Dirk wrote: > Hi Holger, > > thank you very much for your reply. > > Holger Parplies wrote: > >> Hi, >> >> Dirk wrote on 18.02.2007 at 09:33:51 [[BackupPC-users] Get a file list via >> command line?]: >> >>> how can I get a list of backed up files via the command line? >>> > ... > >> indeed. If you're happy with an unfilled view (i.e. you only need to see the >> changed files in the backup (or all files in case of a full backup or filled >> incremental)), try something like >> >> % cd /var/lib/backuppc/pc/hostname/backupnum >> % find . -type f -name f\* -print | perl -I /usr/share/backuppc/lib \ >> -MBackupPC::Lib -pe 'BEGIN { $bpc = new BackupPC::Lib; } >>$_ = $bpc -> fileNameUnmangle ($_);' >> >> (change the two paths to match your setup). >> > > This actually works for my current purpose (I would like to send daily > eMails containing the changes in a filesystem - so one notices unwanted, > accidental changes.) Thank you. > > >> This also does not show file attributes (but you didn't say you wanted >> them). For a filled view including attributes it's probably a bit more >> complicated. If you need that and can wait a few days, I'd be willing to >> hack something together. >> > > That would be great! > I think it is always useful to have some kind of > > lsbackuppc -h HOST -n DUMPNUM -s SHARE PATH... > > > Dirk > > > >> Regards, >> Holger >> - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Get a file list via command line?
Hi Holger, thank you very much for your reply. Holger Parplies wrote: > Hi, > > Dirk wrote on 18.02.2007 at 09:33:51 [[BackupPC-users] Get a file list via > command line?]: >> how can I get a list of backed up files via the command line? ... > indeed. If you're happy with an unfilled view (i.e. you only need to see the > changed files in the backup (or all files in case of a full backup or filled > incremental)), try something like > > % cd /var/lib/backuppc/pc/hostname/backupnum > % find . -type f -name f\* -print | perl -I /usr/share/backuppc/lib \ > -MBackupPC::Lib -pe 'BEGIN { $bpc = new BackupPC::Lib; } >$_ = $bpc -> fileNameUnmangle ($_);' > > (change the two paths to match your setup). This actually works for my current purpose (I would like to send daily eMails containing the changes in a filesystem - so one notices unwanted, accidental changes.) Thank you. > This also does not show file attributes (but you didn't say you wanted > them). For a filled view including attributes it's probably a bit more > complicated. If you need that and can wait a few days, I'd be willing to > hack something together. That would be great! I think it is always useful to have some kind of lsbackuppc -h HOST -n DUMPNUM -s SHARE PATH... Dirk > > Regards, > Holger - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
Re: [BackupPC-users] Get a file list via command line?
Hi, Dirk wrote on 18.02.2007 at 09:33:51 [[BackupPC-users] Get a file list via command line?]: > > how can I get a list of backed up files via the command line? > Currently I use > > /usr/local/BackupPC/bin/BackupPC_tarCreate -h amaretto_fotos -n -1 -s > Fotos . \ > | tar tf - > > But this is quite slow. Is there a better/faster way? indeed. If you're happy with an unfilled view (i.e. you only need to see the changed files in the backup (or all files in case of a full backup or filled incremental)), try something like % cd /var/lib/backuppc/pc/hostname/backupnum % find . -type f -name f\* -print | perl -I /usr/share/backuppc/lib \ -MBackupPC::Lib -pe 'BEGIN { $bpc = new BackupPC::Lib; } $_ = $bpc -> fileNameUnmangle ($_);' (change the two paths to match your setup). This also does not show file attributes (but you didn't say you wanted them). For a filled view including attributes it's probably a bit more complicated. If you need that and can wait a few days, I'd be willing to hack something together. Regards, Holger - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
[BackupPC-users] Get a file list via command line?
Hello, how can I get a list of backed up files via the command line? Currently I use /usr/local/BackupPC/bin/BackupPC_tarCreate -h amaretto_fotos -n -1 -s Fotos . \ | tar tf - But this is quite slow. Is there a better/faster way? Thank you, Dirk - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/