diff --git a/docker-compose.yml b/docker-compose.yml index acd97fa..10c7cf1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: - /Video:/Video:shared - /Transcode:/Transcode - /Docker/Plex-Video/plex_cfg:/config - - /root/.rclone.conf:/root/.rclone.conf:RO + - /root/.rclone.conf:/root/.rclone.conf environment: - TZ=DE - BACKUP=gdrive:/Backup/pms.tar.gz diff --git a/root/etc/cont-init.d/.30-plex-cfg.swp b/root/etc/cont-init.d/.30-plex-cfg.swp deleted file mode 100644 index 5c2afbc..0000000 Binary files a/root/etc/cont-init.d/.30-plex-cfg.swp and /dev/null differ diff --git a/root/etc/cont-init.d/30-plex-cfg b/root/etc/cont-init.d/30-plex-cfg index aa17e72..39b3eb5 100755 --- a/root/etc/cont-init.d/30-plex-cfg +++ b/root/etc/cont-init.d/30-plex-cfg @@ -5,11 +5,11 @@ if [[ -d /config/Library ]] then echo "Configuration found, skipping restore of backup" else - if rclone ls $BACKUP + if rclone ls $BACKUP/pms.tar.gz then echo "No configuration found, restoring backup..." - rclone copy $BACKUP /plexrestore --verbose --transfers 4 --checkers 20 --stats 10s + rclone copy $BACKUP/pms.tar.gz / --verbose --transfers 4 --checkers 20 --stats 10s cd /config - tar -xvzf /plexrestore/* + tar -xvzf /pms.tar.gz fi fi