copy old site
continuous-integration/drone/push Build is passing Details

This commit is contained in:
ktyl 2022-09-27 22:52:04 +01:00
parent 42033294db
commit fe94d2ad0a
1 changed files with 11 additions and 1 deletions

View File

@ -52,7 +52,17 @@ steps:
- echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# run operations on remote host
- ssh "$${USER}@$${HOST}" "neofetch"
- host="$${USER}@$${HOST}"
- backup_dir="backups/${HOST}/${DRONE_STAGE_STARTED}"
- ssh $host "ls /var/www/$${HOST}/"
- ls site
- ssh $host "echo ${backup_dir}"
#- ssh $host "mkdir -p $backup_dir"
#- ssh $host "rsync -rP /var/www/${HOST}/* ${DRONE_STAGE_STARTED}"
#- ssh $host "ls site"
#- ssh
#- ssh "$${USER}@$${HOST}" "[[ ! -d ~/gemini/content ]] || rm -r ~/gemini/content"
#- rsync -rP content "$${USER}@$${HOST}:gemini"