Prompt
stringlengths
14
160
Instruction
stringlengths
18
2k
Response
stringlengths
8
2k
easiest way to copy data from a VM instance in GCP?
I have a VM with 60GB and 45GB is used. It has multiple users. I have deleted old users and now I have about 40GB used. I want to download all the data to my machine. How do I do that? The only way I know is with scp the command is something like this one: gcloud compute scp --recurse <$USER>@<INSTANCE>:/home/$USER ~/...
The bottleneck here seems to be that you're trying to download a considerable amount of data over SSH which is quite slow. One thing you can try to speed up the process is break down the download into two parts: Upload the content of your VM to Cloud Storage Bucket Download the content from Cloud Storage to your mach...
rsync fails to copy /home directory
What am I missing? I have Ubuntu 20.04.3 LTS with an AMDยฎ Ryzen 5 2600 six-core processor ร— 12 and 15.6 GiB memory and GNU bash, version 5.0.17(1)-release-(x86_64-pc-linux-gnu) I am using rsync with parameters in an array as follows: sudo su options=( $params$delete$crossfilesystem$excludefile$includefile ) cd / rsyn...
You see this behaviour because you used --one-file-system but your /home directory is a different filesystem from /. -x, --one-file-system This tells rsync to avoid crossing a filesystem boundary when recursing. This does not limit the userโ€™s ability to specify items to copy from multiple filesystem...
MongoDB Backups: Expire Data from Collections by Setting TTL
I have read the MongoDB's official guide on Expire Data from Collections by Setting TTL. I have set everything up and everything is running like clockwork. One of the reasons why I have enabled the TTL is because one of the product's requirements is to auto-delete a specific collection. Well, the TLL handles it quite ...
As mentioned by @D.SM data is not deleted from backup. One solution could be to encrypt your data, e.g. with Client-Side Field Level Encryption For every day use a new encryption key for your data. When your data should expire, drop according encryption key from your password storage. With this your data becomes unusa...
MongoDB Backup and Docker Problems
I am weeks trying to do backup from my docker without any success. My Docker Compose: services: mongo: image: mongo restart: always environment: MONGO_INITDB_ROOT_USERNAME: user MONGO_INITDB_ROOT_PASSWORD: password networks: - internal volumes: - /opt/rpg/mongo/data:/data/...
After weeks, i get a backup from files (not mongodump). sudo tar czvf /home/backup.tar.gz /opt/rpg/mongo And i did a repair and worked at my pc. mongod --repair ./{{folder}}
SQL Server database backup script: How to use parameters for file path/location?
I use a simple script to backup database in SQL Server: BACKUP DATABASE AdventureWorks TO DISK = 'C:\AdventureWorks.BAK' GO My goal is to backup several databases using a script. This will be used to different clients so I have use parameters that I can edit every time I need to run the script. SQL Server says that m...
You can use dynamic SQL to achieve that. Also, GO limits the scope of variables (use only one at the end of the batch). declare @loc nvarchar(200) = 'D:\BAK\' declare @client nvarchar(50) = 'CLIENT001_' declare @date nvarchar(50) = '2020-02-29' exec(' BACKUP DATABASE DB1 TO DISK = '''+@loc + @client + 'DB1_' + @date ...
How do I copy folder server to server with phpseclib?
I want to create backup data from server to server using library phpseclib. This is my script: <?php include "lib/Crypt/RSA.php"; include "lib/Crypt/Base.php"; include "lib/Crypt/RC4.php"; include "lib/Crypt/AES.php"; include "lib/Net/SFTP.php"; include "lib/Math/BigInteger.php"; set_include_path('lib/'); $sftp = n...
3 Building off of your script: <?php set_include_path('lib/'); include "lib/Net/SFTP.php"; $sftp = new Net_SFTP('172.1.xxx.xx'); // source server if (!$sftp->login('root', 'xxxx')) { exit('login failed'); } $sftp2 = new Net_SFTP('172.1.xxx.xx'); // destination ser...
Why Android's allowBackup is not working?
I have in my application Android manifest: android:allowBackup="true" But in spite of using an Android 8 device the backup does not work until I manually put in the console: adb shell bmgr backup @pm@ && adb shell bmgr run and... adb shell bmgr fullbackup <PACKAGE> as says the Android developers guide to test a bac...
3 use these 2 in your manifest: android:allowBackup="true" android:fullBackupOnly="true" why we use fullBackuoOnly? Android versions before Marshmallow had a backup system that required a significant developer effort to implement. If you implemented that system, but you...
Change the TABLESPACE of the destination when restoring a database in Oracle 11g (Windows Server 2012 R2)
I was doing an import of a database (schema) from a previous version (Oracle 10g express editon) to a more recent version (Oracle 11g express edition) in Oracle from a .dmp file (I did not export, I was only responsible for make the import into the new environment), the way to do it I consulted in a previous forum and...
To clarify, you have already completed an import and the data has been loaded into the database, however, the imported objects were loaded into the Users and System tablespaces, rather than the tablespace you created for them, correct? There are a number of ways to do this, such as using the DBMS_REDEFINITION package...
backup and restore e2image how do I properly pipe the output from lzop?
I have for the longest time used dd with gzip as my backup solution. I have been experimenting with faster ways of backing up. on my Ubuntu 18.04 system, so far this was the quickest for creating a compressed backup image of an ext2/3/4 partition: sudo e2image -ra -p /dev/sda1 - | lzop -1 > `date +%F`.e2image2.lzo wh...
You can just pipe the output from lzop to dd; that's probably the simplest and most consistent way. If you know that the output device has been pre-initialized to all zero's, you can use the make-sparse.c program found in the contrib directory of e2fsprogs. The make-sparse program will skip writing blocks which are ...
Whether wordpress automatically backup old theme before updating the theme?
I have developed many scripts and have put inside the theme folder of wordpress. Today somehow the theme got updated automatically. Now all the scripts gone. Nothing was there. Whether wordpress will backup the old theme somewhere before it updating the theme automatically? PS: I haven't installed any plugin to backu...
2 Wordpress will update and overwrite all the default (included) themes when it upgrades, so your changes will be overwritten. To prevent this in future you should use a child theme, or manually upgrade by downloading the zip file from wordpress.org, unzipping it, and delet...
Service fabric backup, partition ID
If I have a statelful service fabric split into three partitions and want to backup to an external source, I can incorporate the partition ID of the service into the folder name of the external source containing the backup. When a restore is required the service instance can pass it's partition ID into the backup prov...
Yes that makes sense and you're doing it right. You can take a backup from one partition and restore it on a different partition in another service. The target service must use the same partition count and type. This way you can also use backup and restore to make a copy of an existing service, for debugging purposes...
Select Data from 2 tables where they extend the rows
My problem is this: I have two tables. One that carries the real data and another that is used as a backup. Whenever something gets changed on the real data, a trigger copies the original row into the backup-table. What I need is the following: I want to select all the original real data. This means all the entries f...
Use window functions: Create table #Real (RealID int, [Numeric] int) Create table #Backup (BackupID int, RealID int, [Numeric] int) Insert into #Real values(1, 3) Insert into #Real values(2, 19) Insert into #Real values(3, 24) Insert into #Real values(4, 5) Insert into #Real values(5, 23) Insert into #Backup values...
All users/database passwords changed after Plesk backup restore
I recently crashed my dedicated server and had to format it and reinstall a clean Ubuntu/Plesk/Apache... Thankfully I had a full Plesk backup which I was able to restore without issue, and now all of the files, databases, users and settings seem to be back correctly. Problem is for some reason, all of the passwords ar...
Looks like you have set a password while taking the backup and while restoring the backup, you have unselected the option: https://docs.plesk.com/en-US/onyx/administrator-guide/backing-up-and-restoration/restoring-data-from-backup-archives.59263/ Backup security settings. If the backup was protected with a password, ...
prevent vim from backupping large files
After configuring :set backupdir=..., anytime I save a file Vim lovely backups it in the chosen backup directory. My current problem is that backup directory size grows fast. Is there a way to tell Vim to not backup files when file-size is above, say, 10Mb? If no, can we set a cap to the backup directory size (after w...
3 You can get the current file name by: expand(@%) You can get the size of a file by: getfsize() You can add file you don't want to backup to the backupskip by: set bsk +=yourFile You can weave them together, check if the size > your threshold then skip the file, to mak...
Log File Backup and empty the file instead of deleting in linux
I have a log file which i need to take a backup, Then empty the file instead of deleting it, Deleting the file will cause someother script to get triggered, Hence i should only empty it. Please suggest me a way?
3 After you've read from the file you can just overwrite the file with > filename This overwrites the file with nothing. It is also equivalent to cat /dev/null > filename. similar solutions referenced here Share Improve this answer Foll...
AWS S3 403 server error due to backup file
Using boto for file upload, I've had a strange 403 Forbidden error, as many other users. None of the solutions provided to them worked for me. The thing is, I uploaded many files on my bucket, and most of them did work, until one gave a 403 error. I further realised that the problem was comming from a file named UUID_...
AWS S3 shall be fine with ~ in file name. Using AWSCLI aws command I was able to upload file named data.txt~. Anyway, you talk about boto being up to date. If you check README.rst of this project, you will find there: boto 2.39.0 Released: 9-Apr-2015 It is a year and 2 days today without an update. Number of issues...
Progress DB: backup restore and query individual tables
Here is the use-case: we need to backup some of the tables from a client server, copy it to our servers, restore it, then running some queries using ODBC. I managed to do this process for the entire database by using probkup for backup, prorest for restore and proserve to make it accessible for SQL queries. However, s...
Progress only supports full database backups. To get the effect that you are looking for you could dump (export) the tables that you want and then load them into an empty database. "proutil dump" and "proutil load" are where you want to start digging. The details will vary depending on exactly what you want to do and ...
prevent OS X sleep whilst running specific launchd plist
I have a global launchd plist file that runs a backup script periodically. The script is a pretty simple bash script that sets up some variables and calls duply. However the plist doesn't seem to be preventing the system from going into sleep mode. Is there a way of preventing the mac from going into sleep mode whils...
The solution that seems to be working is caffeinate -s [utility] This forces the system to stay awake until the [utility] closes. -s Create an assertion to prevent the system from sleeping. This assertion is valid only when sys-tem system tem is running on AC power. The full man page explains m...
Full Plone (folder) backup
I'm looking for a solution to make a full Plone backup: from Python folder (installed packages) to plugins and blobstorage, filestorage. I've found this, from official documentation: http://docs.plone.org/manage/deploying/backup.html but it says anything about, for example, plugins backup. edit For now, it seems that ...
The mainstream way to achieve this is by having: a data backup (use collective.recipe.backup) a buildout backup (storing it in a version control system like git or SVN). However in some special case you could like a full backup. This is especially true if you need to restore an old legacy buildout years after its cr...
What happens when a transaction is being carried out during backing up of LDF files?
My DB Admin advised that I should regularly take backup of .ldf files. Fine, this SQL post here explains this beautifully. Consider that a transaction is being done in SQL Server. And at the same time, a scheduled process tries to access the .ldf file for backing it up. What happens ? How this works ?
You must read Article Understanding SQL Server backup by Paul Randal. That is the best I can see which is available and can explain you in details various aspects. Coming to your question a transaction log backup includes all information from previous transaction log back or full backup that started the log chain. Bac...
Import/Export data in Elastic Search
I have access to an Elastic Search database but I do not have admin permission which enables me to backup data. I just can query. How to transfer all data stored in server to another server? there are millions of records. I think it can be good to export all data to csv and then download data. is there a better way? I...
There are a number of open-source projects that you can use to extract all data from your cluster -- your approach of doing a match_all won't work correctly. Here are a few open source projects: Elasticsearch Exporter = This is a node.js thing, so you have to have to install that also Elasticsearch knapsack - This is...
postgresql import backup into a new db
I am trying to restore my .sql backup of postgresql. I read its documents but I want to have clear simple command for importing my whole db (schema and data) into a new postgresql db.
First of all you need to create a database with template name template0 and use: Example: c:\program files\postgresql\9.3\bin> psql -h localhost -p 5432 -U postgres newDBname < D:\backup.sql Note: Be sure with template name as template0 and enter a new database name in place of ne...
Steps to ensure our TFS 2012 deployment is robust and recoverable from disaster
Our TFS2012 deployment is currently quite simple: Virtual Windows Server with TFS, Sharepoint, Reporting, SQL Server and Builds all on the same machine! Is using the TFS admin console backup tool and/or backup of the entire machine enough to recover from a disaster?
There is no clear-cut criteria, you may take a look at TFS planning and disaster recovery guidance for a more comprehensive answer. Shortly, you must be sure at least that Backups are saved on different hardware, and possibly copied to a remote location Along with your backups you have the recover instructions and in...
If I back up my svn repository, is that a sufficient backup of all the code/data in it?
I'm new to svn, having recently installed Tortoise svn on my Windows laptop. I'm using it in a single user capacity to keep track programming code/projects, web pages, xml, xslt, as well as a plethora of textual material I've created (novels, writings and such like). I was thinking that if everything is checked in it...
You can go for svnadmin dump. To take the dump you can use the following command. This dump will contain all the details about your repository, viz revisions, checkin details, author, time, physical files etc. So you can restore it to another repository at any time without lose of any data that you have in the current...
How to Schedule backups in SQL Azure
How can I schedule backups for my SQL Azure DBs. I suspect I need to schedule: 1) Create Database [DBCopy] as copy of [DBlive] 2) Export [DBCopy] to Azure Storage. The frequency would likely be once a day. I cannot find an Azure Scheduler to help me with this. Thanks in advance.
Have you looked into: http://blogs.msdn.com/b/sql-bi-sap-cloud-crm_all_in_one_place/archive/2013/07/24/sql-azure-automated-database-export.aspx ? Under the hood it does the exact same steps.
Backup remote server over ssh without using root [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
3 You could ssh to the remote machine as some user who has sudo rights, and have that user give the rsync command from the other end. Something like this (untested): ssh remote_user@{REMOTE_IP} 'rsync -e ssh -vauzP --delete /home/remote_user/folder/ local_user@{LOCAL_IP}:/h...
Mysqldump getting error only when trying to output to file
I am using CMD to do a mysqldump. When I run the following command it works fine: mysqldump -hmyhost -uroot -pmypass mydb The dump works just fine, however, when it is done, it seems that no .sql file is created for the mysql dump and it just outputs the db data to the screen. So, I was trying to output the contents...
Try mysql -u root -pmypass --opt mydb --no-tablespaces > C:\mypath\tofile\testdb_dump.sql
bash backup script error
So I'm writing a simple backup script that when called will either back up a specific file or all the files in my current directory into my backup directory. This is my script #!/bin/bash #verify if $1 is empty, if so, copy all content to backup directory if [ -z "$1" ] then $files=ls #Looping through files...
3 to assign a variable, you don't need the dollar sign: files=foo to save the output of an command to a var, you need do: files=$(ls) or files=$(ls /path/to/some/dir) Share Improve this answer Follow ...
tar very large files to FTP directly splited into smaller files
I need to backup a large server into FTP storage. I can tar all files, I can upload using FTP and I can split the tar file into many small files. But the problem is I can't do these three steps in one step. I can tar to FTP directly, I can tar with split, but can't tar with FTP and split. The OS is CentOS 6.2 The File...
To can tar, split and ftp a directory with one command line you need the following: split command write to the standard output only, so you can't pass the file to another command like ftp to process it, to do so you need to patch split to can use the --filter option to can pass the output file to ftp "on the fly" with...
Archive old files only AND re-construct folder tree in archive
I want to move all my files older than 1000 days, which are distributed over various subfolders, from /home/user/documents into /home/user/archive. The command I tried was find /home/user/documents -type f -mtime +1000 -exec rsync -a --progress --remove-source-files {} /home/user/archive \; The problem is, that (unde...
3 I would take this route instead of rsync: Change directories so we can deal with relative path names instead of absolute ones: cd /home/user/documents Run your find command and feed the output to cpio, requesting it to make hard-links (-l) to the files, creating the lea...
py2exe in C:\Windows\System32 on 64-bit Windows
I'm trying to run rdiff-backup under Windows 8 x64 which is written in python and apparently uses py2exe to create a Windows executable. It's written at their website that the Visual C++ 2008 redistributable is required which I installed (x86 and x64). Now, when running rdiff-backup.exe -V from any directory, it gives...
Try putting rdiff-backup.exe into C:\Windows\SysWOW64. You are experiencing Windows on Windows which causes path redirection for 32-bit processes running on a 64-bit OS.
Importing incremental backups in MySQL
I'm using the following command to create an incremental backup in MySQL mysqldump -uusername -ppassword db_name --flush-logs > D:\dbname_incremental_backup.sql However the sql file is as big as a complete backup, and obviously importing it takes a long time as well. Could anybody tell me how to create incremental ba...
mysqldump only creates full backups. There's no built-in functionality for incremental backups. For that sort of thing you probably want Percona xtrabackup but that will only work with InnoDB tables. This is usually not an issue since using MyISAM tables is considered extremely harmful.
JPA redundant databases
I'm developing a webshop using Java. I am using JPA to handle my data and store it in a database. Now I'm concerned with the scenario of losing any data. What is a best practice to prevent this? Should I write changes to a local and a remote database using to EntityManagers? I'm using a VPS, would this result in a sec...
If you want to prevent data loss due to hardware or database failure, the most obvious solution is to use a database product that has replication or hot-standby capability built in. Data that has been transferred to a remote location that you don't control would be a security concern, but the transfer itself should no...
Storing data for a python application
I am making a little program that will backup some files from a game to some site like dropbox, but instead of adding every single one of the games I want to backup by hand . I would like to make a small wizard that would append information on were the game's files are to something. For example , say that I wanted to ...
use sqlite3 and just store userdata with the name http://docs.python.org/library/sqlite3.html import sqlite3 db = sqlite3.connect("settings.db") c = db.cursor() c.execute("""CREATE TABLE IF NOT EXISTS userdata ( user_name TEXT, settings1 TEXT, settings2 T...
Incremental online backup using Delphi
I am trying to implement a new feature in our Delpi project that will help our users to make backups online on our servers, so I've used Indy FTP component to build a form that will upload / download the user files or folders But I need to offer the ability to do incremental backups. Where our users can only upload ON...
There is a Microsoft Delta Compression API that will allow you to diff and patch, however I have investigated this route before and found that using rSync or robocopy is a much easier route - especially as it will be quite hard to apply the patch/changes from the server side unless you build your own custom FTP server...
I'm not sure backing-up my mysql-db worked
I ran (on ubuntu): mysqldump -u.. -p.. --all-databases > ... When I check the size of the backup file its ~600k, however, when checking the ibdata1 file, its size is ~10MB. As you can see, I'm no expert in mysql. If I'm not wrong, there is redundancy in the ibdata file so this check isn't very meaningful. Is there a ...
1 Restoring db from the backup and comparing (at least) row counts in tables would be the best check. Ideally you want to check data as well. Share Improve this answer Follow answered Jan 17, 201...
CrashPlan setup
I finally decided to make a proper backup setup for my home computers. I have 2 laptops, mine and my wife's, both PC and two desktops one (PC) for multimedia purposes and one (Ubuntu Linux) for local backup. So currently i am using Crashplan to backup everything to the Linux server and all looks fine and dandy but i ...
As far as I know, you can not backup CrashPlan Backup Archives at CrashPlan Central. I think they do this to prevent customers to buy a licence for one machine to backup multiple computers.
Delete old backup folders over lftp / ftp
I'm writing a small backup script for my Ubuntu server. The files are tar'ed and zipped locally to a temporary folder, uploaded to the ftp server via lftp and finally deleted locally. Save files to the server: FTPSUBDIR=`date --utc +"%Y-%m-%d"` echo "mkdir -p /daily/${FTPSUBDIR}; mirror --reverse ${TEMPDIR} /daily/${F...
With just ftp operations on the remote system you would need to be more proactive on the ftp client side. Non-debugged code fragments follow... you will have to flesh out and debug. # print results of directory list to standard out ftp_dir () { typeset dir="$1"; ftp <<'FTP' login connection and cd directory comman...
iOS: How to Backup a Project?
What's the best way to backup a project? To be more specific: I have a DropBox account and I prefer to have a copy of the project over there. I assume I should copy all the h+m files. Can I copy all the xib files? does it make any sense? Can/Should I copy all the jpg/png/mp3 files that I use for resources? Is there a ...
1 You need all of those and the project files, etc. Look in the project file to see all files referenced. Check to see if you have everything by making a copy and trying to build from the copy. You'll get complaints if you missed any thing. Share Improve this...
ReadDirectoryChangesW doesn't do anything c++
Am I doing this right? I am trying to find all the changes that took place in a folder called C:\Perl After ReadDirectoryChangesW, it just gets stuck there. It doesn't move forward. Am I missing something obvious? I am trying to achieve: How can I detect only deleted, changed, and created files on a volume? Once every...
You are calling it in synchronous mode, so it's not returning until there's a change to report. This is by design. The Remarks section in the documentation explains how to call it asynchronously. It sounds like what you want is to see if something changed since some point in time. If so, this is not the API you're l...
SQL Server 2008 external disc back-up
I have an external network back up disc mapped at Y:\ , when I try to create back up on disc Y:\ I have BACKUP DATABASE [DATABASE_NAME] TO DISK = 'Y:\backup\backup.bak' WITH NOFORMAT, INIT, NAME = @BackupName, SKIP, NOREWIND, NOUNLOAD, STATS = 10 when I run it following error occurs Msg 3201, Level 16, State 1, P...
Use a UNC path (e.g. \\server\share\backup\backup.bak). Whilst you may have the Y drive mapped, the user account that SQL Server is running under doesn't. And it's that "user" that is going to perform the data access.
Android 2.2 Data Backup: How to backup when PreferenceActivity is used?
I'd like to use the backup agent for saving user preferences: http://developer.android.com/guide/topics/data/backup.html In the article, it's explained how to backup SharedPreferences: http://developer.android.com/guide/topics/data/backup.html#SharedPreferences However it's not explained how to backup when a Preferenc...
SharedPreferences is a Class with access to the preferences that the PreferenceActivity generats. In other word the default preferences use the sharedPreferences class the same way you would if you did it manualy. The key it usus is of course the key you gave it in the preferences.xml Therefore you can use SharedPref...
Shell Script Not Saving File Correctly
Hey all, I made a backup script and it will save the file but instead of the file being named 01_files.tar.gz or 01_databases.tar.gz all I get is a .tar.gz and then the rest of the script cannot work properly. Here is how I set the numbers I needs in my filename: # Date Variables DAY_OF_YEAR=$(date '+%j') DAY_OF_MONTH...
Try it like this tar -zcvf "tmp/weekly/${DAY_OF_WEEK}_files.tar.gz" $SOURCE Otherwise the shell will go looking for a variable called DAY_OF_WEEK_files. Same applies to DAY_OF_WEEK_databases.
Transferring Nintex workflows to another site
In production environment, we have a SharePoint site with some Nintex 2007 workflows. Now we need to replicate the production site for testing purposes. The target server already had Nintex installed when I restored the SharePoint backup. Unfortunately, it turned out Nintex license has expired on it so we're a little ...
The preferred method is to export your workflow from the Developer License site and then import the workflow in your newly licensed site. Once you have imported the workflow, simply save and publish.
writing perl script to take mysql incremental backup with mysqldump
I am dealing with an incremental backup solution for a mysql database in centos. I need to write a perl script to take incremental backup. then i will run this script by using crontabs. I am a bit confused. There are solutions but not really helping. I did lots of research. there are so many ways to take full backup a...
3 The incremental backup method you've been looking at is documented by MySQL here: http://dev.mysql.com/doc/refman/5.0/en/binary-log.html What you are essentially going to want to do is set up your mysql instance to write any changes to your database to this binary log. W...
Need Help regarding backup css
I need your help. My website css has been crashed due to suddenly power supply off and next while I saw css, CSS was cleaned totally. Anyone suggest me How can I get them again? Thanks in advance.
2 Retrieve them from your source code control system. If you don't have one, consider this a lesson in why you should. Share Improve this answer Follow answered Dec 14, 2010 at 12:37 Don ...
Multiple Backup Jobs Simultaneously: Theory vs Practice
While designing a fairly simple backup system for Linux in python, I'm finding myself asking the question, could there be any time advantage to backing up up several datasets/archives simultaneously? My intuition tells me that writing to several archives simultaneously would not buy me much time as I/O would already b...
It depends on your system. If you have multiple disks, it could be very worthwhile to parallelize your backup job. If you have multiple processors, compressing multiple jobs in parallel may be worth your while. If the processor is slow enough (and the disks are fast enough) that zipping makes your CPU a bottleneck, yo...
exporting data and schema of database
Does database backup exports only data or schema as well? I have one PC running DB2 database server1 and having a database XYZ,Now I want to create replica of this database on another pc running db2 database. I don't want to do this without using affecting db server1, I don't want it to stop or hang can I use db2 BA...
2 BACKUP DATABASE writes an exact image of the database (configuration, physical layout of data files, schema and data). You can use the copy the resulting backup image to another server and use RESTORE DATABASE to restore a copy of it. If the same drives / directories do ...
Downloading a full remote directory via FTP from the command line
I'm looking to put together a simple scriptable backup utility to grab all the files on a remote ftp server and drop them in a backup directory on my machine. I already tried the built-in Windows "ftp" command and Filezilla's limited command line options, but neither seems to be able to grab the whole document tree in...
Try lftp or wget and use the -m flag (see https://serverfault.com/questions/25199/using-wget-to-recursively-download-whole-ftp-directories)
proper way of renaming / backing up files
i am constantly making changes to access and excel file macros and databases. what i usually do before i modify the file is i make a copy of the file and rename it to the filename_todaysdate.ext. is this the proper/safest way of doing things?
Your backup strategy is based on copying the entire Excel or Access file ... which may be just fine for your requirements. I don't do much Excel, but with Access there are many times I prefer saving just selected pieces rather than a complete copy of the entire MDB. You can imagine how much disk space would be consu...
Taking mysql data backup with php5
I am using php5 and mysql5.- in my local server I want to take mysql database backup ( in my local server ) - just by copying the datafile ( located in mysql server in the folder data ) I have copied a particular table name account.frm file - but it is not working It is showing the table name but it is showing e...
2 I use PHP to create compressed MySQL dumps daily. If using PHP under Linux, a generic representation of what you need is: exec('mysqldump -u [username] --password=[password] [databaseName] > [sqlDumpFilename] '); exec('tar cvzf [compressedFilename] [sqlDumpFilename]'); ...
SQL Server 2008 backup tutorial
I am using SQL Server 2008 Enterprise. I am looking for a database backup tutorial for a newbie. There are some good documents on MSDN which are about backup theories (e.g. different types of backup). What I am looking for and asking here is a step-by-step tutorial which is more practical (e.g. describe which option i...
Check out http://www.sqlservervideos.com/series/sqlserver-backups/
How do I backup Oracle database (about 1TB size) in VMware without using RMAN?
It's been a while since I am struggling to find a backup solution for cold backup of Oracle database on Linux in VMware. I am obviously not looking for entire vm image backup.
2 You want a cold backup or a hot backup ? Are you using ARCHIVELOG mode or not ? Though, I really do not recommend not using RMAN, that sounds like a crazy thing to me ;) Share Improve this answer Follow ...
Is this safe? Is this OK to do in MYSQL?
I have always done this: mysqldump -hlocalhost -uuser -ppass MYDATABASE > /home/f/db_backup/MYDATABASE.sql mysql -uuser -ppass MYDATABASE < MYDATABASE.sql But, if I do this instead...is this safe? Is this identical to the above??? mysqldump -hlocalhost -uuser -ppass MYDATABASE | gzip > /home/f/db_backup/MYDATABASE.sq...
That's totally fine (and more efficient, of course!) Mysql doesn't see any difference; both methods end up passing uncompressed SQL data.
How many tasks can task scheduler run simultaneously
How many tasks can task scheduler run at the same time? I have set up three backup tasks from within SQLyog, all to start running at 12:00 am and run at subsequent 4 hours until midnight. Each task will backup all tables from three different databases to a network attached storage. Will there be any impact on the MySQ...
It's usually considered proper to space out the scheduled tasks, even if only by 1 minute. Since I don't know whether your tasks can be consolidated or optimized, and I don't know how long they'll take to run, I'll recommend you space them out by an hour or so. There is some performance impact from a backup, which is ...
SQL Server backup issue
I am using SQL Server 2008 Enterprise on Windows Server 2008 x64. I want to run daily job at mid-night every day to make full backup of database. Any reference document to follow for a newbie of this topic? thanks in advance, George
Try running the Maintenance Plan wizard, to set up a nightly backup. Later, read about backups in Books Online and Paul Randal's blog.
Secure Alternative to "wget --mirror" [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 13 years ago. Improve this question ...
Have you tried rsync? (I've never tried it with FTP before, but I'd expect that something could be done. Definitely works with SFTP/SSH.)
Upgrading my Wordpress installation...click and pray?
I never know what to do when my Wordpress installation tells me there's an update available. I am using version 2.8 so whenever there is an update, all I have to do is click update, some magic happens behind the scenes, and it gets updated. But should I create backup files? And how? I have custom themes and plugins th...
3 Backup the database, wp-content directory and configuration files first. There are plug-ins to make this easier, but since you're asking on StackOverflow, I'll assume you could write a script to do it yourself. While you're at it, add the script as a cron job. http://cod...
Copy data between tables in different databases without PK's ( like synchronizing )
I have a table ( A ) in a database that doesn't have PK's it has about 300 k records. I have a subset copy ( B ) of that table in other database, this has only 50k and contains a backup for a given time range ( july data ). I want to copy from the table B the missing records into table A without duplicating existing...
2 If the data volumes are small enough, I'd go with the following CREATE DATABASE LINK A CONNECT TO ... IDENTIFIED BY ... USING ....; INSERT INTO COPY SELECT * FROM table@A MINUS SELECT * FROM COPY; You say there are about 20,000 to copy, but not how many in the entire dat...
Backup to Another Farm with MOSS SP2
There seems to be no end to conflicting information out there regarding whether or not it is necessary to use "setsitelock" when backing up a site collection for deployment to another farm, if both farms have SP2 installed. According to Bob Fox's blog (comments disabled), it is no longer necessary: http://bobfox.secur...
IrishChieftain, I agree that things get pretty darn confusing when trying to figure out how things change between service packs, cumulative updates, "uber packages," server packages ... UGH! Hopefully, this link clears things up. Read the "Important" block, as it specifically addresses your concern: http://technet.m...
Backup/Restore Shared Services Provider on SharePoint MOSS
I'm having serious issues with backing up and restoring a shared services provider. Using the Central Administration backup I run the backup to s:\ This completes fine. I then from another SharePoint Server choose to restore a backup and point it to the UNC path \machineipaddress\s$\spbr00DF I have given everyone full...
What happens when you specify \\machineipaddress\s$ as the folder for the restore?
Temporary backup / restore of data while testing
I need to backup the original data from a table so I can fill it with test data, then restore it again after deving / testing etc.. Anyone know any quick ways to achieve this? I'm on SQL Server 2005. Thanks.
Create some temp table. Copy data into temp table. After testing copy data back and delete temp table.
AIX 5.3: How to backup full machine to single bootable tape?
Is it possible to use AIX's mksysb and savevg to create a bootable tape with the rootvg and then append all the other VGs?
3 Answering my own question: To backup, use a script similar to this one: tctl -f/dev/rmt0 rewind /usr/bin/mksysb -p -v /dev/rmt0.1 /usr/bin/savevg -p -v -f/dev/rmt0.1 vg01 /usr/bin/savevg -p -v -f/dev/rmt0.1 vg02 /usr/bin/savevg -p -v -f/dev/rmt0.1 vg03 ...etc... tct...
SQL Server 2005 Fulltext indexing prevents backups
Whenever I try to backup a database it goes until 90% and gets stuck there until I manually kill (because it doesn't stop if I try to stop it) the msftesql process. That clearly means that something makes a conflict between the fulltext indexing and the backup process. So, have you seen anything like this? If not, ho...
2 The first and obvious debug point is to disable full text indexing and try backing up the database again. If it does backup, then you know that FTS is the problem. If it doesn't, then you have another issue to find. I would also check both the SQL Logs and the Event Viewe...
Firebird nbackup: CreateFile (open) problem when there are active connections
I/O error during "CreateFile (open)" operation for file: ... The process cannot access the file 'file path' because it is being used by another process SQLCODE:-902 I got this when I try to make backup of my DB. The problem is when my app is connected to Firebird DB, when all connections are killed, it works fine. W...
Firebird server is locking database file if configured to work in "superserver" mode. This prevent any other instance of Firebird engine, including embedded ones, from access to the file. You must use remote connection string for nbackup to let it connect the database using already run Firebird server instance instead...
Uploaded a large video, then used lfs which broke my GitHub page
I am facing troubles with my GitHub local repository. This is what happened: I wanted to upload a video. So I committed and pushed using Bash. Because the video was bigger than 100 Mo, I got an error message. I deleted it, and replaced it with a smaller video (34 Mo). Already the same issue, nothing was committed (ev...
You have multiple options... The 1st one is maybe to use the reflog git reflog to find what you think is the last good commit and reset your branch to it. Read some tutorials on how to use the reflog but it's not that complicated. For example: https://stackoverflow.com/a/22303923/717372 If you don't find it (what I re...
Do I need to dump databases from a volume before backing them up?
There are plenty of resources on how to dump Postgres/Mariadb/MySQL/etc. databases from a volume/container; my question is if I need to do so before backing them up. More explicitly, is it safe to stop my MariaDB container, copy the contents of the volume to another folder, and back that up directly? Are there consequ...
It is safe to back up the files of a stopped database. People usually don't want to shut down a database that's providing some service, so they come up with methods how not to do that. One is run a dump operation that exports the contents of a database while it is serving other requests. Another is a filesystem snapsh...
Are the Azure App Service Backups stored in both paired regions?
I have an Azure App Service (Premium) that is backing up my apps on the standard schedule. All of that is working fine. My question is, where are those backups located? Are they just stored in the app's region or are they geo-replicated in the paired region as well?
where are those backups located? Are they just stored in the app's region or are they geo-replicated in the paired region as well? Automatic backups are stored in the same region (datacenter) of App Service that is backed up as given in this MS Doc. Custom backups stored in Storage Account. We can store the custom...
How To Restore Specific Schema From Dump file in PostgreSQL?
I have a dump file (size around 5 GB) which is taken via this command: pg_dump -U postgres -p 5440 MYPRODDB > MYPRODDB_2022.dmp The database consists multiple schemas (let's say Schema A,B,C and D) but i need to restore only one schema (schema A). How can i achieve that? The command below didn't work and gave error:...
You cannot do that with a plain format dump. That's one of the reasons why you always use a different format unless you need an SQL script.
Incorrect characters after restore with Docker Postgres database
I make a backup with the command docker exec -t arcane-aio pg_dump arcane-aio -c -U admin > arcane_aio_db.sql I restore the backup with the command cat arcane_aio_db.sql | docker exec -i arcane-aio psql -U admin -d arcane-aio All is good, but all Russian symbols are replaced by "?". The string value before the resto...
the cat command uses your shell character encoding. Did you try running simply the first part: cat arcane_aio_db.sql I bet it also shows the ???. You need to set the charset to the same encoding on both sides. You probably have UTF-8 on one side and some russian language on the other. The pipe, that writes to file is...
How do I keep latest 8 backup file and delete the older one
How do I keep the latest 8 backup files and delete the older one backup-Y-M-D.zip backup-Y-M-D.zip backup-Y-M-D.zip backup-Y-M-D.zip . . backup-Y-M-D.zip There are about 80 files having .zip extension all I wanted to do is to keep latest 8 files according to the date on which created. I also tried logrotate but faile...
1 If the naming convention is guaranteed you could just rely on the alphabetical ordering of the files when expanding a glob pattern to get the oldest or newest files. According to Filename Expansion: After word splitting, unless the -f option has been set (see The Set Bui...
AWS Backup Not Transitioning to Cold Storage
Our AWS costs are increasing at a steady rate each month. Looking into it, I found that none of our backups are transitioning to Cold Storage, even though every plan has a transition period set and the retention in cold storage is configured way past the required 90 days. I have read the documentation and can not see ...
2 I was trying to transition AMI when only EFS are supported. Each lifecycle rule contains an array of transition objects specifying how long in days before a recovery point transitions to cold storage, or is deleted. As of now, the transition to cold storage is ignored ...
azure python SDK retrieve backup items from recoverservices(backup)
I was told to move my bash script that reports on VM backup status, also reports VMs that are not being backed up to Azure automation account. I picked python since Automation Account doesn't have bash and I have done python scripts before for system admin purposes. I am not a python developer, and I need help naviga...
what I was looking for is in "backup_protected_item", in RecoveryServicesBackupClient constructor, here is sample code. from azure.mgmt.recoveryservicesbackup import RecoveryServicesBackupClient backup_items = backup_client.backup_protected_items.list(resource_group_name='rg_xxx', vault_name=var_vault) print(backup...
Generate Scripts for Tables and all Extended Properties
Looking for a way to generate individual scripts for each table and include any relationships or extended properties. (After getting this working I will try to generate scripts for stored procedure, and function) I am aware of the Sql-Server UI Generator (Database=>Tasks=>Generate Scripts) but that does one big file, ...
1 The answer was given by Larnu in the commnets. The comment pointed out the option to save scripts individually and I have been over looking it for years. Share Improve this answer Follow answe...
Is it possible to shrink an MS SQL DB storage allocation (not file size) during backup but not change the db?
This is a weird issue but I'm working with a DB and the IT team increased the allocated space by 60% which results in a db of 13GB allocated space. (This was to avoid so many resizes because DB was full) However for development I use MS SQL Express on my local machine. The DB backup file is only about 4GB cause it doe...
2 Is there a way to make a shrunk back up in once step? No. The empty space in the files is not copied into the backup, but the restore always creates the files with the same sizes they had when the database was backed up. I don't want to shrink production now and cause...
How to add datestamp to backup files in bash script
I created such script it needed to be run everyday in cron: db="SPECIFY_DB_NAME" #specify collections collection_list="<collection1> <collection2> <collection3>" #if its running on local machine: host=127.0.0.1 port="SPECIFY PORT" #where to dump: out_prefix=/Temp for collection in $collection_list; do echo $colle...
If it's today's date that you want, simply call out to date with the desired format: ... out_dir="${out_prefix}/${db}_${collection}.$(date +%Y.%m.%d)/" ... ... which, for values of: db="SPECIFY_DB_NAME" collection=collection1 ... and today's date, generates an "out_dir" value of: /Tmp/SPECIFY_DB_NAME_collection1.2...
How to handle the users deletion of their account from a website?
As a developer, how should a users deletion of their account from a website be handled? In the case of someone guessing the users password and deleting their account, you would want to be able to reinstate the account, so deleting it instantly and fully can't be the answer. On the other hand if you are sure you want t...
This is usually handled via so-called "soft deletes", which mark a record as deleted but don't actually delete it. This is a common scenario in many frameworks. For example Laravel uses a deleted_at timestamp property, so you can delete an account, and then run a scheduled task to really delete records that a were del...
SQL job to regularly export all stored procedures to file
As a secondary precaution to doing regular SQL backups on our SQL Server, I'd like to be able export all stored procedures, functions and triggers to a file. That way, in case of something truly catastrophic, we at least have all of our code stored separately. I know that I can generate these scripts manually throug...
You can get the procedure definitions from a query against sys.sql_modules, and export the query results using BCP. But yeah, source control would be nicer. You could of course export via bcp and add a few git commands to push the output file. Here I am joining sql_modules to procedures to limit the query only to stor...
Copying a spreadsheet values to a new sheet monthly
I am trying to create a backup function for my spreadsheet using Google script editor, am using the following code that I found in Github: function makeCopy(){ var formattedDate= Utilities.formatDate(new Date(),"GMT","yy:mm:dd''HH:mm:ss"); var saveAs = "Copy " + formattedDate; var destinationFolder = DriveApp.g...
Explanation: Unfortunately: importranges can not be allowed programmatically. So you need to set get the values from the source spreadsheet and paste them to the newly created (target) spreadsheet. copyTo can not be used between two different spreadsheets, so you can use getValues and setValues instead. The logic i...
Syntax error near unexpected token `newline' in cPanel
I am trying to back up my database in Laravel using Spatie package. Every thing worked fine till 31 Decemeber 2020 and in New Year my cron job stoped working. I don't know what happened, but on my cPanel mail I am receiving this email: /usr/local/cpanel/bin/jailshell: -c: line 0: syntax error near unexpected token `ne...
possible solutions check your php version and php multimanager in cpanel both match or not go to storage/log/laravel log read cron error in any controller use use Illuminate\Support\Facades\Artisan; Artisan::call('backup:run'); dd(Artisan::output()); now you can check your command working or not and able to find err...
Duplicating an oracle database on a computer not connected to the same network [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago. Improve th...
2 It looks as if you'd like to move one schema, not the entire database. If so, I suggest you use Data Pump Export (in the source database) to export the whole schema, and Import (in the target database) to import everything you previously exported. Depending on your databa...
AWS S3 Transfer file with expire days with s3cmd by perl
Can you help me with that script? I would like to transfer files to my bucket on S3 AWS. My code: $cmd = "s3cmd -v -c /root/.s3cfg put /var/project_db_" . $date . ".sql.xz s3://bucket600"; My second code - What I'm using. And doesn't work. $cmd = "s3cmd expire -v -c /root/.s3cfg put /var/project_db_" . $date . ".sql....
2 I searched Google for s3cmd expire and the first result took me to this page which says this: Advanced features Object Expiration with s3cmd You can set an object expiration policy on a bucket, so that objects older than a particular age will be deleted automatically. ...
How can I call a function at time of closing of JFrame?
As i want to go for backup before the closing of program.How i can call backup function when user click on (Right corner button of closing that JFrame) button closing over a JFrame? and after back i wants to be frame get disposed system get exited. I have setted default closing Operation setDefaultCloseOperation(javax...
Very simply by doing the following: Setting the default close operation to: frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); Adding a new WindowAdapter to your frame and override (hooking) on its windowClosing method like so: frame.addWindowListener(new WindowAdapter() { @Override public void wi...
why we have to backup archive log after backup full DB
i am learning about backup recovery on oracle. i see the script to backup for both DB and archive log. but i think backup archive log maybe can not use when recovering database. all data change in archive log, which was already backup, it in the backup up DB also. for exmaple: i backup DB at 1h00, finish at 2h00 at 2h...
2 An archived redo log file is a copy of one of the filled members of a redo log group. and it must be emptied to create space for the new changes that are constantly happening in your DB. But, If your database is started with archive log mode than before emptying any redo ...
Backup Sql server Database with vb.net
I have written some codes in vb.net to backup a database in local computer. In many computers it work without problem. but in a specific computer I encounter with this error :*"Timeout expired. The timeout elapsed prior to completion of the operation or the server is not responding The backup or restore was aborted." ...
2 A SqlCommand has a CommandTimeout value of 30 seconds by default. If the operation specified does not complete in that time period, an exception is thrown. If your operation requires more than 30 seconds to complete, set the CommandTimeout to a greater value. The time to ...
"BACKUP DATABASE" to shared location throws an error
I'm writing a SQL Server stored procedure to backup a database into a network shared location. The command as follows: (whole D drive has been shared) BACKUP DATABASE MyDB TO DISK = '\\192.168.1.50\d\Backups\MyDb_20200615-09.54.08.BAK' The command is working fine for a local path, but for the shared path, it throws ...
2 Yeah, longstanding issue- UNC paths are a big pain with SQL server commands, and often not usable at all. Two possibilities: Drop the backup onto a local disk and then copy it to your network path. Map the drive. Note that there are significant and painful access issue...
oracle online recovery does not change archived db
created db with dbca choosing asm, fast recovery area, archived mode. Now I want to backup it preform some tests that would change the content of the db and If need comes then recover it from the backup. I know of export/import utilities but need to use rman in case I need to move the db. I followed the following tut...
"only if badly recovered can be run" is not a known error message. NOthing changed, because you didn't put a limitation on the 'recover' step. So it recovered right back through all the online redo - right back to where it was an instant before you shut it down to do the restore/recover. You need to look at the SET ...
Backup and restore in sonarqube
I would like to backup my SonarQube production server. Can you please help with below two queries: 1\ What all things backup needs to be taken (e.g. database or which all folders from SonarQube home) 2\ Is there any solution already available which can be used directly to take backup of SonarQube. Thanks and Regards, ...
2 We regularly do backups in our company, and for that we only backup two things: the database - because it contains all the data and this is the only thing based on the upgrade notice you need for a restore https://docs.sonarqube.org/latest/setup/upgrading/ the ./extensio...
H2 Database : how unlock a database file for backup copy?
I'm using h2database version 1.4.200 with hibernate for saving in database file. My programs needs to regulary save backup and I don't care about corruption's file's problems. After looking the documentation : http://h2database.com/html/features.html#database_file_locking I decided to use parameter LOCK_FILE=NO. I sav...
Any attempt to copy the file when database is in use is a way to get a possibly corrupted backup. H2 has BACKUP command for online backups. BACKUP TO 'filename.zip' This command creates a ZIP archive with a consistent copy of the database file.
Backup azure analysis service on a storage with firewall rules
is it possible to make a backup of an azure analysis service on a storage account which ist protected via firewall rules? I have set the exception โ€œallow trusted Microsoft services to access this storage accountโ€. But If I try to set the backup on the azure analysis service side I get this error message: Invalid backu...
I don't think you can do it via only setting the exception "allow trusted Microsoft services to access this storage accountโ€ since azure analysis service is not included in the trusted Microsoft services. If you have selected allow access from selected network in the firewall and virtual networks of the storage accoun...
Backup and Restore SQL Server database from higher version to lower version
I'm looking for a way to create a command line script to backup SQL Server 2016 which can be restored in a older version SQL Server 2012. We have a daily backup from our SQL Server 2016 using the BACKUP DATABASE XXXX TO DISK = "C:\BACKUP.BAK" and this back up is provided to a 3rd party which is running an older SQL ...
2 You just simply CANNOT do this - you cannot attach/detach or backup/restore a database from a newer version of SQL Server down to an older version - the internal file structures are just too different to support backwards compatibility. And the "database compatibility lev...
Is there a convenient way to automate HomeAssistent (Hass.io) backups / snapsnots?
I was wondering if there is a convenient way to automate HomeAssistent (Hass.io) backups / snapsnots? The web frontend only allows to manually create snapshots. That's fine for the config, as it will not change a lot once you are finished. But what about the database?
I use a Python script running on the server and mimic the POST request that the web frontend uses to trigger the snapshot creation. First, get a long-lived access token. Usually they are used for add-ons, but they come in handy here. You can get one in your user profile in the web frontend, scroll down and click "Crea...
How to import .bak file into SQL Server?
I have a file with a .bak extension. How can I import this data into a database in SQL Server? Any command to import data?
2 Yes, there is such command - RESTORE DATABASE myDatabase FROM DISK = N'E:\Backups\myDatabase.bak;' But you can check restoring using SSMS. Share Improve this answer Follow answered Jun 12, ...
mongo db scheduled backup in kubernetes
I need to run a scheduled cron task in kubernetes to take mongodb back up and upload it to S3 bucket. Looking for a way to do it just via yaml file.
2 I would suggest you to use mgob which provide a yaml file for backup and upload it to S3 Object Storage.Moreover, it bring monitoring as well as notification feature. It can also be deployed on k8s. A step by step guide on running MGOB as a StatefulSet with PersistentVolu...
How can I display my Instagram backup data in a friendly way using node js? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog...
2 Probably the best way to view JSON (from the Instagram backup) is to convert it to CSV. You can upload the zip file to this JSON to CSV converter and it will automatically convert everything into individual CSV files (then you can view / analyze / format the data in Excel...
Android Studio Plugin Backup?
Is there any software or plugin to take backup of Android Studio plugins? There is settings repository but it only takes backup of settings and not plugin names.
2 You just need to backup the whole folder of ~/.AndroidStudio<version>/config/plugins. Moving it to another computer with a fresh installed Android Studio will recover all the plugins you installed. For settings inside plugins, go to ~/.AndroidStudio<version>/config/option...
What is best way to store passwords for shell script?
I have shell script (example.sh) in Ubuntu 16.04, what I will excecute with cronjob daily to backup databases and archive it in 7z arhive with password. So I need somehow pass passwords to this script. Example: #!/bin/sh mysql_user="root" mysql_pass="example" zip_pass="example2" #there goes logic for backup ... Is...
2 You can use a separate config file and store credentials in this. Read this config file in your shell script to fetch the credentials. There are some very good articles on how to do this on unix stack exchange. Refer to it for detailed info: hiding-password-in-shell-scrip...
paulvl/backup - Command Execution backup:mysql-dump custom_name
I want to write code for Executing Artisan command:: I have written already this: public function execute(){ Artisan::call('backup:mysql-dump'); it works. Creates Whole Database Backup My Question is that how to write Code for Artisan Command: (To Specify Backup File .sql Name from Code) backup:mysql-dump custom...
2 You can add argument to Artisan:call $file_name = 'backup_' . date('m-d-Y_h_i_s_a'); //Generate Backup Artisan::call('backup:mysql-dump', ["filename" => $file_name]); Share Improve this answer Follow ...
Encrypt and compress a FirebirdSQL 2.5 backup on-the-fly from Delphi7 securely
We need to protect customer data and using FirebirdSQL 2.5(.8) with Delphi 7. Also it is essential to do regular backups on "secondary" PC, or pen-drives if the "master" fails. For that we used this method, calling Gbak.exe and 7z.exe with stdin/out. Realized that was a bad idea because it's very easy to see the para...
Upgrade to Firebird 3 which added Database Encryption capability. If you don't want or cannot, I believe you might run the GBAK tool from your application with the STDOUT option but instead of using 7-zip for compression you would read that output in your application, and encrypt such input by some encryption library ...
Download files from server with WHM
I use a server with WHM. I created monthly backup, it makes full server backup to /backup folder. I can create targz file with SSH, I know how to download gziped file with pscp, but I don't know how to download it from server with link in browser. I think it's possible, because sysadmin before me did it. Can anybody ...
You want to generate a link that you can access through your browser and will be served up by the web server? (your question is a little vague) These files are stored out of the standard web directories so you could create a symlink in the public_html folder of your website to /backups and call it something obscure so...