Hi Gibran,

I'll try to answer your questions,

If you wanted to backup ALL repos in your multi-setup environment, the simply 
way is modify backup_include_a like this and just use backup_include_a:

+ /repository/

+ /db/

- /*

+ /repository/clear[1-46]/

- /repository/*
In this way, you'll backup all things under each clear* directory, include 
(files gold license) directory.

The include file must follow this example, from top level directory to the 
under level directory.

The reason I create two include files backup_include_a&b is the backup script 
use these files to control parallel run rysnc. If 1 include file, there will 1 
thread run rsync; If 2 include files, there will 2 thread parallel run rsync, 
there will be save half of backup time. But these 2 include files must not have 
overlapping directory.  So if you use backup_include_a&b can like this:

backup_include_a:

+ /repository/

+ /db/

- /*

+ /repository/clear[1-3]/

- /repository/*



backup_include_b:

+ /repository/

- /*

+ /repository/clear[46]/

- /repository/*


I think it's a good idea to use Hosts.conf file info to generate a simply 
backup_include_a&b files, but for now we didn't implement to use Hosts.conf.

Hope that helps.

Thanks,
Best Regards,
Vincent Ma(Ma Dong)

Hewlett-Packard Co.
IDD: +86 010 6564 5733
Email: [email protected]<mailto:[email protected]>


> I realize this isn't released yet for backing up and restoring but I had a

> question in regards to the script(s).

>

> I've started to test the backup scripts for Fossology that I grabbed from

> the SVN sourceforge server.

>

> In looking at the script I need to make changes to the backup_include_a&b

> files for my setup.

>

> If I wanted to backup ALL repos in my multi-setup environment, would I

> simply create an entry for?:

> *Server DB = localhost (clear5)

> Distributed Repo = clear 1/2/3/4/6/files*

>

> These are my repo locations:

> =====================

> gmarquez at san-clear5<http://fossology.org/mailman/listinfo/fossology>:~$ 
> sudo ls /srv/fossology/repository/*clear1*/files

> 00  03  06  09  0c  0f  12  15  18  1b  1e  21  24  27  2a  2d  30

> 01  04  07  0a  0d  10  13  16  19  1c  1f  22  25  28  2b  2e  31

> 02  05  08  0b  0e  11  14  17  1a  1d  20  23  26  29  2c  2f  32

> gmarquez at san-clear5<http://fossology.org/mailman/listinfo/fossology>:~$ 
> sudo ls /srv/fossology/repository/*clear2*/files

> 33  36  39  3c  3f  42  45  48  4b  4e  51  54  57  5a  5d  60  63

> 34  37  3a  3d  40  43  46  49  4c  4f  52  55  58  5b  5e  61  64

> 35  38  3b  3e  41  44  47  4a  4d  50  53  56  59  5c  5f  62  65

> gmarquez at san-clear5<http://fossology.org/mailman/listinfo/fossology>:~$ 
> sudo ls /srv/fossology/repository/*clear3*/files

> 66  69  6c  6f  72  75  78  7b  7e  81  84  87  8a  8d  90  93  96  99

> 67  6a  6d  70  73  76  79  7c  7f  82  85  88  8b  8e  91  94  97

> 68  6b  6e  71  74  77  7a  7d  80  83  86  89  8c  8f  92  95  98

> gmarquez at san-clear5<http://fossology.org/mailman/listinfo/fossology>:~$ 
> sudo ls /srv/fossology/repository/*clear4*/files

> 9a  9d  a0  a3  a6  a9  ac  af  b2  b5  b8  bb  be  c1  c4  c7  ca

> 9b  9e  a1  a4  a7  aa  ad  b0  b3  b6  b9  bc  bf  c2  c5  c8  cb

> 9c  9f  a2  a5  a8  ab  ae  b1  b4  b7  ba  bd  c0  c3  c6  c9  cc

> gmarquez at san-clear5<http://fossology.org/mailman/listinfo/fossology>:~$ 
> sudo ls /srv/fossology/repository/*clear6*/files

> cd  d0  d3  d6  d9  dc  df  e2  e5  e8  eb  ee  f1  f4  f7  fa  fd

> ce  d1  d4  d7  da  dd  e0  e3  e6  e9  ec  ef  f2  f5  f8  fb  fe

> cf  d2  d5  d8  db  de  e1  e4  e7  ea  ed  f0  f3  f6  f9  fc  ff

>

> Would there be any way to use Hosts.conf file [0-9]* info?

> Or seperated like so:

> ===============

> +/repository/clear1/files/

> +/repository/clear1/files/[0-9]*

> +/repository/clear2/files/

> +/repository/clear2/files/[0-9]*

> +/repository/clear3/files/

> +/repository/clear3/files/[0-9]*

> +/repository/clear4/files/

> +/repository/clear4/files/[0-9]*

> +/repository/clear6/files/

> +/repository/clear6/files/[0-9]*

>

> gmarquez at 
> san-clear5<http://fossology.org/mailman/listinfo/fossology>:~/Backup_Scripts/fossy_BackupScripts$
>  cat

> backup_include_a

> + /repository/

> + /db/

> - /*

> + /repository/localhost/

> - /repository/*

> + /repository/localhost/files/

> - /repository/localhost/*

> + /repository/localhost/files/[0-9]*

> - /repository/localhost/files/*

>

> gmarquez at 
> san-clear5<http://fossology.org/mailman/listinfo/fossology>:~/Backup_Scripts/fossy_BackupScripts$
>  cat

> backup_include_b

> + /repository/

> - /*

> + /repository/localhost/

> - /repository/*

> + /repository/localhost/files/

> + /repository/localhost/gold/

> - /repository/localhost/*

> + /repository/localhost/files/[a-f]*

> - /repository/localhost/files/*

>

> -Regards,

> Gibran
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology

Reply via email to