Dokploy / Dokploy/dokploy

Backup path change prepends app name and breaks user-defined prefix structure

Open
#4,051 13 comments 18 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
37.4k
Forks
3k
Avg merge
1d 3h
Merged PRs (30d)
73

Description

To Reproduce
  1. Configure a backup with a custom prefix (e.g. {server-name}/web-server)
  2. Run a backup
  3. Inspect the object path in the bucket
Current vs. Expected behavior

Current Behavior

Backups are stored as:

bucket/{app name}/{prefix defined in backup settings}/{object name}

Expected Behavior

Backups should be stored as:

bucket/{prefix}/{object name}

The prefix should fully define the object path without additional automatic segments.

Provide environment information
Dokploy Version: v0.28.6
S3 Backup location: AWS S3
Which area(s) are affected? (Select all that apply)

Docker, Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

Impact / Additional Context

Previously, users could define flexible and meaningful structures:

  • Dokploy backups:

    bucket/{server-name}/web-server/{object name}
    
  • Docker volume backups:

    bucket/{server-name}/docker/{app name}/{service name}/{object name}
    

With the new behavior, this becomes:

bucket/{app name}/{server-name}/web-server/{object name}

This:

  • Breaks existing backup organization
  • Makes the configured "prefix" no longer function as a true prefix
  • Reduces flexibility for structuring backups across systems
Will you send a PR to fix it?

Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the S3 backup path construction from the backup settings and reproduce the custom-prefix case described here. The work is done when the configured prefix directly precedes the object name, without an automatically added application-name segment, while existing Docker volume backup structure remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, typescript
Domain
cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.