#!/bin/bash

######################
### Upload Script ####
######################
### Version 0.95.5 ###
######################

sudo rsync -avP  --remove-source-files /mnt/move/movies/ root@vmx-nas.swallow-grue.ts.net:/mnt/union/movies

find /mnt/move/movies/ -type f -mtime +10 > /tmp/2rsync.txt
rsync --progress -av --no-owner --no-perms --remove-source-files --files-from=/tmp/2rsync.txt / root@kom.swallow-grue.ts.net:/data/media/movies/ > /opt/logs/media_movies_upload.log
find /mnt/move/movies -type d -empty -delete

find /mnt/move/series/ -type f -mtime +10 > /tmp/2rsync.txt
rsync --progress -av --no-owner --no-perms --remove-source-files --files-from=/tmp/2rsync.txt / dbi@159.69.143.171:/data/media/movies/ > /opt/logs/media_series_upload.log
find /mnt/move/series -type d -empty -delete


