add everything to motd
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user