Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    Oct 2013
    Location
    UK
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Maintaining a collection on a network drive

    I use iTunes on a Windows 10 laptop for my music collection and I also have a Sonos system which has access to the iTunes library.

    I have tried locating the iTunes library on a NAS but did not have a particularly good experience with that, so moved it back to the laptop itself. This means, of course, that when I use the Sonos system, the laptop has to be active to serve the music.

    Therefore, I am considering maintaining a duplicate copy of the iTunes library folders on the network drive and pointing the Sonos system at that.

    I don't require the NAS copy to be permanently in sync with the original - a scheduled copy two or three time a week would be sufficient.

    To minimise run time, it would be useful to simply update the copy with changes. But if this were not possible I guess I could consider completely refreshing the copy each time - although at 50GB it would not be snappy!

    Can anyone recommend a software solution that would allow me to do this? Ideally, it would be a scheduled solution which is capable of waking the laptop from sleep thereby permitting automatic overnight operation.
    Thanks

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,435
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    DC,

    I would recommend a combination of RoboCopy to do the actual work and a Scheduled task to fire off RoboCopy when desired. I use this method to create a backup of my documents folder (only the things that changed) every evening at 18:30 while I watch the news.

    Here's the .cmd file with the RoboCopy command I use (of course you'll have to modify the directories involved but the switches are what you need).

    Code:
    Echo Off
    REM  Updated: 12/29/14
    Echo.  -------- Copying BEKDocs to N: drive -------
    Robocopy "G:\BEKDocs" "N:\BEKDocs" /MIR /XJD /R:5 /W:15 /MT:32 /V /NP /NDL /NFL /LOG+:G:\BEKDocs\Batch\BackupTasks\RoboCopy.log 
    Echo.  -------- Copy Completed              -------
    If you don't want to know what was copied you can delete from /LOG to the end of the line. Drive G: is my Source files and Drive N: is the backup copy, change to meet your situation.

    Here's the exported Task.xml file you can modify this and save as and .xml file then import it into the Task Scheduler and you'll be good to go.
    Code:
    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Date>2014-12-28T15:56:44.7043389</Date>
        <Author>DellXPS8700\RetiredGeek</Author>
      </RegistrationInfo>
      <Triggers>
        <CalendarTrigger>
          <StartBoundary>2014-12-28T18:30:00</StartBoundary>
          <Enabled>true</Enabled>
          <ScheduleByDay>
            <DaysInterval>1</DaysInterval>
          </ScheduleByDay>
        </CalendarTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>DELLXPS8700\RetiredGeek</UserId>
          <LogonType>InteractiveToken</LogonType>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>false</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
        <WakeToRun>true</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>C:\WINDOWS\system32\cmd.exe</Command>
          <Arguments>/c G:\BEKDocs\Batch\BackupTasks\DataBackup2N.cmd</Arguments>
        </Exec>
      </Actions>
    </Task>
    The items highlighted in large blue text are the ones you need to change to meet your situation. It should be fairly obvious what your values should be. Or you can create the scheduled task from scratch using the items in the file as guidance to your selections.

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. The Following User Says Thank You to RetiredGeek For This Useful Post:

    dc696969 (2016-08-07)

  4. #3
    New Lounger
    Join Date
    Oct 2013
    Location
    UK
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Many thanks RG for your comprehensive reply.

    I'm sure it will suit my requirements exactly.
    DC

  5. #4
    5 Star Lounger
    Join Date
    Jan 2010
    Location
    Los Angeles, CA
    Posts
    828
    Thanks
    4
    Thanked 38 Times in 34 Posts
    The is also the SyncToy (https://www.microsoft.com/en-us/down....aspx?id=15155), which should be able to do this.

  6. #5
    Super Moderator Rick Corbett's Avatar
    Join Date
    Dec 2009
    Location
    South Glos., UK
    Posts
    2,143
    Thanks
    101
    Thanked 579 Times in 464 Posts
    Quote Originally Posted by cafed00d
    The is also the SyncToy (https://www.microsoft.com/en-us/down....aspx?id=15155), which should be able to do this.
    I thought even the latest version of Microsoft's SyncToy (which needs other core components, including .NET 2) had been deprecated a long time ago. However, I just installed SyncToy and it seems to work fine. I had to install .NET Framework 3.5 (which includes .NET 2 and has to be downloaded) from Windows Features before I could get the SyncToy installed but after that it was plain sailing.

    Hope this helps...

  7. #6
    New Lounger
    Join Date
    Oct 2013
    Location
    UK
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks for your comments cafed00d and Rick Corbett - but, having read up on SyncToy's capabilities, I believe I am better off with RoboCopy.

    As I understand it, SyncToy will synchronise bi-directionally - which is not what I want. If the NAS copy of my data gets corrupted for any reason, I do not want to risk the corruption being passed back to my laptop. I want the NAS version to be regularly updated to reflect the laptop version.
    Thanks

  8. #7
    Super Moderator Rick Corbett's Avatar
    Join Date
    Dec 2009
    Location
    South Glos., UK
    Posts
    2,143
    Thanks
    101
    Thanked 579 Times in 464 Posts
    Quote Originally Posted by dc696969
    Thanks for your comments cafed00d and Rick Corbett - but, having read up on SyncToy's capabilities, I believe I am better off with RoboCopy.

    As I understand it, SyncToy will synchronise bi-directionally - which is not what I want. If the NAS copy of my data gets corrupted for any reason, I do not want to risk the corruption being passed back to my laptop. I want the NAS version to be regularly updated to reflect the laptop version.
    You may well be better off with Robocopy. It's excellent, very robust and provides far more options than SyncToy. You may find the addition of a GUI helpful too in building Robocopy's parameters, either the Microsoft one (which is very basic) or another freeware one, e.g. Better Robocopy GUI which explains each parameter as you select it.

    For info, SyncToy provides 3 'actions'. The default is Synchronise (bi-directional). You want one of the other 2 'actions':

    SyncToy modes.png
    Click to enlarge

    Hope this helps...

  9. #8
    New Lounger
    Join Date
    Oct 2013
    Location
    UK
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Thanks Rick - I'll definitely check out the better RoboCopy GUI.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •