Skip to content

Commit f3c5c01

Browse files
authored
Merge pull request #220 from ISISComputingGroup/add_move_old_iebx_backups
Add backup move script
2 parents eb2fa2e + 93b76c4 commit f3c5c01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
setlocal
2+
set "BACKUPROOT=\\isis.cclrc.ac.uk\inst$\Backups$\stage-deleted\%COMPUTERNAME%"
3+
if not exist "%BACKUPROOT%" mkdir "%BACKUPROOT%"
4+
cd /d C:\Data\old
5+
for /D %%i in ( "ibex_backup_*" ) do (
6+
@echo Moving %%i
7+
robocopy "%%i" "\\isis.cclrc.ac.uk\inst$\Backups$\stage-deleted\%COMPUTERNAME%\%%i" /XJ /E /Z /MOVE /NP /NFL /NDL
8+
)
9+
pause

0 commit comments

Comments
 (0)