mirror of
https://github.com/bitwarden/server.git
synced 2025-04-11 16:18:14 -05:00
cleanup old backups
This commit is contained in:
parent
417ac64ad2
commit
ccd6b784be
@ -1,3 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Delete backup files older than 30 days
|
||||
find /etc/bitwarden/mssql/backups/ -type f -name '*.BAK' -mindepth 1 -mtime +30 -delete
|
||||
|
||||
# Do a new backup
|
||||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -i /backup-db.sql
|
||||
|
Loading…
x
Reference in New Issue
Block a user