|I've already created a batch file with the purpose of backing up a folder that changes over time. I tried using the following code in the hopes that, instead of over-writing, it'd create another copy of the folder with a different name. (Ex. Folder, Folder(1), Folder(2), etc.)|
@ echo off
title Confirm Server Backup
echo You are about to attempt a world backup.
title Dumping files...
xcopy "O:\Users\Koaten\Desktop\Beta_Server\Server\Factions of Nature" "O:\Users\Koaten\Desktop\Beta_Server\BackupTemp\BackupFolder" /e
title Creating backup
echo Now transferring to backup folder...
xcopy "O:\Users\Koaten\Desktop\Beta_Server\BackupTemp" "O:\Users\Koaten\Desktop\Beta_Server\Backup" /e
echo Backup successful!
How would I have it create a new and renamed version of "BackupFolder" each time I run this script? Also, if possible, would there be a way to have this script run automatically each day?
Any input would be appreciated.
Edit: I forgot to mention that anything within "Beta_Server" cannot be modified. That's why I had it dump the files into another folder first, instead of just putting "Factions_of_Nature" inside an empty shell-folder.