How to backup your 'My Documents' folder to the network drive using robocopy.
Note: this instruction comes with absolutely no guarantees and is generally for the author only. That being said, hopefully it is useful for you, and if you see any issues, please let me know.
robocopy should already be on your machine with standard Windows installation
robocopy
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
Make sure that all files within your My Documents folder are those that you want to back up (i.e. no confidential or personal information).
Make a new folder in the target drive where your data will be backed up to, by replacing <your_name> with your actual name:
Create the new folder within: X:\DNA_Archive3
as <your_name_backup\backup>
. For example:
X:\DNA_Archive3\jane_doe\backup
Use start menu button, click search, enter 'cmd' then click cmd.exe when found.
The prompt should show C:\Users\doej
, where your name is in place of 'doej'
Replace 'sutherlandb' with your username, and with the correct folder name within the path.
robocopy /r:0 /w:0 /s /e /np /copy:DAT /log:X:\DNA_Archive3\sutherlandb_backup\backup_2019-06-25.log C:\Users\sutherlandb\Documents\ X:\DNA_Archive3\sutherlandb_backup\backup\
Flags explained:
/r = Specifies the number of retries on failed copies. The default value of N is 1,000,000 (one million retries).
/w = Specifies the wait time between retries, in seconds. The default value of N is 30 (wait time 30 seconds).
/s = Copies subdirectories. Note that this option excludes empty directories.
/e = Copies subdirectories. Note that this option includes empty directories.
/np = Specifies that the progress of the copying operation (the number of files or directories copied so far) will not be displayed.
/copy = Specifies the file properties to be copied. The following are the valid values for this option:
D Data
A Attributes
T Time stamps
/log = Writes the status output to the log file (overwrites the existing log file).
After the job finishes, take a quick look to see that your data is all there.