Skip to content

Commit

Permalink
Add backup move script
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd committed Jan 21, 2025
1 parent eb2fa2e commit 93b76c4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions installation_and_upgrade/move_old_ibex_backups.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
setlocal
set "BACKUPROOT=\\isis.cclrc.ac.uk\inst$\Backups$\stage-deleted\%COMPUTERNAME%"
if not exist "%BACKUPROOT%" mkdir "%BACKUPROOT%"
cd /d C:\Data\old
for /D %%i in ( "ibex_backup_*" ) do (
@echo Moving %%i
robocopy "%%i" "\\isis.cclrc.ac.uk\inst$\Backups$\stage-deleted\%COMPUTERNAME%\%%i" /XJ /E /Z /MOVE /NP /NFL /NDL
)
pause

0 comments on commit 93b76c4

Please sign in to comment.