Re: [Bacula-users] FileSet estimate listing sorting
On Wed, 26 Sep 2018 15:51:20 +0200 Tilman Schmidt wrote: > Just try it. OK. Thanks. -- George ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
Am 26.09.2018 um 15:36 schrieb George Anchev via Bacula-users: > On Wed, 26 Sep 2018 14:08:22 +0200 Radosław > Korzeniewski wrote: > >> $ man sort >> $ man grep > > I am not completely new to those but don't know how to > sort e.g. by full path name while still preserving the > data before it (as listed by 'estimate listing'). That's why Radosław directed you to the manpage of the sort(1) command. If you read it you'll find it contains an extensive description of how to select the part of the input lines by which they should be sorted. Just try it. ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
On Wed, 26 Sep 2018 14:08:22 +0200 Radosław Korzeniewski wrote: > $ man sort > $ man grep I am not completely new to those but don't know how to sort e.g. by full path name while still preserving the data before it (as listed by 'estimate listing'). Surely eliminating the dates and permissions would allow that but I still want to see all the data for each file. -- George ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
Hello, wt., 25 wrz 2018 o 17:19 George Anchev via Bacula-users < bacula-users@lists.sourceforge.net> napisał(a): > On Tue, 25 Sep 2018 14:38:27 +0200 Radosław > Korzeniewski wrote: > > > Possibilities are endless and limited by your > > imagination. > > Actually by my lack of knowledge (otherwise I wouldn't > really ask). I know how to filter things a little bit > with sed + regex but I am not sure for example how to > sort by full path name preserving all the other > columns displayed by `estimate listing`. I suppose > that is out of the scope of the current mailing list. > to sort: $ man sort to filer by regex: $ man grep to make a single line batch use '|' best regards -- Radosław Korzeniewski rados...@korzeniewski.net ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
On Tue, 25 Sep 2018 14:38:27 +0200 Radosław Korzeniewski wrote: > Possibilities are endless and limited by your > imagination. Actually by my lack of knowledge (otherwise I wouldn't really ask). I know how to filter things a little bit with sed + regex but I am not sure for example how to sort by full path name preserving all the other columns displayed by `estimate listing`. I suppose that is out of the scope of the current mailing list. -- George ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
Hello, wt., 25 wrz 2018 o 10:54 George Anchev via Bacula-users < bacula-users@lists.sourceforge.net> napisał(a): > On Mon, 24 Sep 2018 19:19:42 -0400 Dan Langille wrote: > > > What use cases exist for sorting the estimate? > > I don't know. Personally I would like to be able to > sort by general file system attributes: > > - file name > - full path name > - date (ctime, mtime, maybe also "last backed up") > - (perhaps also): permissions/acl, xattr > > It is extremely simpler to make a sort outside then inside Bacula. Sorting inside Bacula would consume resources which is not what you want. External sorting require some additional scripting which you can do in a few minutes then you can add some filtering if you wish. You can even load all estimation data to database and do sorting, filtering, aggregation, etc. Possibilities are endless and limited by your imagination. Developing this kind of functionality inside Bacula require a lot of effort and time. If you want to contribute a such functionality, you are welcome. best regards -- Radosław Korzeniewski rados...@korzeniewski.net ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
On Mon, 24 Sep 2018 19:19:42 -0400 Dan Langille wrote: > What use cases exist for sorting the estimate? I don't know. Personally I would like to be able to sort by general file system attributes: - file name - full path name - date (ctime, mtime, maybe also "last backed up") - (perhaps also): permissions/acl, xattr -- George ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
> On Sep 23, 2018, at 5:27 AM, George Anchev via Bacula-users > wrote: > > On Sun, 23 Sep 2018 10:42:20 +0200 Kern Sibbald wrote: > >> Direct the output the estimate listing to a file, >> then sort it any way you want. > > I actually do this but I am afraid it is not that > simple because sorting it e.g. by filename (including > path) or by date would require additional scripting. > Hence the whole question. > > I was hoping that the listing could be sorted by > Bacula itself. What use cases exist for sorting the estimate? ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
On Sun, 23 Sep 2018 10:42:20 +0200 Kern Sibbald wrote: > Direct the output the estimate listing to a file, > then sort it any way you want. I actually do this but I am afraid it is not that simple because sorting it e.g. by filename (including path) or by date would require additional scripting. Hence the whole question. I was hoping that the listing could be sorted by Bacula itself. -- George ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] FileSet estimate listing sorting
Hello, Direct the output the estimate listing to a file, then sort it any way you want. Best regards, Kern On 09/22/2018 11:00 AM, George via Bacula-users wrote: Hi, I can't understand how the list of files output by estimate listing are sorted. They are neither sorted by their date, nor by their (path)name. Is there a way to tell Bacula to sort them in a particular way? Or (if not) does anyone else think that it would be a useful feature? ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] FileSet estimate listing sorting
Hi, I can't understand how the list of files output by estimate listing are sorted. They are neither sorted by their date, nor by their (path)name. Is there a way to tell Bacula to sort them in a particular way? Or (if not) does anyone else think that it would be a useful feature? -- George ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users