* Web.csproj:

* App.master:
* IModule.cs:
* IRenderer.cs:
* DataManager.cs:
* ITagHandler.cs:
* ViewRenderer.cs:
* ResultPages.cs:
* BBCodeHelper.cs:
* IViewRenderer.cs:
* Entity.cs:
* YavscModel.csproj:
* OAuth2.cs:
* Calendar.cs:
* Profile.aspx:
* ApiClient.cs:
* MapTracks.cs:
* SalesCatalog.csproj:
* EntityQuery.cs:
* AdminController.cs:
* BlogsController.cs:
* GoogleController.cs:
* SimpleJsonPostMethod.cs:
* JsonReaderError.cs:
* AccountController.cs:
* JsonReaderError.aspx:
* GoogleErrorMessage.cs:
* GoogleErrorMessage.aspx: 

* Catalog.cs: refactoring

* Makefile: preprod is from local domain, and prod is for
  lua.pschneider.fr
This commit is contained in:
Paul Schneider 2015-01-21 18:50:02 +01:00
commit 8301159645
29 changed files with 969 additions and 314 deletions

View file

@ -13,13 +13,12 @@ namespace Yavsc.Admin
{
da = datac;
}
public Export CreateBackup ()
{
Environment.SetEnvironmentVariable("PGPASSWORD", da.Password);
Export e = new Export ();
string fileName = da.BackupPrefix + "-" + DateTime.Now.ToString ("yyyyMMddhhmmss")+".tar";
FileInfo ofi = new FileInfo (fileName);
Export e = new Export ();
e.FileName = ofi.FullName;
/*
Exec ("pg_dump", string.Format (
@ -65,10 +64,12 @@ namespace Yavsc.Admin
*/
return t;
}
public TaskOutput CreateDb ()
{
return Restore ("freshinstall", false);
}
public Export TagBackup (string filename, string [] tags)
{
/* FileInfo fi = new FileInfo (filename);