(INF-3292) Move xdmod rsync cron image#304
(INF-3292) Move xdmod rsync cron image#304williamnswanson wants to merge 4 commits intoopensciencegrid:mainfrom
Conversation
|
@williamnswanson can you create a (I don't think the |
jasoncpatton
left a comment
There was a problem hiding this comment.
This LGTM, I think the --delete is correct per the man page. Feel free to change/remove the LICENSE to have it fall under the rest of the images repo.
| cat >/etc/cron.d/rsync-ospool-logs.cron <<EOF | ||
| SHELL=/bin/bash | ||
| PATH=/usr/sbin:/usr/bin:/sbin:/bin | ||
| ${RSYNC_CRON_MINUTE:-30} ${RSYNC_CRON_HOUR:-8} * * * root rsync -ave --delete ssh ${RSYNC_SOURCE} ${RSYNC_TARGET} >>/var/log/rsync-ospool-logs.log 2>&1 |
There was a problem hiding this comment.
This seems correct to me, per the rsync man page (emphasis added):
--delete delete extraneous files from **dest** dirs
| @@ -0,0 +1,21 @@ | |||
| MIT License | |||
|
|
|||
| Copyright (c) 2024 Jason Patton | |||
There was a problem hiding this comment.
I give permission to change the ©️ here or remove the LICENSE entirely since it's going into a organization-owned repo.
|
And thanks for moving this over here! |
Copied from https://github.com/jasoncpatton/xdmod-ospool-fetch into the images repo.
Also add the --delete flag to the generated cron's rsync command for mirroring.
@jasoncpatton, I think I put it in the right spot, can you confirm?