cmdntd  
                
                  
                    November 25, 2024,  3:12pm
                   
                  1 
               
             
            
              When uploading to s3, discourse will save backups to the default folderhttps://domain.com/admin/backups/backup.tar.gz?token=id
must manually edit the above link as follows to use:https://domain.com/admin/backups/default/backup.tar.gz?token=id
how to configure this problem?
             
            
              
            
           
          
            
              
                Lilly  
              
                  
                    November 26, 2024, 12:34am
                   
                  2 
               
             
            
              You might be able to do something like this-Replace a string in all posts  
             
            
              2 Likes 
            
            
           
          
            
              
                cmdntd  
              
                  
                    November 26, 2024,  4:48pm
                   
                  3 
               
             
            
              Is there any way to limit this to just the backups settings area? 
This looks a bit dangerous, because if there is another matching character in the entire database, it will be overwritten:
hooks:
  after_code:
    - exec:
        cd: $home
        cmd:
          - >
            rails r "
            Post.where(\"cooked LIKE '%/admin/backups/%'\").find_each do |post|
              post.cooked = post.cooked.gsub('/admin/backups/', '/admin/backups/default/');
              post.save!;
              post.revise(Discourse.system_user, post.cooked, bypass_rate_limiter: true);
            end
            "
          - >
            rails r "
            Upload.where(\"url LIKE '%/admin/backups/%'\").find_each do |upload|
              upload.url = upload.url.gsub('/admin/backups/', '/admin/backups/default/');
              upload.save!;
            end
            "
 
            
              1 Like 
            
            
           
          
            
              
                Lilly  
              
                  
                    November 26, 2024, 11:30pm
                   
                  5 
               
             
            
              sorry i misread your post earlier thinking you were talking about a migrated forum links for some reason.
this seems like something isn’t set up properly.
has it always been this way or did you change something?
  
  
     
 
             
            
              
            
           
          
            
              
                cmdntd  
              
                  
                    November 27, 2024,  1:38pm
                   
                  6 
               
             
            
              I 'm trying to setup with seaweedfs s3. But it seems not to be here:
  
  
    Set up file and image uploads to S3  for more details about Amazon AWS S3 configuration, which is officially supported and used internally by Discourse for our hosting services. 
Provider
Service Name
Works with Discourse?
Amazon AWS 
S3
Yes
Digital Ocean 
Spaces
Yes
Linode 
Object Storage
Yes
Google Cloud 
Storage
Yes
Scaleway 
Object Storage
Yes
Vultr 
Obj…