mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-24 20:46:04 +03:00
[GH-ISSUE #1866] 💬 [Question] Manual backup & update #727
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#727
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jac-ron on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1866
Hello, I tried to find official information here, but unfortunately couldn't. I installed cypht 2.6.0 manually. What should I back up now so that I can restore it on another server, for example?
I guess the database,
config/, and.envif you use the database, and otherwiseUSER_SETTINGS_DIRinstead of the database. What aboutATTACHMENT_DIR? And have I forgotten anything?What is the recommended update process? I guess you delete everything and then add the things I mentioned above again?
Thank you very much for the clarifications!
@IrAlfred commented on GitHub (Feb 17, 2026):
Hello @jac-ron ! Thank you for reaching out about backup and update procedures for Cypht. You're absolutely right that we need better official documentation on this topic. Let me clarify the backup and update process:
What to Back Up
Your list is mostly correct! Here's the complete checklist:
✅ Database (if using
USER_CONFIG_TYPE=DB)hm_user,hm_user_session,hm_user_settings✅ .env file
✅ USER_SETTINGS_DIR (if using
USER_CONFIG_TYPE=file)/var/lib/hm3/users✅ ATTACHMENT_DIR
/var/lib/hm3/attachmentsRecommended Update Process
The update process is NOT delete everything and restore. Here's the safer approach:
.envUSER_SETTINGS_DIRandATTACHMENT_DIR/database/migrations/for any new migrations)Key point: Since Cypht stores user data separately from the application code (in
USER_SETTINGS_DIR,ATTACHMENT_DIR, and the database), you should never need to delete those. Only replace the application files themselves.Don't hesitate to reach out if you run into any issues during the process!
@marclaporte commented on GitHub (Feb 17, 2026):
@IrAlfred Maybe there shoukd be a page about this. On the upcoming cypht.org site or a wiki page on GitHub?
@IrAlfred commented on GitHub (Feb 17, 2026):
Yes, definitely !