You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
BackupScripts/miniflux.sh

15 lines
428 B

#! /bin/sh
echo ""
echo "Sauvegarde de miniflux"
# Backup the database
echo "Dump de la base de données"
PGPASSWORD=$MF_DBPASSWD pg_dump -h $MF_DBHOST -d $MF_DBNAME -p $MF_DBPORT -U $MF_DBUSER > $BACKUP_LOCATION/miniflux-$DATE
# Compress backup
echo "Compression de la sauvegarde"
gzip -f $BACKUP_LOCATION/miniflux-$DATE
echo "Fichier enregistré dans dans $BACKUP_LOCATION/miniflux-$DATE.gz"
echo "Sauvegarde terminée !"