3 /// @file downloadCDB.C
4 /// @brief Download a snapshot of the CDB to another folder
7 /// Usage: aliroot -b -q -l \
8 /// downloadCDB.C'(runno, "from", "to", "path")'
11 /// downloadCDB.C'(144991, "alien://folder=/alice/data/2011/OCDB", "local:///tmp/144991/OCDB")'
14 /// path="*/*/*" -> download everything
19 void downloadCDB(Int_t runnr,
22 const char* path="*/*/*")
24 AliCDBManager* man=AliCDBManager::Instance();
25 man->SetDefaultStorage(from);
27 AliCDBPath cdbpath(path);
28 man->GetAll(path, runnr);
33 cout << " Usage:" << endl;
34 cout << " aliroot -b -q -l \\" << endl;
35 cout << " downloadCDB.C'(runno, \"from\", \"to\", \"path\")'" << endl;
37 cout << " Examples:" << endl;
38 cout << " aliroot -b -q -l \\" << endl;
39 cout << " downloadCDB.C'(144991, \"alien://folder=/alice/data/2011/OCDB\", \"local:///tmp/144991/OCDB\")'" << endl;
41 cout << " Defaults" << endl;
42 cout << " path=\"*/*/*\" -> download everything" << endl;