forked from sig_core/toolkit
add owner/group options to rsync
This commit is contained in:
parent
2a9b72e586
commit
effdcf4dea
14
sync/common
14
sync/common
@ -94,12 +94,12 @@ function parallel_rsync_delete_prod() {
|
|||||||
|
|
||||||
function rsync_no_delete_staging() {
|
function rsync_no_delete_staging() {
|
||||||
local TARGET="${1}"
|
local TARGET="${1}"
|
||||||
sudo -l && rsync -vrlptDSH --chown=10004:10005 --progress --human-readable compose/ "${TARGET}"
|
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable compose/ "${TARGET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function rsync_no_delete_staging_pungi() {
|
function rsync_no_delete_staging_pungi() {
|
||||||
local TARGET="${1}"
|
local TARGET="${1}"
|
||||||
sudo -l && rsync -vrlptDSH --chown=10004:10005 --progress --human-readable \
|
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable \
|
||||||
--exclude ppc \
|
--exclude ppc \
|
||||||
--exclude images \
|
--exclude images \
|
||||||
--exclude boot \
|
--exclude boot \
|
||||||
@ -119,7 +119,7 @@ function rsync_no_delete_staging_pungi() {
|
|||||||
function rsync_no_delete_staging_with_excludes() {
|
function rsync_no_delete_staging_with_excludes() {
|
||||||
local TARGET="${1}"
|
local TARGET="${1}"
|
||||||
local EXCLUDE="${2}"
|
local EXCLUDE="${2}"
|
||||||
sudo -l && rsync -vrlptDSH --chown=10004:10005 --progress --human-readable \
|
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable \
|
||||||
--exclude "${EXCLUDE}" \
|
--exclude "${EXCLUDE}" \
|
||||||
--exclude Minimal \
|
--exclude Minimal \
|
||||||
compose/ "${TARGET}"
|
compose/ "${TARGET}"
|
||||||
@ -128,7 +128,7 @@ function rsync_no_delete_staging_with_excludes() {
|
|||||||
function rsync_delete_staging_with_excludes() {
|
function rsync_delete_staging_with_excludes() {
|
||||||
local TARGET="${1}"
|
local TARGET="${1}"
|
||||||
local EXCLUDE="${2}"
|
local EXCLUDE="${2}"
|
||||||
sudo -l && rsync -vrlptDSH --chown=10004:10005 --progress --human-readable \
|
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable \
|
||||||
--exclude "${EXCLUDE}" \
|
--exclude "${EXCLUDE}" \
|
||||||
--exclude Minimal \
|
--exclude Minimal \
|
||||||
compose/ "${TARGET}"
|
compose/ "${TARGET}"
|
||||||
@ -137,18 +137,18 @@ function rsync_delete_staging_with_excludes() {
|
|||||||
function rsync_no_delete_prod() {
|
function rsync_no_delete_prod() {
|
||||||
local REV="${1}"
|
local REV="${1}"
|
||||||
local TARGET="${2}"
|
local TARGET="${2}"
|
||||||
sudo -l && rsync -vrlptDSH --chown=10004:10005 --progress --human-readable "${REV}/" "${TARGET}"
|
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable "${REV}/" "${TARGET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function rsync_delete_staging() {
|
function rsync_delete_staging() {
|
||||||
local TARGET="${1}"
|
local TARGET="${1}"
|
||||||
sudo -l && rsync -vrlptDSH --chown=10004:10005 --progress --human-readable --delete compose/ "${TARGET}"
|
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --delete compose/ "${TARGET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function rsync_delete_prod() {
|
function rsync_delete_prod() {
|
||||||
local REV="${1}"
|
local REV="${1}"
|
||||||
local TARGET="${2}"
|
local TARGET="${2}"
|
||||||
sudo -l && rsync -vrlptDSH --chown=10004:10005 --progress --human-readable --delete "${REV}/" "${TARGET}"
|
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --delete "${REV}/" "${TARGET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function perform_hardlink() {
|
function perform_hardlink() {
|
||||||
|
Loading…
Reference in New Issue
Block a user