DelSol 10 Posted March 30, 2020 Posted March 30, 2020 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.
DelSol 10 Posted March 30, 2020 Author Posted March 30, 2020 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
Luke 42077 Posted March 30, 2020 Posted March 30, 2020 Hi, yes I agree it probably would make sense. Thanks for the feedback.
Adorkable 9 Posted January 16, 2025 Posted January 16, 2025 (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 January 16, 2025 by Adorkable
Luke 42077 Posted January 16, 2025 Posted January 16, 2025 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now