-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
cannot backup Synology Photos‘ album and face data ... #130
Comments
The script only backs up the packages and their settings and database. It does not backup any shared folders. For a full backup, that you can later restore, you'd also need to backup:
|
these data cannot be found in the home folder,such as face discover data , tag... |
This will do the job : It did for me. |
@OrpheeGT just reminded me of something. @PrestarLin Try this:
|
i have not Enable Shared Space. maybe the script should also backup database? or not just package file. |
Backing up, and restoring, the pgsql database is not possible because there are 7 or more Synology packages that use the same database. Restoring a backup of the database would also restore old data for the other 6 packages. These are the ones I know of:
|
Here |
pg_dump and pg_restore with postgres user would probably be an option to backup only some databases from whole DBs pg_dump dbname > backup.sql pg_restore backup.sql But it probably does not handle user backup/rights... The best way would be to install the app, it will create users/and db structure in @database.. |
Maybe this could be tried at import step to prune empty/dummy db from fresh app install before it import real datas... To be tested on dev env... I'm not a DB expert. |
Maybe something like
|
I like your optimism |
hello, i test this script,and try to backup Synology Photos,and then i delete one album on the web of this package,and then use script to restore.
but i discover the number of album does not restore,why?
The text was updated successfully, but these errors were encountered: