Connecting Tech Pros Worldwide Help | Site Map

batch script and SharePoint backup smigrate

Newbie
 
Join Date: Aug 2007
Posts: 20
#1: Jun 27 '08
Hello.

I'm sorry if this is the wrong forum, but I haven't been able to get an answer at the microsoft/sharepoint forum.

I've been using this on the command prompt to make backups of sharepoint:
Expand|Select|Wrap|Line Numbers
  1. smigrate -w http://siteIWantToBackUp/ -f x:\LocationToSaveBk\fileName.fwp
I wanted a batch file and a schedule to run everyday, but I wanted the file name to be a variable so that it would be a different name everytime it was backed up. I wanted the file name to be the date of the backup.

I don't know anything about batch file programming, but someone gave me this code:
Expand|Select|Wrap|Line Numbers
  1. set fname=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
fname would be "Thr" on thursday.

So I tried to use this
Expand|Select|Wrap|Line Numbers
  1. set fname=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
  2. smigrate -w http://siteIWantToBackUp/ -f x:\LocationToSaveBk\%fname%.fwp
and it doesn't work.

Does anyone have any suggestions?

Thank you for your time and help.
harshadd's Avatar
Familiar Sight
 
Join Date: Dec 2007
Posts: 177
#2: Jun 28 '08

re: batch script and SharePoint backup smigrate


search my writeup on this forum, I have allready given a batch script to generate a dynamic name for files to be FTPed on daily basis.

http://bytes.com/forum/thread770155.html
Goodluck..
HarshadD
Newbie
 
Join Date: Jul 2008
Posts: 10
#3: Jul 10 '08

re: batch script and SharePoint backup smigrate


Quote:

Originally Posted by harshadd

search my writeup on this forum, I have allready given a batch script to generate a dynamic name for files to be FTPed on daily basis.

http://bytes.com/forum/thread770155.html
Goodluck..
HarshadD

Hi Harshad,
I need a help .
I have the requirement of logging out a user from windows.Also it should popup an alert msg befor elogging off. I thought of doing it using batch file,1st it should invoke a cmd prompt then it has to call a logoff file and enter ,.
Whta do you think any idea to solve this?
Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#4: Jul 10 '08

re: batch script and SharePoint backup smigrate


Quote:

Originally Posted by scooby dooby

Hi Harshad,
I need a help .
I have the requirement of logging out a user from windows.Also it should popup an alert msg befor elogging off. I thought of doing it using batch file,1st it should invoke a cmd prompt then it has to call a logoff file and enter ,.
Whta do you think any idea to solve this?

I'll just borrow this text from NeoPa:
You have asked your question in another member's thread. This is called thread hijacking and is not allowed on this site. There are various reasons for this, the principal of which is that it typically diverts the flow of the thread away from his needs and into yours. Another is that it will tend to mean that your new question is not seen as such, and may get overlooked by many of our experts (You appreciate that they're not looking for answered questions).
Please post your questions in their own threads in future (See How to Ask a Question).
You already opened your own thread here, so please stick to that one.

Greetings,
Nepomuk
harshadd's Avatar
Familiar Sight
 
Join Date: Dec 2007
Posts: 177
#5: Jul 14 '08

re: batch script and SharePoint backup smigrate


please post ur new question in new thread and let me know the theread in personal message. I will answer you there.

rgds
Harshad
Reply


Similar Microsoft Windows / Vista / XP / ME / 95 & 98 bytes