]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/cats/make_sqlite3_catalog_backup.cmd
kes Add context menu for floating a window.
[bacula/bacula] / bacula / src / win32 / cats / make_sqlite3_catalog_backup.cmd
index 9af7713558a636d736317fcef2cff035fbae7f03..7cdd00ba9c94874c8350203279d350c35b4f9772 100644 (file)
@@ -1,38 +1,38 @@
-@ECHO off
-REM 
-REM  This script dumps your Bacula catalog in ASCII format
-REM  It works for MySQL, SQLite, and PostgreSQL
-REM 
-REM   %1 is the name of the database to be backed up and the name
-REM      of the output file (default = bacula
-REM   %2 is the user name with which to access the database
-REM      (default = bacula).
-REM   %3 is the password with which to access the database or "" if no password
-REM      (default "")
-REM 
-REM 
-@ECHO on
-
-DEL /f "@working_dir_cmd@\%1.sql" 2>nul
-
-ECHO .dump | "@bin_dir_cmd@\sqlite3" %1.db > "@working_dir_cmd@\%1.sql"
-
-@ECHO off
-REM 
-REM   To read back a MySQL database use: 
-REM      cd @working_dir_cmd@
-REM      rd /s /q @SQL_BINDIR@\..\data\bacula
-REM      mysql < bacula.sql
-REM 
-REM   To read back a SQLite database use:
-REM      cd @working_dir_cmd@
-REM      del /f bacula.db
-REM      sqlite bacula.db < bacula.sql
-REM 
-REM   To read back a PostgreSQL database use:
-REM      cd @working_dir_cmd@
-REM      dropdb bacula
-REM      createdb bacula
-REM      psql bacula < bacula.sql
-REM 
-EXIT /b 0
+@ECHO off\r
+REM \r
+REM  This script dumps your Bacula catalog in ASCII format\r
+REM  It works for MySQL, SQLite, and PostgreSQL\r
+REM \r
+REM   %1 is the name of the database to be backed up and the name\r
+REM      of the output file (default = bacula\r
+REM   %2 is the user name with which to access the database\r
+REM      (default = bacula).\r
+REM   %3 is the password with which to access the database or "" if no password\r
+REM      (default "")\r
+REM \r
+REM \r
+@ECHO on\r
+\r
+DEL /f "@working_dir_cmd@\%1.sql" 2>nul\r
+\r
+ECHO .dump | "@bin_dir_cmd@\sqlite3" "@working_dir_cmd@\%1.db" > "@working_dir_cmd@\%1.sql"\r
+\r
+@ECHO off\r
+REM \r
+REM   To read back a MySQL database use: \r
+REM      cd @working_dir_cmd@\r
+REM      rd /s /q @SQL_BINDIR@\..\data\bacula\r
+REM      mysql < bacula.sql\r
+REM \r
+REM   To read back a SQLite database use:\r
+REM      cd @working_dir_cmd@\r
+REM      del /f bacula.db\r
+REM      sqlite bacula.db < bacula.sql\r
+REM \r
+REM   To read back a PostgreSQL database use:\r
+REM      cd @working_dir_cmd@\r
+REM      dropdb bacula\r
+REM      createdb bacula\r
+REM      psql bacula < bacula.sql\r
+REM \r
+EXIT /b 0\r