Skip to content

Commit

Permalink
obs: change backend repo publish hook job
Browse files Browse the repository at this point in the history
rysnc加--delete参数保证同步仓库数据一致,删除老的仓库数据,节约存储空间
  • Loading branch information
hudeng-go committed Sep 29, 2024
1 parent 39b30ca commit e38b834
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ data:
SRC_REPO_DIR="$OBSHOME/repos"
LOGFILE="$OBSHOME/log/reposync.log"
DST_REPO_DIR="/srv/obs-datas/repos"
rsync -av --log-file=$LOGFILE --link-dest $SRC_REPO_DIR $SRC_REPO_DIR/ $DST_REPO_DIR/
rsync -av --delete --log-file=$LOGFILE --link-dest $SRC_REPO_DIR $SRC_REPO_DIR/ $DST_REPO_DIR/

0 comments on commit e38b834

Please sign in to comment.