add everything to motd

This commit is contained in:
2026-06-14 10:58:53 -05:00
parent 2c7e21f64d
commit 4b537c7fe8
4 changed files with 17 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ zstd -dc <path_to_backup> | mysql -u root -p <database_name>
to restore a postgres database:
sudo -u postgres psql -c "DROP DATABASE IF EXISTS <database_name>;" # delete old db if lingering (prolly wont work)
sudo -u postgres psql -c "CREATE DATABASE <database_name>;" # create empty db w/ correct name
zstd -dc <path_to_backup> | sudo -u postgres psql -d immich # restore from the dump
zstd -dc <path_to_backup> | sudo -u postgres psql -d <database_name> # restore from the dump
*/
let
cfg = config.homelab.backups;