-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
nextcloud.export not exporting userdata #2723
Comments
welcome @Albatross29 and thank you for your request could you show us your directory it should look something like this; you should see the |
Hello @scubamuc and thank you for taking your time to help me with my problem!
Output of
Please tell me if you need more information! Kind regards, |
@Albatross29, not knowing what hardware you're using, I'm thinking along the lines that you're out of space. which is why
|
@scubamuc I created the backup directory via symlink according to this tutorial.
My data directory is not at the default path, but on another partition and mounted on /mnt/cloud/data (also correctly set in config.php). The output of Output of
To answer your questions:
|
@Albatross29, oh I see the root cause now...
this chap is excluding
copy and pasting commands without understanding is a bad idea... you obviously need data copied too, so you may want to use so this is certainly not a snap issue nor is it a |
@scubamuc I never said I excluded my data directory. I only followed the tutorial to create the symlink, not exporting data. If I wouldn't run the full nextcloud.export command it wouldn't even show the data topic in the command line.
The data category is missing here. I've been running nextcloud.export as a cronjob for many months and it worked until a few days or so (I just realised recently it's not working anymore). |
yes that's true. I jumped the gun... and made an idiot of myself for patronising you... sorry for that so we've tried reproducing the issue on a fresh instance, checked space and checked typos in the the only other cause could be your symlinked directory. please check permissions of that symlink and double check mounting removable media
can you recall what changed between the last successful and now? |
Don't be harsh on yourself. I appreciate your words, all good for me! Thank you. I sadly can't tell what exactly changed and when it happened as I only keep 7 backups... I checked if the backup will be correctly exported in the default directory (deleting /var/snap/nextcloud/common/backups so symlink will be removed and ran
Output of
The NAS permissions seem to be correct to me - I can read and write any files or directories.
Output of
The data directory inside is empty. |
@scubamuc
Now,
It seems like the issue must be inside my infrastructure. Thank you for your help and patience! |
@scubamuc
Seems like when running nextcloud.export it will try to export the data from the default directory Can you verify that on your vanilla instance? These are the steps I did to create my VM:
Sorry for any inconvenience. |
Servus @Albatross29, no inconvenience whatsoever... glad we got to the bottom of this. yes this seems to be an issue with data in an alternative data directory see #2057. check out the alternative backup, restore & migrate |
Hallo @scubamuc As I managed to test, the issue could be on nextcloud.export making a backup on the default datadirectory
If I now remove anything inside this directory again (directory size:
I will use those workarounds and scripts to backup my data at the moment, thank you for the provided links. |
@kyrofa is this configuarable?
|
This is a shortcoming in the script. Ideally it would check the Nextcloud config and use the data directory configured there, but it doesn't do that today. |
I guess we'll close this, since its already tagged as feature request in #2057 |
I would say my case is a bit different because #2057 asks to specify the backup directory if wanted, but for me it's not even possible to create backups with the data being stored outside the default datadirectory. |
I think @Albatross29 is correct, this is a separate feature request. |
Describe the bug
When I run the nextcloud.export command it will export the apps, database and config.
When it comes to backup the data directory it takes one second and it says “100%” without saving any data.
Console output after running nextcloud.export:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The app will create a directory in /var/snap/nextcloud/common/backups with all the data.
OS/snapd/snap version
Nextcloud version: 27.1.8.1 (installed via snap)
Operating system and version: Ubuntu Server 20.04
Apache version: unsure, where can I find this info?
PHP version: 8.2.15
Output of
snap list nextcloud
:Output of
snap version
:The text was updated successfully, but these errors were encountered: