Skip to content

Add running custom scripts with a cron #9615

Closed
@matifali

Description

@matifali

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions