Skip to content

Add running custom scripts with a cron #9615

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

Closed
matifali opened this issue Sep 11, 2023 · 2 comments
Closed

Add running custom scripts with a cron #9615

matifali opened this issue Sep 11, 2023 · 2 comments

Comments

@matifali
Copy link
Member

Allow running custom scripts/commands in the workspace at a cron.
This may be used to run scheduled backups in the background.

resource "coder_agent_script" "backup" {
    agent_id = coder_agent.dev.id
    name = "backup"
    script = <<EOF
        rclone sync /path/to/source s3:bucket
    EOF
}

Related to #9287

@matifali
Copy link
Member Author

matifali commented Sep 11, 2023

it looks like it is being addressed in coder/terraform-provider-coder#154

@matifali
Copy link
Member Author

completed in coder/terraform-provider-coder#154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant