Window’s robust copy (robocopy) command can be used to reliably back-up files. Scheduling a robocopy script is a very effective method for backing up Iguana log files (or other files).
Note: The screenshots on this page are from Windows 10 — the screens will vary somewhat for different versions of Windows.
Schedule Windows robocopy to backup iguana log files.
Create a batch file (using the robocopy command) and schedule to run at particular time(s) using the Windows Task Scheduler.
Follow these steps to schedule a robocopy backup:
- Create a robocopy-backup batch file:
- Create a robocopy command similar to this one which copies files from a source directory (like: C:\IguanaLogs) to a destination drive (like: \\NAS\backupfolder).
- Save the command in a file named Iguana_log_backup.bat or similar.
- Open the Windows Task Scheduler:
- Create a new Basic Task:
Tip: The Basic Task option uses a Wizard to create the task — if you prefer a a more comprehensive tabbed “properties style” view you can choose Create Task instead.
- Follow the steps in the Task Wizard:
- And that’s it you’re done — task created!
How it works [top]
We use a robocopy command to copy the Iguana log files to a remote disk device. The robocopy command is saved as a batch file and then scheduled to run at particular time(s) using the Windows Task Scheduler.
Robocopy command options:
- Source directory – C:\IguanaLogs
- Destination directory – \\NAS\backupfolder
- /ZB – Restartable backup mode
- /MINAGE:30 – backup all log files older than 30 days
- /LOG+:\\NAS\backuplog.txt – Log the results of the backup in backuplog.txt
- /TEE – Output to console window and log file
- /NP – Reduce progress logging
Tip: You can also schedule the robocopy batch file using other scheduling software if you prefer (some companies may prefer 3rd party scheduling solutions).
More information [top]