backup

How to backup alf_data directory in Alfresco

醉酒当歌 提交于 2019-12-24 06:43:47
问题 I want to Upgrade Alfresco from 3.4 to 4.0 What should I do to Backup contentstore directory and contentstore.deleted directory . 回答1: From the Alfresco upgrade documentation and backing up documentation you need to : Shut down your alfresco Save the database and copy the contenstore repository somewhere as a single unit because the database and contentstore are related. You can make as well a backup of the Solr index, but this is optional since they can be recreated from the database and

Batch file to delete all folders in a directory except the newest folder

喜你入骨 提交于 2019-12-24 05:35:08
问题 I am trying to delete old backups in a specific folder after a new backup has been done. As i do not really have experience with DOS commands i mashed a couple of scripts i found on the internet into one: ::(C)2008 "BuckFix" www.winsupportforum.de @echo off setlocal set workdir="M:\BACKUPS\CACHE_SSD\" set folder= :: get list of all folders, oldest first dir %workdir% /AD /B /t:w /OD > %temp%folder.tmp for /f "tokens=1* delims=" %%i in (%temp%folder.tmp) do set "folder=%%i" del %temp%folder

PHP download entire folder (recursive) via FTP

流过昼夜 提交于 2019-12-24 05:12:34
问题 I currently have a very large site approximately 5gb in size with 60,000 files. The current host isn't doing much in the way of helping me transfer the site to the new host and what I was thinking was to make a simply script on my new host to FTP into the old host and download the entire public_html folder (recursively) to the new server. Is this possible and if so, does anyone have any links they could share to aid in this? Much appreciated. 回答1: There are probably better mechanisms to do

PHP download entire folder (recursive) via FTP

☆樱花仙子☆ 提交于 2019-12-24 05:12:06
问题 I currently have a very large site approximately 5gb in size with 60,000 files. The current host isn't doing much in the way of helping me transfer the site to the new host and what I was thinking was to make a simply script on my new host to FTP into the old host and download the entire public_html folder (recursively) to the new server. Is this possible and if so, does anyone have any links they could share to aid in this? Much appreciated. 回答1: There are probably better mechanisms to do

Google Spreadsheet, script, backup file, subfolder

好久不见. 提交于 2019-12-24 03:19:21
问题 I need to backup a file on a daily basis, I have resolved this issue using the following script: function myFunction() { DocsList.getFileById(SpreadsheetApp.getActiveSpreadsheet().getId()).makeCopy(SpreadsheetApp.getActiveSpreadsheet().getName() + "_Backup"); } And I'm using the Time-driven trigger to set the hour I want the script creates the backup file. However, I would like these daily backups going to a specific Subfolder, lets call it "Daily Backup Folder". Can someone help me with a

Automatically backing up SQLite database

倾然丶 夕夏残阳落幕 提交于 2019-12-24 00:39:44
问题 My app uses a small SQLite database that I'd like to have backed up. I'm assuming this won't happen automatically, without my coding for it using fullBackupContent, shown below. How do I modify the content of my backupscheme.xml to set the include path correctly? I prefer to set the db location at runtime. My backupscheme.xml looks like <?xml version="1.0" encoding="utf-8"?> <full-backup-content > <include domain="database" path="device_info.db"/> </full-backup-content My manifest contains:

php PDO::FETCH_ASSOC doesnt detect select after backup in stored procedure

寵の児 提交于 2019-12-23 19:48:13
问题 I have a stored procedure which make a backup and then return 1 or 0 if there is an error or not something like this: Create procedure [dbo].[sp_IWBackup] as begin declare @route varchar(500), @answer int = 0 set nocount on set @route = 'I:\route'+(replace((replace(convert(varchar, getdate(), 21),':',';')),'.',';'))+'Full.bak' set @answer = 1 begin try backup database databasename to disk = @route end try begin catch set @answer = 0 end catch select @answer as answer end In sql it works and

What version of SQL Server do I need to move database to production server?

拥有回忆 提交于 2019-12-23 15:10:19
问题 I have just finished developing an ASP.NET on my local Windows XP machine. I used Visual Studio 2008 and SQL Server express to develop the site. My problem is that now I would like to move the SQL Server database from my XP machine to my production server. I have been reading that SQL Server express cannot export my database. Is this correct? What would be the best way to export my SQL Server Express database so that I can deploy it on my production server. IE Do I need to download and

Python: Opening a file without creating a lock

痞子三分冷 提交于 2019-12-23 11:58:36
问题 I'm trying to create a script in Python to back up some files. But, these files could be renamed or deleted at any time. I don't want my script to prevent that by locking the file; the file should be able to still be deleted at any time during the backup. How can I do this in Python? And, what happens? Do my objects just become null if the stream cannot be read? Thank you! I'm somewhat new to Python. 回答1: As mentioned by kindall, this is a Windows-specific issue. Unix OSes allow deleting. To

Backup of PostgreSQL database design - without data

丶灬走出姿态 提交于 2019-12-23 09:27:59
问题 I have tried to find a way to backup my database design without including the data stored in the database. Actually, one might say that I want to have a file that holds all "CREATE Scripts" in the database. Ideally, this file could be used to recreate the database (with no data of course). How to avoid data in a database backup? I am using pgAdmin 4.1.3 and PostgreSQL 9.6. 回答1: You can use this from psql(terminal): pg_dump -s databasename > file.dump from pg_dump documentation the "-s" dump