Jump to content

Server Configuration Backup Plugin zip backups


DelSol

Recommended Posts

DelSol

Hey guys, 

the Server Config Backup plugin creates a lot of small files, mostly xml. As there is no incremental backup anyway, wouldn't it be nice to just zip the whole backup? Thats probably a one liner and would make handling backups much easier.

 

Link to comment
Share on other sites

DelSol

I made a quick workaround for everyone with the same issue. A bash script thats triggered via cron 10 minutes after the backup job in emby.

would still be nice to do this within the plugin right away in my opinion.

#!/bin/bash
cd /your/emby/backup/folder
shopt -s dotglob
find * -prune -type d | while IFS= read -r d; do 
    
    string="$d"
     if [[ $string == *"Emby Backup"* ]]; then
            echo "$d" is getting zipped
            zip -r "$d".zip "$d"
            rm -r "$d"
    fi
done
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...