-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore tempfile created: 0 B #463
Comments
FYI: for encrypted and compressed file, the same issue appears. A workaround is to add This workaround only works for encrypted files process. Here a solution when the file is not encrypted or compressed, don't know if it is a good one: https://github.com/rsommerard/django-dbbackup/commit/2d84111514d30ffb0c554ec7abe78e8fa4d68d1a |
Confirming we are seeing the issue when both Another workaround that doesn't require a code change is to disable compression when encryption is enabled. In our case that resulted in no measurable difference in the backup file size. |
Bug Report
Running the dbrestore command raise an error which is due to
Restore tempfile created: 0 B
.Describe the bug
I use an FTP server as backup storage. Backup is store without issue on the FTP while the restore fail.
If I download the file and run the command by filling the local path via the
-I
params it works well.File is not encrypted, not compressed.
The command fail at:
django-dbbackup/dbbackup/db/base.py
Lines 157 to 163 in af443c5
And here is the traceback:
To Reproduce
docker run -e FTP_USER_NAME=foo -e FTP_USER_PASS=pass -e FTP_USER_HOME=/home/foo -p 21:21 -p 30000-30009:30000-30009 -d stilliard/pure-ftpd
python manage.py dbbackup
python manage.py dbrestore
Versions
django-dbbackup==4.0.2
django-storages==1.13.1
Django==3.2.7
Python: 3.8
OS: Ubuntu 22.04.1 LTS x86_64
Misc
The
mediarestore
command works with the same params (no compression, not encrypted)The text was updated successfully, but these errors were encountered: