Fix nas script

This commit is contained in:
Leonetienne 2022-03-23 20:41:24 +01:00
parent fc4c843b24
commit 76fdc8f43b

View File

@ -1,12 +1,8 @@
#!/bin/zsh
REMOTE_LOCATION = /media/family_nas/Leon/Mediafarm/Youtube-Archive
REMOTE_LOCATION=/media/family_nas/Leon/Mediafarm/Youtube-Archive
mv music/ $REMOTE_LOCATION
mv videos/ $REMOTE_LOCATION
mv alreadydownloaded*.txt $REMOTE_LOCATION
# robocopy music\ Y:\Leon\Mediafarm\Youtube-Archive\music\ /e /z /j /xo /move
# robocopy videos\ Y:\Leon\Mediafarm\Youtube-Archive\videos\ /e /z /j /xo /move
# robocopy . Y:\Leon\Mediafarm\Youtube-Archive\ alreadydownloaded*.txt /z /im
cp -u alreadydownloaded.txt $REMOTE_LOCATION
rsync -auv --remove-source-files music/ "$REMOTE_LOCATION"/music
rsync -auv --remove-source-files videos/ "$REMOTE_LOCATION"/videos