First public build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user