This commit is contained in:
2018-11-19 11:19:57 +01:00
parent 687bb3ee24
commit 2af4938839
3 changed files with 4 additions and 4 deletions

View File

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

View File

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