smurfexe Posted July 18, 2022 Share Posted July 18, 2022 hi, im trying to make a batch script that copies my backups to a diffrent pc. the issue is i cant find a way to only upload the new files. this is what i have so far but this only copies (Backup-world-2022-7-18--19-05.zip) if you look at the screenshot that is attached you can see that all backups have a date at the end. and im trying to only upload the latest backup without changing the script everyday. i tried to use (Backup-world*.zip) but this copied all backups. does anyone know a solution for this? copy "C:\Users\server\Desktop\1.19 werkend\backup\world\Backup-world-2022-7-18--19-05.zip" \\UWU\minecraftbackups Link to comment Share on other sites More sharing options...
dark_pyrro Posted July 19, 2022 Share Posted July 19, 2022 You say "the new files". So, can it be several or just one (1) on each backup occasion? Have you looked into using robocopy? Link to comment Share on other sites More sharing options...
NoExecute Posted July 19, 2022 Share Posted July 19, 2022 It would maybe be a little more helpfull if you showed us the script itself 🙂 But, have a look at powershell maybe ? Link to comment Share on other sites More sharing options...
smurfexe Posted July 21, 2022 Author Share Posted July 21, 2022 i made it work using xcopy and powershell Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.