With Github Actions how to do a backup of a file?
I need to create a new folder named with the date/time of today.
name: Backup Database
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Backup
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: 22
script: |
DATE=${{ NEW DATE }} # Need to create a variable with date/time
mkdir backup_${{ DATE }} # Create a new folder with the date/time