nextcloud / nextcloud/backup

Question: Why is the backup first copied to a local drive?

Open
#507 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
272
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Disclaimer - I am not an expert on this topic and my question could be stupid but I am trying to understand this a bit more.

So to my understanding, when a full backup is being made it first copies everything to the set local directory so that it can compress/encrypt the data before sending it to the external backup site. Now my question is, why does it need to copy everything to the local drive? Can't it compress/encrypt the data in memory and then send it directly to do the off-site backup?

The reason why I am asking this is that regularly writing and rewriting everything on my hard disk puts a lot of stress on it (stress that in my eyes is not needed).

Also if this is required for compression/encryption would it be possible to skip this step if you disable both compression and encryption?

Thanks in advance 😅

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

The issue names no files, tests, or entry points. First clarify whether the request is for streaming off-site backups or only skipping the local staging step when compression and encryption are disabled, then trace the existing backup flow and define how completion should be verified.

Written by the indexing model from the issue text.

Assessment

Domain
infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.