Solved Is it possible to get a "mirror" command to keep the remove server clean?
-
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? -
@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.
-
Have you tried to use the
--delete
option ofsurfer put ...
? This should behave like an rsync with remote deletion. -
@nebulon haha oh boy, this is embarrassing, never checked the
surfer get --help
, thanks -
@msbt I also forgot about that option actually, such a long time ago when I wrote all that code