From 76fdc8f43bb3a2c79485fd6e0806cf15930bd307 Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Wed, 23 Mar 2022 20:41:24 +0100 Subject: [PATCH] Fix nas script --- sync-to-nas.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/sync-to-nas.sh b/sync-to-nas.sh index d03307f..1258e2f 100644 --- a/sync-to-nas.sh +++ b/sync-to-nas.sh @@ -1,12 +1,8 @@ -#!/bin/zsh - -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 - +#!/bin/zsh + +REMOTE_LOCATION=/media/family_nas/Leon/Mediafarm/Youtube-Archive + +cp -u alreadydownloaded.txt $REMOTE_LOCATION +rsync -auv --remove-source-files music/ "$REMOTE_LOCATION"/music +rsync -auv --remove-source-files videos/ "$REMOTE_LOCATION"/videos +