Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
b57880c3
Commit
b57880c3
authored
Oct 28, 2019
by
Giuseppe Lo Presti
Browse files
[migration] more renames (#644)
parent
e7b6c977
Changes
4
Hide whitespace changes
Inline
Side-by-side
cta.spec.in
View file @
b57880c3
...
@@ -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(0
755
,root,root) %{_bindir}/
start
voexport.sh
%attr(0
644
,root,root) %{_bindir}/
begin_
vo
_
export
_to_cta
.sh
%attr(0
755
,root,root) %{_bindir}/export_production_tapepool_to_cta.sh
%attr(0
644
,root,root) %{_bindir}/export_production_tapepool_to_cta.sh
%attr(0
755
,root,root) %{_bindir}/vmgr_reenable_tapepool.sh
%attr(0
644
,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
...
...
migration/castor/CMakeLists.txt
View file @
b57880c3
...
@@ -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/
start
voexport.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
...
...
migration/castor/
start
voexport.sh
→
migration/castor/
begin_
vo
_
export
_to_cta
.sh
100755 → 100644
View file @
b57880c3
#!/bin/bash
#!/bin/bash
#/******************************************************************************
#/******************************************************************************
# *
start
voexport.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 en
ables dry-run mode'
echo
'
first option enables or dis
ables dry-run mode'
exit
1
exit
1
}
}
...
@@ -41,8 +43,9 @@ fi
...
@@ -41,8 +43,9 @@ 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
;;
*
)
break
;;
--doit
)
doit
=
1
;
shift
;;
*
)
break
;;
esac
esac
done
done
if
[[
"
$@
"
==
""
]]
;
then
if
[[
"
$@
"
==
""
]]
;
then
...
@@ -50,7 +53,7 @@ if [[ "$@" == "" ]]; then
...
@@ -50,7 +53,7 @@ if [[ "$@" == "" ]]; then
fi
fi
# if NOT dry-run
# if NOT dry-run
if
[[
"
$d
ryrun
"
==
""
]]
;
then
if
[[
"
$d
oit
"
==
"
1
"
]]
;
then
# backup relevant metadata from the stager
# backup relevant metadata from the stager
mkdir
-p
~/ctaexport
mkdir
-p
~/ctaexport
...
...
migration/castor/vmgr_reenable_tapepool.sh
100755 → 100644
View file @
b57880c3
File mode changed from 100755 to 100644
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment