Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add named task groups #8

Open
vitonsky opened this issue May 27, 2023 · 0 comments
Open

Add named task groups #8

vitonsky opened this issue May 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@vitonsky
Copy link
Owner

Named task groups:

tasks:
  archiveHome:
    - run: makeUserHomeArchive
    - run: cp ~/homeArchive /path/to/device

  backupDevice1:
    # Task may have name
    - name: 'Copy files to backup disk'
    run: rclone /path/to/device /path/to/local/mirror1

    - name: 'Upload to S3'
    run: rclone /path/to/device s3Replica:backups

    - name: 'Replicate on server'
    # Just run replicator on server with their own config and end locally
    run: ssh replicator@backup-server 'nohup replicator ./backups.yml > ./replicator.log 2>&1 </dev/null &'

With ability to run multiple groups replicator archiveHome backupDevice1

It is useful to run some tasks by CRUD, for this example run only replicator archiveHome

@vitonsky vitonsky added the enhancement New feature or request label May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant