01-29-2024, 09:16 PM
@greg_m
You said
1.
If you specified "config" among the whats, then there should have been a moodecfg.ini file in the zip file. It was in Tim's test and it was when I just tried the same command.
2.
Sorry, I have no idea where that's coming from.
3.
That option is not telling the script to backup the database; it's telling it where to look for the database so it can extract info it needs. Since the default location is the same as what you specified, there will be no difference between including the --db option and not. Hence, it's not needed in nurmal use. I suspect it's there to support some test case scenario.
Regards,
Kent
You said
1.
Quote:I get a zip file, but comparing to the backup created from the web interface seems like moodecfg.ini file is not there.
Is the moodecfg.ini file importanct for the backup? If so how can I add it to the backup zip file?
If you specified "config" among the whats, then there should have been a moodecfg.ini file in the zip file. It was in Tim's test and it was when I just tried the same command.
2.
Quote:Also a "www" folder with a single json file is missing too, but seems like that json in my case is empty anyway, so I don't worry much about that.
Sorry, I have no idea where that's coming from.
3.
Quote:Also seems like adding or removing db part below doesn't do much. Is it needed?
Code:--db /var/local/www/db/moode-sqlite3.db
That option is not telling the script to backup the database; it's telling it where to look for the database so it can extract info it needs. Since the default location is the same as what you specified, there will be no difference between including the --db option and not. Hence, it's not needed in nurmal use. I suspect it's there to support some test case scenario.
Regards,
Kent