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. Surfer
  3. Is it possible to get a "mirror" command to keep the remove server clean?

Is it possible to get a "mirror" command to keep the remove server clean?

Scheduled Pinned Locked Moved Solved Surfer
surfermirrorrsyncdeploy
5 Posts 3 Posters 953 Views 3 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.
  • M Offline
    M Offline
    msbt
    App Dev
    wrote on last edited by
    #1

    Hi there! Having surfer at the end of a build pipeline is quite nice, but over time the instance grows bigger, even though some assets should no longer be there because they got deleted earlier in the process.

    Sure, we could do a surfer del -r -y / before deploying, but this could result in temporary 404s on bigger sites. Some rsync like option would be awesome, is that something that would be in the scope of the surfer app? If not, how is everyone else keeping their servers clean?

    robiR 1 Reply Last reply
    0
    • M msbt

      Hi there! Having surfer at the end of a build pipeline is quite nice, but over time the instance grows bigger, even though some assets should no longer be there because they got deleted earlier in the process.

      Sure, we could do a surfer del -r -y / before deploying, but this could result in temporary 404s on bigger sites. Some rsync like option would be awesome, is that something that would be in the scope of the surfer app? If not, how is everyone else keeping their servers clean?

      robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #2

      @msbt Sounds like you need your final assets copied from the build surfer to a deployment surfer which is new and clean.

      Then revert the build one or delete and use a fresh one.

      Conscious tech

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by nebulon
        #3

        Have you tried to use the --delete option of surfer put ... ? This should behave like an rsync with remote deletion.

        M 1 Reply Last reply
        0
        • nebulonN nebulon

          Have you tried to use the --delete option of surfer put ... ? This should behave like an rsync with remote deletion.

          M Offline
          M Offline
          msbt
          App Dev
          wrote on last edited by
          #4

          @nebulon haha oh boy, this is embarrassing, never checked the surfer get --help, thanks 😄

          nebulonN 1 Reply Last reply
          0
          • M msbt

            @nebulon haha oh boy, this is embarrassing, never checked the surfer get --help, thanks 😄

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

            @msbt I also forgot about that option actually, such a long time ago when I wrote all that code 😄

            1 Reply Last reply
            0
            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