WeegyAVLover
Distinguished Member
Hi looking for some help with scripting and scheduling.
had a load of issues with my wife's itunes library over the years with it either filling up local hard drives, to moving it to a NAS share and connection issues with the NAS share meaning iTunes then reseting itself to a default location )very strange.
I have now got a laptop with storage that can handle her itunes to store it locally.
I do however want to back the iTunes music folder up to the NAS on a weekly or monthly basis.
When I was searching the web I found a suggestion to use powershell but after an initial dabble and it looking way harder to do stuff without know how to configure the powershell environment I have canned using that.
I know robocopy fairly well and found this article giving details on what to do:
however I have 3 queries on the simple script they are using:
@echo off
set X=<days>
set "source=C:\<Source Folder Path>"
set "destination=D:\<Destination Folder Path>"
robocopy "%source%" "%destination%" /mov /minage:%X%
exit /b
1) I do not understand what the days parameter is doing here, as they later set windows scheduler to run everyday at 6pm?
2) if I wanted the destination to folder to be something like - d:\itunes-yy-mm-dd (the date being the date of the copy). How would I do that?
3) the robocopy command would then be - robocopy /S "%source%" "%destination%" - yes?
Thanks
Col
had a load of issues with my wife's itunes library over the years with it either filling up local hard drives, to moving it to a NAS share and connection issues with the NAS share meaning iTunes then reseting itself to a default location )very strange.
I have now got a laptop with storage that can handle her itunes to store it locally.
I do however want to back the iTunes music folder up to the NAS on a weekly or monthly basis.
When I was searching the web I found a suggestion to use powershell but after an initial dabble and it looking way harder to do stuff without know how to configure the powershell environment I have canned using that.
I know robocopy fairly well and found this article giving details on what to do:
How to Automatically Move Files From One Folder to Another on Windows 10
Here's how to automatically move files from one folder to another in Windows 10 in order to save time and stay organized.
www.laptopmag.com
however I have 3 queries on the simple script they are using:
@echo off
set X=<days>
set "source=C:\<Source Folder Path>"
set "destination=D:\<Destination Folder Path>"
robocopy "%source%" "%destination%" /mov /minage:%X%
exit /b
1) I do not understand what the days parameter is doing here, as they later set windows scheduler to run everyday at 6pm?
2) if I wanted the destination to folder to be something like - d:\itunes-yy-mm-dd (the date being the date of the copy). How would I do that?
3) the robocopy command would then be - robocopy /S "%source%" "%destination%" - yes?
Thanks
Col