incus-copy: Add --refresh-exclude-older option
This commit is contained in:
@@ -16,7 +16,8 @@ done
|
|||||||
|
|
||||||
for CT in $(/usr/bin/incus list -c n -f compact,noheader status=RUNNING) ; do
|
for CT in $(/usr/bin/incus list -c n -f compact,noheader status=RUNNING) ; do
|
||||||
DATE=$(date '+%Y-%m-%d %H:%M:%S')
|
DATE=$(date '+%Y-%m-%d %H:%M:%S')
|
||||||
echo "[${DATE}] incus copy ${CT} ${DEST}:$CT --refresh --mode push"
|
CMD="/usr/bin/incus copy $CT ${DEST}:$CT --refresh --refresh-exclude-older --mode ${MODE}"
|
||||||
/usr/bin/incus copy $CT ${DEST}:$CT --refresh --mode ${MODE} 2>&1 > /dev/null
|
echo "[${DATE}] $CMD"
|
||||||
|
$CMD 2>&1 > /dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user