General (General)
MarcEisenmann - 10:11, Monday 02 September 2024 (3704)
robocopy test

I set up on PCI a test robocopy script that should automatically copy the folder 'C:\Users\tama3\Dropbox\PCI\robocopy_test' to the NAS folder '\group\tama300\MIR' everyday at 2 in the morning.

I wrote a small script 'robocopy_test' saved on pc desktop and set up a recurring task from windows task scheduler 'Robocopy script'

I'll play a bit with it during this week and if everything goes smoothly I'll set up the back-up of PCI and BIGFOOT pc.

Comments related to this report
MarcEisenmann - 16:08, Tuesday 03 September 2024 (3706)

The initial version did not work so I had to modify the file (the 'robocopy_test.bat' on PCI pc desktop).

It is working properly so I set up the daily back-up of the dropbox to the NAS BIGFOOT folder.

I used the following parameters :

/e : copy folders and sub-folders

/copy:DATSO : copy data, attributes, timestamps, security and ower infos of all files

/r:5 : retry 5 times to run

/w:5 : wait 5s before new trial

/MT:64 : multi-thread copy

/tee : display output in console (maybe can be erased for the automatic back-up)

/log+:Z:\group\tama300\MIR\Shareslog_ShareName_%date:~-10,2%-%date:~7,2%-%date:~-4,4%.txt : create daily log file

/v : verbose

MarcEisenmann - 11:14, Wednesday 04 September 2024 (3708)

This night it took roughly 2h to perform this automatic back-up.

 

There is also now /purge option that will remove deleted files from the source folders.

I removed the /v and /tee options.

MarcEisenmann - 17:43, Wednesday 04 September 2024 (3709)

As the C directory of PCI PC is full I moved the Dropbox folder to the D directory.

I modified the robocopy script accordingly.

Don't forget to update the saving folder for all PCI labview scripts to avoid crash.