Giter VIP home page Giter VIP logo

Comments (6)

kyrofa avatar kyrofa commented on September 26, 2024 1

Can you expand on what you're trying to do, here? Do you just want to restore a backup? Or are you wanting to poke at the database on another machine? The backup generated by nextcloud.export is just a mysql dump of the nextcloud database. It doesn't really have a concept of users. When you install a new instance of the snap, it'll generate its own root (and nextcloud user) passwords, and then you'll be able to nextcloud.import your backup. Assuming all you care about is importing your backup, you shouldn't need to care about users at all.

from nextcloud-snap.

scubamuc avatar scubamuc commented on September 26, 2024

poking around too...
grafik
try
user: nextcloud
pwd: system-root-user-password

from nextcloud-snap.

Matth3wW avatar Matth3wW commented on September 26, 2024

Thank you two, that was a misunderstanding on my end. I was able to import the database to my personal machine by using the following commands:
sudo mysql
create database nextcloud;
exit
sudo mysql -u root -p nextcloud < /path/to/database.sql

I've already created a new nextcloud instance without the use of my backup. My intent is to export the calendar, contacts, and notes tables from my old database and import them into my new database.

from nextcloud-snap.

kyrofa avatar kyrofa commented on September 26, 2024

No problem, that's what this issue tracker is all about! Yeah I'd say you're on the right track here. nextcloud.mysql-client will probably prove useful to you. Just remember it will only be able to access /var/snap/nextcloud/current under confinement, so if you shave off smaller table dumps to import in pieces, make sure you put them in there.

from nextcloud-snap.

Matth3wW avatar Matth3wW commented on September 26, 2024

For anyone who might stumbled across this post via a search engine, I ended up creating a new snap nextcloud instance and did a backup import (without data). I then used the calcardbackup script with the -p flag and it worked great!

https://codeberg.org/BernieO/calcardbackup

from nextcloud-snap.

kyrofa avatar kyrofa commented on September 26, 2024

Awesome, thanks for the update @Matth3wW!

from nextcloud-snap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.