# Errore di backup quando il file di backup temporaneo viene spostato nella directory backups/default

**URL:** <https://meta.discourse.org/t/backup-failure-when-temp-backup-file-is-moved-to-backups-default-directory/293183>\
**Category:** Self-hosting\
**Tags:** backups\
**Created:** [28 Gennaio 2024, 6:40am UTC](https://meta.discourse.org/t/backup-failure-when-temp-backup-file-is-moved-to-backups-default-directory/293183 "2024-01-28T06:40:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ckshen](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@ckshen](https://meta.discourse.org/u/ckshen)\
**Post date:** [28 Gennaio 2024, 6:40am UTC](https://meta.discourse.org/t/backup-failure-when-temp-backup-file-is-moved-to-backups-default-directory/293183/1 "2024-01-28T06:40:53Z")

</div>

La creazione del file di backup temporaneo è andata a buon fine. È quando il file viene spostato da `/var/www/discourse/tmp/backups/default/` a `/var/www/discourse/public/backups/default/` che emergono problemi.

```plaintext
[2024-01-28 05:47:54] EXCEPTION: /var/www/discourse/lib/discourse.rb:137:in `exec': Failed to move database dump file.
mv: cannot move '/var/www/discourse/tmp/backups/default/2024-01-28-054559/dump.sql.gz' to '/var/www/discourse/public/backups/default/hungry-onion-2024-01-28-054559-v20230728055813.sql.gz': Permission denied

```

Come posso affrontare questo problema?

Separately, does this issue have anything to do with the fact that I previously created the `/var/discourse/shared/standalone/backups/default/` folder (outside the container) myself when I used command line to restore a backup on a new instance?

Il permesso al momento è `drwxrwxr-x 2 1000 www-data 4096 Jan 27 17:35 default`

---

_[View the full topic](https://meta.discourse.org/t/backup-failure-when-temp-backup-file-is-moved-to-backups-default-directory/293183)._
