Re: Understanding disklist format
On Sun, 16 Feb 2014 14:00:01 -0500 Jon LaBadie wrote: > On Sun, Feb 16, 2014 at 03:29:03PM +0100, Charles Stroom wrote: > > I am now running my compiled 3.3.5 amanda on opensuse 13.1 and have > > reformatted my disklist. I have difficulties to understand what > > will be, or what will be not included. To take an example, i have a > > directory /home/charles/pictures. It contains sub-directories for > > a few cameras I have/had and a miscellany of smaller directories > > and files. > > " > > charles@fiume:~> du -sk pictures/ > > 18292984pictures/ > > > > du -sk pictures/Canon_800IS/ pictures/Canon_G2 > > 6926988 pictures/Canon_800IS/ > > 6294604 pictures/Canon_G2 > > " > .. .[deleted] .. .. > > >>> End of included message <<< > > Get rid of the include ./* and start all 3 from same directory. > > Consider this setup. Note, an include implies exclude all else. > > fiume.localnet Pictures_G2 /home/charles/pictures { > # > # pictures in the Canon_G2 directory ~7Gb > # > nocomp-generic > include "./Canon_G2" > } 2 > > fiume.localnet Pictures_800IS /home/charles/pictures { > # > # pictures in the Canon_800IS directory ~7Gb > # > nocomp-generic > include "./Canon_800IS" > } 2 > > fiume.localnet Pictures_rest /home/charles/pictures { > # > # all other pictures in the directory > # > nocomp-generic > exclude "./Canon_800IS/*" > exclude "./Canon_G2/*" > } 2 > > Jon > -- > Jon H. LaBadie j...@jgcomp.com > 11226 South Shore Rd. (703) 787-0688 (H) > Reston, VA 20190 (609) 477-8330 (C) I have done so, and at the same time, use the exclude append and removed the trailing /* and the result now seems ok, at least the size of the dumps in the workspace corresponds to my estimation (backup still running). You said that "an include implies exclude all else", this clarifies some behaviour. But I have 1 DLE with multiple "includes": " fiume.localnet Vbox/home/charles { # # Virtualbox elements # generic include "./.Virtualbox" include "./vbox" } 2 " Will that work? Or is there an equivalent "include append" required? Many thanks, Charles -- Charles Stroom email: charles at no-spam.stremen.xs4all.nl (remove the "no-spam.")
Re: Understanding disklist format
On Sun, Feb 16, 2014 at 03:29:03PM +0100, Charles Stroom wrote: > I am now running my compiled 3.3.5 amanda on opensuse 13.1 and have > reformatted my disklist. I have difficulties to understand what will be, or > what will be not included. To take an example, i have a directory > /home/charles/pictures. It contains sub-directories for a > few cameras I have/had and a miscellany of smaller directories and > files. > " > charles@fiume:~> du -sk pictures/ > 18292984pictures/ > du -sk pictures/Canon_800IS/ pictures/Canon_G2 > 6926988 pictures/Canon_800IS/ > 6294604 pictures/Canon_G2 > " > > I wanted to have Canon_G2 and Canon_800IS in a separate DLE and all the > rest in another DLE, which would then become ~7Gb, ~7Gb and 4~Gb large. > > In my disklist I have for these 3 DLEs: > " > fiume.localnet Pictures_G2 /home/charles/pictures/Canon_G2 { > # > # pictures in the Canon_G2 directory ~7Gb > # > nocomp-generic > include "./*" > } 2 > > fiume.localnet Pictures_800IS /home/charles/pictures/Canon_800IS { > # > # pictures in the Canon_800IS directory ~7Gb > # > nocomp-generic > include "./*" > } 2 > > fiume.localnet Pictures_rest /home/charles/pictures { > # > # all other pictures in the directory > # > nocomp-generic > include "./*" > exclude "./Canon_800IS/*" > exclude "./Canon_G2/*" > } 2 > " > > My first backup failed (my dds4 tape is too small for a full backup > first time), but when I looked at /amanda/dumps/20140216111623/ > what was left, I noticed: > " > fiume:/ # ll /work/amanda/dumps/20140216111623/ > total 18923752 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:52 > fiume.localnet.Pictures_800IS.0 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:48 > fiume.localnet.Pictures_800IS.0.1 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:49 > fiume.localnet.Pictures_800IS.0.2 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:50 > fiume.localnet.Pictures_800IS.0.3 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:51 > fiume.localnet.Pictures_800IS.0.4 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:52 > fiume.localnet.Pictures_800IS.0.5 > -rw--- 1 amanda amanda 650801152 Feb 16 14:52 > fiume.localnet.Pictures_800IS.0.6 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:47 > fiume.localnet.Pictures_rest.0 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:39 > fiume.localnet.Pictures_rest.0.1 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:46 > fiume.localnet.Pictures_rest.0.10 > -rw--- 1 amanda amanda 473434112 Feb 16 14:47 > fiume.localnet.Pictures_rest.0.11 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:40 > fiume.localnet.Pictures_rest.0.2 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:40 > fiume.localnet.Pictures_rest.0.3 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:41 > fiume.localnet.Pictures_rest.0.4 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:42 > fiume.localnet.Pictures_rest.0.5 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:43 > fiume.localnet.Pictures_rest.0.6 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:44 > fiume.localnet.Pictures_rest.0.7 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:44 > fiume.localnet.Pictures_rest.0.8 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:45 > fiume.localnet.Pictures_rest.0.9 > > " > > not very clear in this layout, but fiume.localnet.Pictures_rest alone > totals to more than 11Gb, while it should only have ~4Gb. > Do I not understand the disklist format? What is wrong? > > > > > But I have a few more disklist questions: > example 1 > > fiume.localnet test1 /home/charles { > generic > } > > will this include ALL under /home/charles? > > example 2 > fiume.localnet test2 /home/charles { > generic > include "./*" > } > > is this in fact the same as example 1? All under /home/charles will > be included? > > example 3 > fiume.localnet test2 /home/charles { > generic > include "./big" > } > > Will this include all under /home/charles or ONLY all under > /home/charles/big? > > The manuals are not very clear, the 3rd parameter ("/home/charles") > is called "diskdevice", but my understanding is that it can be any > point in the file tree of the system. Correct? > Disklist also makes no distinction between different file systems, > I think? For example, in example 2, subdirectory "big" would be > included even if on a different file system (or LV or partion). > Correct? > The 2nd parameter (e.g. "test2") is an arbitrary label, although > it is called "diskname". Correct? > > Thanks Charles > > > > > -- > Charles Stroom > email: charles at no-spam.stremen.xs4all.nl (remove the "no-spam.") >>> End of included message <<< Get rid of the include ./* and start all 3 from same directory. Consider this setup. Note, an include implies exclude all else. fiume.localnet Pictures_G2 /home/charles/pictures { # # pictures in the Canon_G2 directory ~7Gb # nocomp-generic include "./Canon_G2"
Re: Understanding disklist format
I will give it a second try, with 2 modifications: - all 2nd and following "exclude"s are now "exclude append" - all patterns start with "./" and have no other "/" I found this in a 2007 user manual describing 2.5.0. Will see what this will give. Is there a more recent issue? To Gerrit: no, apparently include -> exclude is the right order, looking at examples so far. Trying to find confirmation, pointed to the points above. Thanks. Regards, Charles On Sun, 16 Feb 2014 15:29:03 +0100 Charles Stroom wrote: > I am now running my compiled 3.3.5 amanda on opensuse 13.1 and have > reformatted my disklist. I have difficulties to understand what will > be, or what will be not included. To take an example, i have a > directory /home/charles/pictures. It contains sub-directories for a > few cameras I have/had and a miscellany of smaller directories and > files. " charles@fiume:~> du -sk pictures/ > 18292984pictures/ > du -sk pictures/Canon_800IS/ pictures/Canon_G2 > 6926988 pictures/Canon_800IS/ > 6294604 pictures/Canon_G2 > " > > I wanted to have Canon_G2 and Canon_800IS in a separate DLE and all > the rest in another DLE, which would then become ~7Gb, ~7Gb and 4~Gb > large. > > In my disklist I have for these 3 DLEs: > " > fiume.localnet Pictures_G2 /home/charles/pictures/Canon_G2 { > # > # pictures in the Canon_G2 directory ~7Gb > # > nocomp-generic > include "./*" > } 2 > > fiume.localnet Pictures_800IS /home/charles/pictures/Canon_800IS { > # > # pictures in the Canon_800IS directory ~7Gb > # > nocomp-generic > include "./*" > } 2 > > fiume.localnet Pictures_rest /home/charles/pictures { > # > # all other pictures in the directory > # > nocomp-generic > include "./*" > exclude "./Canon_800IS/*" > exclude "./Canon_G2/*" > } 2 > " > > My first backup failed (my dds4 tape is too small for a full backup > first time), but when I looked at /amanda/dumps/20140216111623/ > what was left, I noticed: > " > fiume:/ # ll /work/amanda/dumps/20140216111623/ > total 18923752 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:52 > fiume.localnet.Pictures_800IS.0 -rw--- 1 amanda amanda 1073741824 > Feb 16 14:48 fiume.localnet.Pictures_800IS.0.1 -rw--- 1 amanda > amanda 1073741824 Feb 16 14:49 fiume.localnet.Pictures_800IS.0.2 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:50 > fiume.localnet.Pictures_800IS.0.3 -rw--- 1 amanda amanda > 1073741824 Feb 16 14:51 fiume.localnet.Pictures_800IS.0.4 -rw--- > 1 amanda amanda 1073741824 Feb 16 14:52 > fiume.localnet.Pictures_800IS.0.5 -rw--- 1 amanda amanda > 650801152 Feb 16 14:52 fiume.localnet.Pictures_800IS.0.6 -rw--- 1 > amanda amanda 1073741824 Feb 16 14:47 fiume.localnet.Pictures_rest.0 > -rw--- 1 amanda amanda 1073741824 Feb 16 14:39 > fiume.localnet.Pictures_rest.0.1 -rw--- 1 amanda amanda > 1073741824 Feb 16 14:46 fiume.localnet.Pictures_rest.0.10 -rw--- > 1 amanda amanda 473434112 Feb 16 14:47 > fiume.localnet.Pictures_rest.0.11 -rw--- 1 amanda amanda > 1073741824 Feb 16 14:40 fiume.localnet.Pictures_rest.0.2 -rw--- 1 > amanda amanda 1073741824 Feb 16 14:40 > fiume.localnet.Pictures_rest.0.3 -rw--- 1 amanda amanda > 1073741824 Feb 16 14:41 fiume.localnet.Pictures_rest.0.4 -rw--- 1 > amanda amanda 1073741824 Feb 16 14:42 > fiume.localnet.Pictures_rest.0.5 -rw--- 1 amanda amanda > 1073741824 Feb 16 14:43 fiume.localnet.Pictures_rest.0.6 -rw--- 1 > amanda amanda 1073741824 Feb 16 14:44 > fiume.localnet.Pictures_rest.0.7 -rw--- 1 amanda amanda > 1073741824 Feb 16 14:44 fiume.localnet.Pictures_rest.0.8 -rw--- 1 > amanda amanda 1073741824 Feb 16 14:45 fiume.localnet.Pictures_rest.0.9 > > " > > not very clear in this layout, but fiume.localnet.Pictures_rest alone > totals to more than 11Gb, while it should only have ~4Gb. > Do I not understand the disklist format? What is wrong? > > > > > But I have a few more disklist questions: > example 1 > > fiume.localnet test1 /home/charles { > generic > } > > will this include ALL under /home/charles? > > example 2 > fiume.localnet test2 /home/charles { > generic > include "./*" > } > > is this in fact the same as example 1? All under /home/charles will > be included? > > example 3 > fiume.localnet test2 /home/charles { > generic > include "./big" > } > > Will this include all under /home/charles or ONLY all under > /home/charles/big? > > The manuals are not very clear, the 3rd parameter ("/home/charles") > is called "diskdevice", but my understanding is that it can be any > point in the file tree of the system. Correct? > Disklist also makes no distinction between different file systems, > I think? For example, in example 2, subdirectory "big" would be > included even if on a different file system (or LV or partion). > Correct? > The 2nd parameter (e.g. "test2") is an arbitrary label, although > it is called "diskname". Correct? > > Thanks Charles >
Re: Understanding disklist format
Charles Stroom schreef op 16-02-14 15:29: > include "./*" > exclude "./Canon_800IS/*" > exclude "./Canon_G2/*" Maybe you need to exclude first? Met vriendelijke groeten, AT COMPUTING Gerrit A. Smit Beheer Technische Infrastructuur -- AT Computing Telefoon: +31 24 352 72 22 Linux/UNIXperts, Telefoon cursussecretariaat: +31 24 352 72 72 opleiders & oplossers Fax: +31 24 352 72 92 Kerkenbos 12-38 t...@atcomputing.nl 6546 BE Nijmegen www.atcomputing.nl Nieuw bij AT Computing: onze Linux Reference Card nu ook als gratis app!
Understanding disklist format
I am now running my compiled 3.3.5 amanda on opensuse 13.1 and have reformatted my disklist. I have difficulties to understand what will be, or what will be not included. To take an example, i have a directory /home/charles/pictures. It contains sub-directories for a few cameras I have/had and a miscellany of smaller directories and files. " charles@fiume:~> du -sk pictures/ 18292984pictures/ du -sk pictures/Canon_800IS/ pictures/Canon_G2 6926988 pictures/Canon_800IS/ 6294604 pictures/Canon_G2 " I wanted to have Canon_G2 and Canon_800IS in a separate DLE and all the rest in another DLE, which would then become ~7Gb, ~7Gb and 4~Gb large. In my disklist I have for these 3 DLEs: " fiume.localnet Pictures_G2 /home/charles/pictures/Canon_G2 { # # pictures in the Canon_G2 directory ~7Gb # nocomp-generic include "./*" } 2 fiume.localnet Pictures_800IS /home/charles/pictures/Canon_800IS { # # pictures in the Canon_800IS directory ~7Gb # nocomp-generic include "./*" } 2 fiume.localnet Pictures_rest /home/charles/pictures { # # all other pictures in the directory # nocomp-generic include "./*" exclude "./Canon_800IS/*" exclude "./Canon_G2/*" } 2 " My first backup failed (my dds4 tape is too small for a full backup first time), but when I looked at /amanda/dumps/20140216111623/ what was left, I noticed: " fiume:/ # ll /work/amanda/dumps/20140216111623/ total 18923752 -rw--- 1 amanda amanda 1073741824 Feb 16 14:52 fiume.localnet.Pictures_800IS.0 -rw--- 1 amanda amanda 1073741824 Feb 16 14:48 fiume.localnet.Pictures_800IS.0.1 -rw--- 1 amanda amanda 1073741824 Feb 16 14:49 fiume.localnet.Pictures_800IS.0.2 -rw--- 1 amanda amanda 1073741824 Feb 16 14:50 fiume.localnet.Pictures_800IS.0.3 -rw--- 1 amanda amanda 1073741824 Feb 16 14:51 fiume.localnet.Pictures_800IS.0.4 -rw--- 1 amanda amanda 1073741824 Feb 16 14:52 fiume.localnet.Pictures_800IS.0.5 -rw--- 1 amanda amanda 650801152 Feb 16 14:52 fiume.localnet.Pictures_800IS.0.6 -rw--- 1 amanda amanda 1073741824 Feb 16 14:47 fiume.localnet.Pictures_rest.0 -rw--- 1 amanda amanda 1073741824 Feb 16 14:39 fiume.localnet.Pictures_rest.0.1 -rw--- 1 amanda amanda 1073741824 Feb 16 14:46 fiume.localnet.Pictures_rest.0.10 -rw--- 1 amanda amanda 473434112 Feb 16 14:47 fiume.localnet.Pictures_rest.0.11 -rw--- 1 amanda amanda 1073741824 Feb 16 14:40 fiume.localnet.Pictures_rest.0.2 -rw--- 1 amanda amanda 1073741824 Feb 16 14:40 fiume.localnet.Pictures_rest.0.3 -rw--- 1 amanda amanda 1073741824 Feb 16 14:41 fiume.localnet.Pictures_rest.0.4 -rw--- 1 amanda amanda 1073741824 Feb 16 14:42 fiume.localnet.Pictures_rest.0.5 -rw--- 1 amanda amanda 1073741824 Feb 16 14:43 fiume.localnet.Pictures_rest.0.6 -rw--- 1 amanda amanda 1073741824 Feb 16 14:44 fiume.localnet.Pictures_rest.0.7 -rw--- 1 amanda amanda 1073741824 Feb 16 14:44 fiume.localnet.Pictures_rest.0.8 -rw--- 1 amanda amanda 1073741824 Feb 16 14:45 fiume.localnet.Pictures_rest.0.9 " not very clear in this layout, but fiume.localnet.Pictures_rest alone totals to more than 11Gb, while it should only have ~4Gb. Do I not understand the disklist format? What is wrong? But I have a few more disklist questions: example 1 fiume.localnet test1 /home/charles { generic } will this include ALL under /home/charles? example 2 fiume.localnet test2 /home/charles { generic include "./*" } is this in fact the same as example 1? All under /home/charles will be included? example 3 fiume.localnet test2 /home/charles { generic include "./big" } Will this include all under /home/charles or ONLY all under /home/charles/big? The manuals are not very clear, the 3rd parameter ("/home/charles") is called "diskdevice", but my understanding is that it can be any point in the file tree of the system. Correct? Disklist also makes no distinction between different file systems, I think? For example, in example 2, subdirectory "big" would be included even if on a different file system (or LV or partion). Correct? The 2nd parameter (e.g. "test2") is an arbitrary label, although it is called "diskname". Correct? Thanks Charles -- Charles Stroom email: charles at no-spam.stremen.xs4all.nl (remove the "no-spam.")