First public build

This commit is contained in:
root
2018-11-19 11:56:50 +00:00
parent 2293cfb399
commit 209ff0f3d9
7 changed files with 44 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
#!/usr/bin/with-contenv bash
# Creating a backup of plex configuration
# Remove crontab
crontab -r
cd /config
tar -cvzf /pms.tar.gz Library
rclone move /pms.tar.gz $BACKUP --verbose --transfers 4 --checkers 20 --stats 10s

View File

@@ -13,3 +13,6 @@ else
tar -xvzf /pms.tar.gz
fi
fi
echo "0 $CRON * * * /root/bin/backup-pms" > /root/crontab.txt
crontab /root/crontab.txt