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
back up to the same file location every time #1190
Comments
Oh, I just saw in the code where (if present) you use the first argument to This isn't clear in the documentation for the command:
|
You're right that this needs to be more clear & welcome to send a pull request if you figure out how to document the argument. |
We've added two more flags to specify custom backup paths. The SQL index backup may be written to stdout by passing
|
The usage string should explain that by default it gets the backup path from Also, why do we suddenly have two separate paths for albums and SQL, and what happens when I don't specify separate paths? Do they get placed in the same file? I also think it's redundant to have |
I'll think about it... note there's multiple ways to change the backup path, not only the environment variable. It shouldn't look like this is the only way to change it, especially since you can easily provide a custom path now.
Albums were always backed up to the default location so far, which is the folder |
Note that backing up albums to a different path doesn't make much sense for many users as they can easily backup their storage folder and albums won't be restored from custom folders (unless you copy the files back to the albums storage folder). |
I have a cron job configured to run
docker-compose exec -T photoprism photoprism backup -a -i -f
every so often, but I'm noticing that the backups are stored in thePHOTOPRISM_BACKUP_PATH
in a file named with the date. I use restic for remote backups on my system, and restic does periodic snapshots of files. It would make sense forphotoprism backup -f
to write to the same file every time, so that restic only stores the latest Photoprism backup in each snapshot and I don't have to periodically delete old Photoprism backups.The text was updated successfully, but these errors were encountered: