3korre.se

by ekorrar for ekorrar!

User Tools

Site Tools


win_backup

Mappa Nätverksenhet: net use x: \\server\share /user username password

Backupscript:

backupwin.bat
@echo off
:drive
set /p drive=Enhet(d:, e:, f:, g:, h:)?:
 
set drive=%drive%\%USERNAME%
set backupcmd=xcopy /s /c /d /e /h /i /r /y
 
echo Filerna skrivs till %drive%
 
echo ###################################
echo ### Kopiera Mina Dokument     #####
echo ###################################
echo .
echo .
ºckupcmd% "%USERPROFILE%\Documents" "%drive%\Documents"
echo -
echo -
echo -
echo -
echo ###################################
echo ### Kopiera Skrivbordet         ###
echo ###################################
echo .
echo .
ºckupcmd% "%USERPROFILE%\Desktop" "%drive%\Desktop"
echo -
echo -
echo -
echo -
echo ###################################
echo ### Kopiera  Favoriter          ###
echo ###################################
echo .
echo .
ºckupcmd% "%USERPROFILE%\Favorites" "%drive%\Favoriter"
 
echo Backup Complete!
@pause
win_backup.txt · Last modified: 2016/04/28 10:40 by ekorre