Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHEF
cookbooks
cernvm-fs
Commits
9c800f4d
Commit
9c800f4d
authored
Jan 16, 2014
by
Victor Penso
Browse files
don't preserve group/owner using rsync in cvmfs-remote
parent
e5066aca
Changes
1
Hide whitespace changes
Inline
Side-by-side
files/default/cvmfs-remote
View file @
9c800f4d
...
...
@@ -20,18 +20,34 @@ if [ "$#" -eq "2" ]; then
repo_name
=
$2
case
"
$1
"
in
publish
)
# Resign repository to make sure transaction works!
ssh
-qt
$repo_name
'cvmfs_server resign'
# Prepare repository for update
ssh
-qt
$repo_name
'cvmfs_server transaction $repo_name'
# sync local data to the corresponding CVMFS server
rsync
-vtza
--exclude-from
/cvmfs/
$repo_name
.exclude
--delete
--delete-excluded
/cvmfs/
$repo_name
$repo_name
:/cvmfs/
# -v, --verbose increase verbosity
# -t, --times preserve modification times
# -z, --compress compress file data during the transfer
# -r, --recursive recurse into directories
# -l, --links copy symlinks as symlinks
rsync
-vtzrl
--exclude-from
/cvmfs/
$repo_name
.exclude
--delete
--delete-excluded
/cvmfs/
$repo_name
$repo_name
:/cvmfs/
# Run publish on the CVMFS server as root, this needs to be
# allowed by sudo on the target machine!
ssh
-qt
$repo_name
'sudo cvmfs_server publish'
ssh
-qt
$repo_name
'cvmfs_server publish'
# SSH terminal allocation is needed to allow the command
# a user switch (su)
ssh
-qt
$repo_name
"df -h /cvmfs/
$repo_name
"
;;
resign
)
ssh
-qt
$repo_name
'sudo cvmfs_server resign'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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