Jump to content

Recommended Posts

Posted

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.

 

Posted

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
Posted

Hi, yes I agree it probably would make sense. Thanks for the feedback.

  • 4 years later...
Posted (edited)

Can this function be optimized? Backing up a large number of small files in multiple locations causes the backup to be unusually long. Scripts can solve the problem, but they are not as elegant as the built-in implementation.

Edited by Adorkable
Posted
12 hours ago, Adorkable said:

Can this function be optimized? Backing up a large number of small files in multiple locations causes the backup to be unusually long. Scripts can solve the problem, but they are not as elegant as the built-in implementation.

Hi, it is optimized in the sense that the first backup will be slow as it has to copy all files, but subsequent backups will only be copying changes that have occurred since the last one.

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...