I have a very specific question for you.
Is there a program that copies a folder to another path at regular intervals, but then automatically renames the folder to the date, time and year? Or always created a parent folder?
The content is a Minecraft server and the latter was sometimes grooved…
Therefore I would like to make a backup to my NAS (a Windows share) every 10 minutes.
The operating system is Windows 10 Professional.
Greetings and thanks in advance
Max from the Allgäu
How about just adding the folder to one of the libraries and turning on file version history? You can then set the interval to 10 minutes.
Making a full copy every 10 minutes sounds like a lot: 144 backups a day? What is the amount of data?
If this is really wanted, I would call a ROBOCOPY script via the task schedule.
@ECHO off
REM == Time stamp for the file name: ==
FOR / f "delims =" %% a in ('wmic OS Get localdatetime ^ | find "."') Do set dt = %% a
SET TimeStamp =% dt: ~ 0.4% -% dt: ~ 4.2% -% dt: ~ 6.2% _% dt: ~ 8.2 %% dt: ~ 10.2 %% dt: ~ 12.2%
REM == Names of files and folders: ==
SET LogFile = D: \ Logfile.log
SET Source = C: \ Your \ Dest \ Path
SET DestPath = D: \ Backups \
SET Dest =% DestPath %% TimeStamp%
REM == ROBOCOPY arguments: ==
SET CopyMode = / E
SET options = / MT: 8 / R: 2 / W: 2 / DST
SET logging = / TEE / FP / NJH / NJS / NP / LOG +: "% LogFile%"
SET mode =% CopyMode% / DCopy: T / FFT
SET what = / XJ / XA: SH
REM == Run: ==
ECHO% TimeStamp%: Start copy >> "% LogFile%"
ROBOCOPY "% Source%" "% Dest%"% mode%% what%% options%% logging%
ECHO ready >> "% LogFile%"
ECHO. >> "% LogFile%"
Can the folder be completely copied while the files are open?!