diff --git a/.drone.yml b/.drone.yml index f1ce75c..69696a7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,7 +52,21 @@ steps: - echo "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config # run operations on remote host - - ssh "$${USER}@$${HOST}" "neofetch" + - host="$${USER}@$${HOST}" + - host_dir="/var/www/$${HOST}" + - backup_dir="~/backups/$${HOST}/$${HOST}-$${DRONE_STAGE_STARTED}" + - echo "${host_dir} -> ${backup_dir}" + + - ssh $host "ls ${host_dir}" + + #- ssh $host 'echo "$host_dir -> $backup_dir"' + # - ssh $host "mkdir -p $backup_dir" + # - ssh $host "rsync -rP $host_dir/* $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"