473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

batch script and SharePoint backup smigrate

20
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.
Jun 27 '08 #1
4 2961
harshadd
176 100+
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
Jun 28 '08 #2
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?
Jul 10 '08 #3
Nepomuk
3,112 Expert 2GB
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
Jul 10 '08 #4
harshadd
176 100+
please post ur new question in new thread and let me know the theread in personal message. I will answer you there.

rgds
Harshad
Jul 14 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Sam | last post by:
Hello everyone, I have around 20 reports in an ASP web-application which connects to a SQL Server 2000 dB, executes stored procedures based on input parameters and returns the data in a nice...
4
by: Bill | last post by:
I need help closing a CMD window when it is executed from Access. 1) The batch file is called from Access. 2) Access closes, 3) the batch runs a copy of the access database (creating a backup)...
1
by: Crash | last post by:
Hi, ..NET v1.x SP1 VS 2003 SQL Server 2000 SP3 Server 2000, XP, Server 2003 I would like to programmatically execute {possibly many} SQL Server batch scripts. Aka I have many scripts that...
4
by: | last post by:
Hello, I am attempting to convert multiple .wav files to the .flac format via a batch script. I know that this can be done with numerous software implementations automatically for me; however, i am...
5
by: benyod79 | last post by:
I'm hoping someone will be able to assist with this one. Using a scheduling program I'd like to run a batch file that runs a macro to creat e a copy of the opened database. Then, using batch again,...
2
by: m19peters | last post by:
We have a script that I had to rework a little bit for 2005 that does a full backup for every database on the server... For some reason on some nights the script does not backup all databases......
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
0
by: Daf19 | last post by:
Hello, I am having trouble with WSS 2.0 and need help. I have scheduled my smigrate back ups nightly, but most of them fail with the error 0x2. When I manually run the commands a minute into the...
8
by: santhanalakshmi | last post by:
Hi, my batch file named cpf.bat COPY C:\Progra~1\Micros~1\MSSQL\BACKUP\acaddb.bak F:\DATABACKUP\acaddb.bak Its working fine. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.