Hi Nick,
The command line for my 'robocopy' command is as follows:
'robocopy \\BrennanB2\Music \\VHost-SV1\Public\All_Music\ /MIR /R:2 /W:5 /log:D:\Public\Backup_Reports\B2-VHost-SV1\Music.txt /tee /NP'
I have this command line in a 'Backup_B2.bat' batch file and then set up Windows Scheduler to run this automatically each night
It assumes that the '\Public\All_Music' directory exists on the target. 'robocopy' will create the artist and album directories and folders as it does the backup.
It also assumes that there is a directory '\Public\Backup_Reports\B2-VHost-SV1\ on the target's 'D:' drive.
You can change any of the file directories in the command to suit your PC and B2 set up.
Working along the above string:
I have a network location in my Win 10 server (the Target) that is mapped to my B2 which is '\\BrennanB2' (the Source)'.
1. '\\VHost-SV1' is my backup server name (the Target).
2. '\Public\All_Music' is my backup music folder on the backup server (the Target).
3. '/MIR' is a robocopy option to ensure that the target (the backup directory is an EXACT copy of the source (the B2 music directory (see note A below).
4. '/R:2' is the number of retries if there is a network 'glitch'.
5. '/W:5' is the wait time in seconds on the retry if there is a network 'glitch'.
6' '/log:D:\Public\Backup_Reports\B2-VHost-SV1\Music.txt' this creates a backup log file report called 'Music.txt' on my backup server VHost-SV1 in 'D:\Public\Backup_Reports\B2-VHost-SV1\'.
7. '/tee' ooption to send the report output to the PC screen that robocopy is running on.
8. '/NP' option to supress the percentage progress (makes the report easier to read through.
Note A: The 'MIR' option causes an exact mirror of the source directory. This means that if there are files in the target directory that are not present in the source directory, then the extra files in the target directory will be deleted.
Note B: You can use drive letter options instead of network location references; ('Z:\Music' instead of '\\BrennanB2\' for both souce and target references).
Note C: More information on 'robocopy' came be found by googling 'robocopy'.
I am in the process of documenting the complete setup process for the forum, but it is taking me longer than I estimated.
I have recently found a free software called 'WinRobocopy' which is a GUI implementation of 'robocopy' so that might be easier for you to use.
Regards,
Peter.