Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. PeerTube
  3. CLI and Cron

CLI and Cron

Scheduled Pinned Locked Moved Solved PeerTube
8 Posts 5 Posters 1.5k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LorneG
    wrote on last edited by
    #1

    Hey there..

    I'd like to run a cron job that imports videos from a YouTube channel..

    Is cron part of this package? If so, can I use the 'peertube' command as part of a cron job?

    If not, is there a way to get cron up and running?

    Thanks so much for all your efforts.

    Cheers,
    Lorne

    nebulonN 1 Reply Last reply
    0
    • micmcM micmc

      @girish said in CLI and Cron:

      I think a general way to run cron jobs possibly per app would be useful. I have made a task for the next release - https://git.cloudron.io/cloudron/box/-/issues/793

      Useful, indeed for non-techie folks because crontab is not obvious at all one is not sysadmin.

      Andy

      rmdesR Offline
      rmdesR Offline
      rmdes
      wrote on last edited by
      #7

      Going to try this out now that cron job is integrated in the app on cloudron side.

      d13e9a95-eb43-418f-8f4b-3cf4ffc18df8-image.png

      micmcM 1 Reply Last reply
      1
      • L LorneG

        Hey there..

        I'd like to run a cron job that imports videos from a YouTube channel..

        Is cron part of this package? If so, can I use the 'peertube' command as part of a cron job?

        If not, is there a way to get cron up and running?

        Thanks so much for all your efforts.

        Cheers,
        Lorne

        nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        @lorneg currently there is no cron running for that app package. I guess we can add that for the next package release.

        What would be your peertube cli command to put into the cron job? Just so we can ensure your use-case is covered correctly then.

        L micmcM 2 Replies Last reply
        1
        • nebulonN nebulon

          @lorneg currently there is no cron running for that app package. I guess we can add that for the next package release.

          What would be your peertube cli command to put into the cron job? Just so we can ensure your use-case is covered correctly then.

          L Offline
          L Offline
          LorneG
          wrote on last edited by
          #3

          @nebulon

          Hey mate.. Sorry! I just realised you'd replied.

          I imagine the crontab would look something like this:

          0 2 * * * peertube import -u 'https://XXXXX' -U 'XXXXX' --password 'XXXXX' --target-url 'https://www.youtube.com/channel/XXXXX' --since $(date --date="-1 days" +%Y-%m-%d) --tmpdir /tmp

          Let me know if you see anytihg weird there, or if you need any more info.

          Thanks again!

          1 Reply Last reply
          1
          • nebulonN nebulon

            @lorneg currently there is no cron running for that app package. I guess we can add that for the next package release.

            What would be your peertube cli command to put into the cron job? Just so we can ensure your use-case is covered correctly then.

            micmcM Offline
            micmcM Offline
            micmc
            wrote on last edited by
            #4

            @nebulon said in CLI and Cron:

            @lorneg currently there is no cron running for that app package. I guess we can add that for the next package release.

            That would be an excellent idea!
            BTW, can't we just write and run crontab from the CLI on the app terminal interface?

            Andy

            Ignorance is not an excuse anymore!
            https://AutomateKit.com

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              I think a general way to run cron jobs possibly per app would be useful. I have made a task for the next release - https://git.cloudron.io/cloudron/box/-/issues/793

              micmcM 1 Reply Last reply
              2
              • girishG girish

                I think a general way to run cron jobs possibly per app would be useful. I have made a task for the next release - https://git.cloudron.io/cloudron/box/-/issues/793

                micmcM Offline
                micmcM Offline
                micmc
                wrote on last edited by
                #6

                @girish said in CLI and Cron:

                I think a general way to run cron jobs possibly per app would be useful. I have made a task for the next release - https://git.cloudron.io/cloudron/box/-/issues/793

                Useful, indeed for non-techie folks because crontab is not obvious at all one is not sysadmin.

                Andy

                Ignorance is not an excuse anymore!
                https://AutomateKit.com

                rmdesR 1 Reply Last reply
                0
                • micmcM micmc

                  @girish said in CLI and Cron:

                  I think a general way to run cron jobs possibly per app would be useful. I have made a task for the next release - https://git.cloudron.io/cloudron/box/-/issues/793

                  Useful, indeed for non-techie folks because crontab is not obvious at all one is not sysadmin.

                  Andy

                  rmdesR Offline
                  rmdesR Offline
                  rmdes
                  wrote on last edited by
                  #7

                  Going to try this out now that cron job is integrated in the app on cloudron side.

                  d13e9a95-eb43-418f-8f4b-3cf4ffc18df8-image.png

                  micmcM 1 Reply Last reply
                  1
                  • rmdesR rmdes

                    Going to try this out now that cron job is integrated in the app on cloudron side.

                    d13e9a95-eb43-418f-8f4b-3cf4ffc18df8-image.png

                    micmcM Offline
                    micmcM Offline
                    micmc
                    wrote on last edited by
                    #8

                    @rmdes Alright let's see the outcome ! 😆

                    Ignorance is not an excuse anymore!
                    https://AutomateKit.com

                    1 Reply Last reply
                    0
                    • girishG girish has marked this topic as solved on
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search