Commit b57880c3 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

[migration] more renames (#644)

parent e7b6c977
...@@ -316,9 +316,9 @@ directory metadata into the EOS namespace. ...@@ -316,9 +316,9 @@ directory metadata into the EOS namespace.
%attr(0755,root,root) %{_bindir}/eos-test-dir-inject %attr(0755,root,root) %{_bindir}/eos-test-dir-inject
%attr(0755,root,root) %{_bindir}/eos-test-file-inject %attr(0755,root,root) %{_bindir}/eos-test-file-inject
%attr(0755,root,root) %{_bindir}/json-pretty-print.sh %attr(0755,root,root) %{_bindir}/json-pretty-print.sh
%attr(0755,root,root) %{_bindir}/startvoexport.sh %attr(0644,root,root) %{_bindir}/begin_vo_export_to_cta.sh
%attr(0755,root,root) %{_bindir}/export_production_tapepool_to_cta.sh %attr(0644,root,root) %{_bindir}/export_production_tapepool_to_cta.sh
%attr(0755,root,root) %{_bindir}/vmgr_reenable_tapepool.sh %attr(0644,root,root) %{_bindir}/vmgr_reenable_tapepool.sh
%attr(0755,root,root) %{_bindir}/tapepool_castor_to_cta.py %attr(0755,root,root) %{_bindir}/tapepool_castor_to_cta.py
%attr(0755,root,root) %{_bindir}/complete_tapepool_export.py %attr(0755,root,root) %{_bindir}/complete_tapepool_export.py
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/castor-migration.conf.example %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cta/castor-migration.conf.example
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
install(FILES install(FILES
${CMAKE_SOURCE_DIR}/migration/castor/startvoexport.sh ${CMAKE_SOURCE_DIR}/migration/castor/begin_vo_export_to_cta.sh
${CMAKE_SOURCE_DIR}/migration/castor/export_production_tapepool_to_cta.sh ${CMAKE_SOURCE_DIR}/migration/castor/export_production_tapepool_to_cta.sh
${CMAKE_SOURCE_DIR}/migration/castor/vmgr_reenable_tapepool.sh ${CMAKE_SOURCE_DIR}/migration/castor/vmgr_reenable_tapepool.sh
${CMAKE_SOURCE_DIR}/migration/castor/tapepool_castor_to_cta.py ${CMAKE_SOURCE_DIR}/migration/castor/tapepool_castor_to_cta.py
......
#!/bin/bash #!/bin/bash
#/****************************************************************************** #/******************************************************************************
# * startvoexport.sh # * begin_vo_export_to_cta.sh
# * # *
# * This file is part of the Castor/CTA project. # * This file is part of the Castor/CTA project.
# * See http://cern.ch/castor and http://cern.ch/eoscta # * See http://cern.ch/castor and http://cern.ch/eoscta
...@@ -18,8 +18,10 @@ ...@@ -18,8 +18,10 @@
# * along with this program; if not, write to the Free Software # * along with this program; if not, write to the Free Software
# * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# * # *
# * command line tool to prepare the export of all CASTOR directories below # * command line tool to start preparing the export of a given VO to CTA,
# * a given set of top-level paths to CTA, the CASTOR successor # * the CAStOR successor. The tool firstly stores away CASTOR's B/W lists and
# * removes them to lock the instance, and then issues an import of all
# * CASTOR directories below a given set of top-level paths.
# #
# * @author Castor Dev team, castor-dev@cern.ch # * @author Castor Dev team, castor-dev@cern.ch
# *****************************************************************************/ # *****************************************************************************/
...@@ -28,9 +30,9 @@ ...@@ -28,9 +30,9 @@
set -e set -e
print_usage() { print_usage() {
echo Usage: $0 [-d] dir1 dir2 ... echo Usage: $0 --dryrun|--doit dir1 dir2 ...
echo ' dir1 dir2 ... list of CASTOR top-level directories without prefix, e.g. /user' echo ' dir1 dir2 ... list of CASTOR top-level directories without prefix, e.g. /user'
echo ' -d enables dry-run mode' echo ' first option enables or disables dry-run mode'
exit 1 exit 1
} }
...@@ -41,7 +43,8 @@ fi ...@@ -41,7 +43,8 @@ fi
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
arg=$1 arg=$1
case $arg in case $arg in
-d) dryrun=1; shift;; --dryrun) doit=0; shift;;
--doit) doit=1; shift;;
*) break;; *) break;;
esac esac
done done
...@@ -50,7 +53,7 @@ if [[ "$@" == "" ]]; then ...@@ -50,7 +53,7 @@ if [[ "$@" == "" ]]; then
fi fi
# if NOT dry-run # if NOT dry-run
if [[ "$dryrun" == "" ]]; then if [[ "$doit" == "1" ]]; then
# backup relevant metadata from the stager # backup relevant metadata from the stager
mkdir -p ~/ctaexport mkdir -p ~/ctaexport
......
File mode changed from 100755 to 100644
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment