Home Page link  

RMS 1.2 Database Backup

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
RMS 1.2 Database Backup Gerd 08-28-2005
Posted by Gerd on August 28, 2005, 6:58 am
Please log in for more thread options
I am looking for a small batch files that backs up my POS database on a
daily basis where the backup file name is the system date and time.

I found a batch file backup with a fixed file name on MS Customer Source but
would rather want to keep daily copies.




Posted by Antonio Mazzeo on August 29, 2005, 10:07 am
Please log in for more thread options

>I am looking for a small batch files that backs up my POS database on a
>daily basis where the backup file name is the system date and time.
>
> I found a batch file backup with a fixed file name on MS Customer Source
> but would rather want to keep daily copies.

BACKUP DTABASE yourdbname TO DISK = 'yourpathbackupdb_' +
str(year(getdate())) + str(month(getdate())) + str(day(getdate())) +
str(datepart(hh,getdate()))+str(mi(getdate()))+str(datepart(ss,getdate()))
'.bck'





Posted by Gerd on August 29, 2005, 4:00 am
Please log in for more thread options
Thanks Antonio, that's exactly what I was looking for.

>
>>I am looking for a small batch files that backs up my POS database on a
>>daily basis where the backup file name is the system date and time.
>>
>> I found a batch file backup with a fixed file name on MS Customer Source
>> but would rather want to keep daily copies.
>
> BACKUP DTABASE yourdbname TO DISK = 'yourpathbackupdb_' +
> str(year(getdate())) + str(month(getdate())) + str(day(getdate())) +
> str(datepart(hh,getdate()))+str(mi(getdate()))+str(datepart(ss,getdate()))
> '.bck'
>
>
>




Posted by Gerd on August 29, 2005, 5:00 am
Please log in for more thread options
Antonio,

I just tried to run the following db_backup.cmd but get an error on the +
sign. Here is the exact syntax of the command with the error message:

C:Program FilesMicrosoft Retail Management System>OSQL -U UserName -P
password -S TCS50
-Q "BACKUP DATABASE main TO DISK = 'c:Program FilesMicrosoft Retail
Management SystemBackupBackup-' + str(year(getdate())) +
str(month(getdate())) + str(day(getdate())) '.bck' WITH FORMAT, STATS"
Msg 170, Level 15, State 1, Server TCS50, Line 1
Line 1: Incorrect syntax near '+'.

>
>>I am looking for a small batch files that backs up my POS database on a
>>daily basis where the backup file name is the system date and time.
>>
>> I found a batch file backup with a fixed file name on MS Customer Source
>> but would rather want to keep daily copies.
>
> BACKUP DTABASE yourdbname TO DISK = 'yourpathbackupdb_' +
> str(year(getdate())) + str(month(getdate())) + str(day(getdate())) +
> str(datepart(hh,getdate()))+str(mi(getdate()))+str(datepart(ss,getdate()))
> '.bck'
>
>
>




Posted by Antonio Mazzeo on August 29, 2005, 3:30 pm
Please log in for more thread options

> Antonio,
>
> I just tried to run the following db_backup.cmd but get an error on the +
> sign. Here is the exact syntax of the command with the error message:
>
> C:Program FilesMicrosoft Retail Management System>OSQL -U UserName -P
> password -S TCS50
> -Q "BACKUP DATABASE main TO DISK = 'c:Program FilesMicrosoft Retail
> Management SystemBackupBackup-' + str(year(getdate())) +
> str(month(getdate())) + str(day(getdate())) '.bck' WITH FORMAT, STATS"
> Msg 170, Level 15, State 1, Server TCS50, Line 1
> Line 1: Incorrect syntax near '+'.

DECLARE @fullpath nvarchar(255)

set @fullpath = 'c:Program FilesMicrosoft Retail
Management SystemBackupBackup-' + str(year(getdate())) +
str(month(getdate())) + str(day(getdate())) + '.bck'


BACKUP DATABASE main TO DISK = @fullpath WITH FORMAT, STATS

sorry for my error
antonio





Similar ThreadsPosted
Backup Database problems Help February 23, 2007, 4:02 am
Database Backup Error February 25, 2007, 11:54 pm
Database backup whilst the POS is in use February 25, 2009, 2:48 pm
restoring a corrupt HQ backup database? July 15, 2005, 3:52 pm
Offline database sync and backup January 11, 2007, 2:05 pm
Backup database through Store Operations Administratro December 7, 2007, 10:30 am
DB Backup with date & timestamp in the backup name March 15, 2006, 9:16 pm
Why is SQL Server Backup 4x Larger than RMS Backup? August 23, 2009, 12:45 am
Backup RMS to CD November 21, 2006, 10:59 am
backup for SO April 25, 2007, 2:09 am

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap