Prompt
stringlengths
14
160
Instruction
stringlengths
18
2k
Response
stringlengths
8
2k
Starting mongodb with plain backup of previous /data/db contents
I'be grabbed all files from /data/db dir from other sever and now trying to start mongo with it on another one. Here are the files I have: -rw------- 1 root root 1073741824 Feb 2 11:21 j._0 drwxr-xr-x 2 mongodb nogroup 4096 May 3 12:02 journal -rw------- 1 root root 67108864 Feb 12 06:43 metad...
When starting MongoDB as a service, the packaged start script will start your mongod server under a MongoDB user. Looking at a MongoDB 2.4 init.d script for mongod shows the user as "mongod". When setting up data and log directories it is important that the MongoDB user has read/write access to the directories and fil...
Simple vbscript script that checks internet link's healthiness and switches to backup connection if main dropped
I need to come up with simple solution for an internet gw in SOHO environment. It has 2 internet connections - main via adsl link and backup via USB 3G modem. Both connections export standard PPP interface, so them can easily be switched on/off via command line or scripts. Script has to be able: check if main interne...
With the following script you can check is a connection is up, add a few sleeps and loops and you are good. Function ExecPing(strTarget) Set objShell = CreateObject("WScript.Shell") Set objExec = objShell.Exec("ping -n 2 -w 1000 " & strTarget) strPingResults = LCase(objExec.StdOut.ReadAll) If InStr(strPingResu...
<ask> How to Backup and Restore HDFS
Actually i have develop application which use Hdfs to store image.Now i want to migrate server and setup hadoop again in new server.How i can backup my image file in HDFS (old sever) to HDFS in my new server ? I've try to use CopyToLocal command to backup and CopyFromLocal to restore, but i've error, when application...
2 Distcp is the command to use when performing data for large inter/intra-cluster copying. Here is the documentation for the same. CopyToLocal and CopyFromLocal should also work well for small amounts of data. Run the HDFS CLI and make sure that the files are there. Then it...
Creating TAR file reading standard output [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 11 years ago. Improve this question ...
I don't know that it's possible to pipe directly into tar (in general, that doesn't make a lot of sense), however the bzip2 command will accept - to mean to read from stdin, i.e.: mdm@deb606:~$ mysqldump --opt test1 -u root -ppassword | bzip2 - > example.bz2
One-line copy command when source and dest path are the same
I want to backup a file in some-other sub-directory different from my current directory like this: cp /aaa/bbb/ccc/ddd/eeee/file.sh /aaa/bbb/ccc/ddd/eeee/file.sh.old As you see both source and dest dir are the same, so common convention would be to change to the common directory, perform the copy im ./, then change b...
Yes. Use this: cp /aaa/bbb/ccc/ddd/eeee/{file.sh,file.sh.old} The curly braces will cause the first part of the string to be reused for each of the items separated by commas. Bash is what expands the above into two separate paths and then passes it to cp. To see what Bash would be passing to cp, simply add an echo ...
back up a postgres db and restore on another computer [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 11 years ago. Improve this question ...
pg_dumpall ? To dump all databases: $ pg_dumpall > db.out To reload this database use, for example: $ psql -f db.out postgres I had to do it with -o option for the oids
Backup files with dir structure bash script
I'm making a bash script that should backup all files and dir structure to another dir. I made the following code to do that: find . -type f -exec cp {} $HOME/$bdir \; -o -type d -exec mkdir -p {} $HOME/$bdir \; ; The problem is, is that this only copies the files and not the dir structure. NOTE: I may not use cp -r,...
This sounds like a job for rsync. You mention that this is an assignment. What are your restrictions? Are you limited to only using find? Does it have to be a single command? One way to do this is to do it in two find calls. The first call only looks for directories. When a directory is found, mkdir the correspon...
phpmyadmin No tables found in database
I'm sure that there are a lot of people facing my problem; I had copied the data folder inside mysql on the hard disk, then format my computer, then I have pasted the data folder, then all databases shows the number of tables, and when I make query show tables. Its showing all tables inside database, but when I try t...
1 I did not move any database file, but I had the same error message "No tables found in database" within PhpMyAdmin. But I could access the database by sql. I found out that it was caused by the browser. Using another browser or a private window helped. Did not try a resta...
Backing up Entities and related BlobStores in AppEngine
I have an AppEngine Java application and there are various entities that I want to backup. The catch is that some of the entities have BlobKeys saved in an attribute, and the data is put in the BlobStore. My requirement is to backup the entire database i.e. entities and Blobstore data. The experimental Datastore Admin...
Put the blobs into Google Cloud Storage rather than the blobstore. Then you can use the tools provided (e.g. gsutil) to take a backup of the blobs. There is no way to do this with blobs stored in blobstore.
IMAP attachments
I'm creating a script in PHP, which's job is to backup an IMAP server to a MySQL database. My question now is: If an email has an attachment, is that attachment embedded in the email itself or is it a separate file on the server? My reason for asking, is: Can i save the header info in a MySQL db, and thereby extract t...
Any attechment is part of the mail body. It usually is not stored in a different file than the email. Email clients split the body of the email using the mentioned MIME types. You can read it up in https://www.rfc-editor.org/rfc/rfc2045 (and the following RFCs)
will show table status display exact rows in the table?
I have a table in DB and it is approx 90 GB in space. I tried to count no of rows in the table select count(idNewsNotification) from notification and it resulted 4982397 1 row in set (59 min 48.35 sec) But when I queried using show table status like <table_name> it is showing that Engine: InnoDB Version: 10 Row_...
The fact that your count took an hour implies that you're running InnoDB (which doesn't cache this data). As such, the table status is an approximation based on other factors, and is not to be trusted. The count(*) would be accurate, but a pain to wait for. From the doc: Some storage engines, such as MyISAM, store th...
Android: API to access and/or backup system settings
Does Android store all of its system settings in a single file? Is it possible to access this file and possibly copy it to an SD card. Would be great if an API existed that you could call that copies all the system settings to an SD card and lets you restore those settings from an SD card. This could be useful where y...
Internally settings are stored in a database and you can access them via the Settings content provider. The content provider enforces permissions: you need a permission to use it, some settings are read-only, for some you need another permission to change them, and yet others are modifiable only by the system (i.e., u...
PHP Backup & Download
I'd like to create a backup script for files and folders on my server and I found this: # Name of the buckup file $filename = 'BACKUP_' . date('Y.m.d') . '.tar.gz'; # Target path where to save the file $targetPath = '/path/to/backup/'; # Directory to backup $dir = "/path/to/files/"; # Execute the tar command and s...
You may create backup files in /tmp, and than use: # Name of the buckup file $filename = 'BACKUP_' . date('Y.m.d') . '.tar.gz'; # Target path where to save the file $targetPath = '/path/to/backup/'; # Directory to backup $dir = "/path/to/files/"; # Execute the tar command and save file system( "tar -pczf ".$targetPa...
Backing up thousands of images in PHP?
I am just currently wondering how I can backup a folder which contains 8000+ images without the script timing out, the folder in all contains around 1.5gb of data, which we need to backup ourselves every so often. I have tried the zip functionality provided in PHP, however it simply times out the request due to the hu...
I would not use php for that. If you are on linux I would setup a cron job and to run a program like rsync periodically. A nice introduction about rsync. Edit: If you do want / need to go the php way, you can also consider just copying instead of using zip. zip normally doesn't do much with images and if you have a da...
Git automatic tracking of directory
I have a piece of (someone else's) software, which has an annoying tendency to every now and then destroy its workspace by corrupting important files if there's is a hard shutdown while it is running. It already is invoked via a wrapper script, so my response to this was to (since the workspace isn't that large -- l...
git add will not track deleted files, if you are looking to track deleted files as well, you can use git add -A. Otherwise, git add workspace + git commit will track new and modified files within workspace. You could use cron to back up changes on a regular interval, which might provide better protection from data l...
java Safe a snapshot of an Object thread safe
I am having a Server storing data from clients. Every Client works in his own Thread and is having one Data-Object. This Data-Object is a custom class, lets call is Data.java containing unspezific data, this could be some bytes but normally from around 100kb < Data < 2mb. Now i have a backup-thread, iterating through ...
You can lock the object with synchronized or a Lock whenever you change or read the objects. I would also use a boolean dirty; flag which is set to true whenever you alter it. That way your background thread only needs to save the objects which have changed. Since the client might be altering the data for a long per...
Backup database in SQL Server 2008 (Compatibility Level 90) restore to 2005
I have a database I was given by a client from a SQL Server 2005. When I restored it on my SQL Server 2008 R2 I made sure the compatibility level was set to 90. Now I need to back it up and give it back to them and they get the dreaded malformed headers error. I know I've done this before but cannot remember what ne...
2 OK, I guess it can't be done and has nothing to do with compatibility levels. I will use a script. Share Follow answered Aug 3, 2012 at 0:00 Paul PerrickPaul Perrick 49699 silver badges222...
Linux server backup with PHP? [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...
There are lots of possibilities, here is a very simple one we use every day: create a backup script (e.g. in bash) with the usual suspects as mysqldump, tar and date make sure, this backup script locks against double runs create a cron job, that runs every minute, checks if a flagfile exists, and if yes starts the ba...
S3 backup with a hosted server
I am attempting to build a backup script that moves a tar file from our hosted solution to our S3 bucket: mysitebackups. The problem that I'm running into is this: We cannot install any programs in on the server, and all the solutions I have found require various libraries and programs to be installed. The ideal solut...
We found an answer to this. There is a Perl script that seems to work very well. It uses core libraries for perl, so it should work for you. http://timkay.com/aws/ Thanks Tim Kay!
permanently remove revisions from SVN
Preamble My SVN hosting is provided by a 3rd party which limits my usage to 300MB. As the project is only of a moderate size, I never imagined this would be a problem. Once the app went to production, I realised that I needed some kind of backup mechanism. So I wrote a shell script that exports the database and zips u...
2 You should do the following things to fix the situation: If you have the possibility, remove all the commited zip-files from the repository. See the chapter Filtering Repository History in the SVN red book. In the future, save your zip file at a different place. It is no...
Copy neo4j database from python
I need to copy an existing neo4j database in Python. I even do not need it for backup, just to play around with while keeping the original database untouched. However, there is nothing about copy/backup operations in neo4j.py documentation (I am using python embedded binding). Can I just copy the whole folder with th...
Yes, you can copy the whole DB directory when you have cleanly shut down the DB for backup.
How can I export certain rows from a table with codeigniter?
I'm trying to create a function where users can export their entries in our system to an sql file. I found this page in the codeigniter documentation http://codeigniter.com/user_guide/database/utilities.html $this->dbutil->backup() is nearly what I need but I don't think I can run a query like SELECT id, name FROM my...
2 If you want to use that function you can create a temp table with the data you need first, then run that command CREATE TEMPORARY TABLE userexport_data AS (SELECT id, name FROM mytable WHERE user = someuser) $prefs = array( 'tables' => array('userexport_d...
Are apps that access gmail only have write-only access or full gmail access (potential security risk?)
I use a backup app to backup SMS text messages to my GMail account registered on my HTC Desire Z Android 2.3 phone. The app requests access to the gmail account. But what does this actually mean? Does it mean: the application has write-only access to the gmail - i.e. can insert emails but not delete or adjust other e...
First off: this question doesn't seem to belong on Stackoverflow. This site is for asking specific questions about coding problems, not about how some code in some program based on some SDK on some device may or may not work. If an application can access your Gmail account, as far as I know, this means full control, i...
how to create a backup at git
i am new to git. i read a few links on how to create a git repo and maintain a back up there but couldn't get any concrete material. what i have to do is that i have a server written in php which stores the files uploaded by the users. i want to create an hourly backup of the files on the git. can anyone tell me how t...
1 Because every clone of a repository is also a fully qualified repository, every clone of a repository is also a full backup. This means, if you want to create a dedicated backup, just clone it somewhere on a separate machine. Share Follo...
How to add a backup javascript file in Wordpress that initially loads off internet
I'm sure you're all aware of loading files like jquery off google. I'm trying to load a file similarly, but I want to have a backup of that file on my server incase the online version is down, and I don't know how to go about that in Wordpress. Here's what I have currently which loads it from the url wp_deregister_scr...
I think this is what you are looking for. C&P in case someone came back later looking for this and the site is unavailable: <?php $url = 'http://ajax.googleapis.com/ajax/libssss/jquery/1.6.4/jquery.min.js'; // the URL to check against $test_url = @fopen($url,'r'); // test parameters if($test_url !== false) { // test i...
Looking for incremental backup algorithm
I am looking for a solution for files and directories synchronization over WAN. It must: support Windows and Linux based OS support both textual and binary files be incremental resume broken transfers nice-to-have: support cascaded or distributed backups in order to prevent single point of failure problem. I have re...
I recommend you RMAN backup algorithm. It has the following advantages over the traditional incremental backups: Ability to Recover one block of datafile Ability to automatically backup CONTROLFILE and SPFILE Ability to delete the older ARCHIVE REDOLOG files, with the new one's automatically. Ability to perform backu...
Rails Backups, rsnapshot, duplicity, crashplan?
I was wondering what the best off-site solution for backing up a rails server on a budget is. We currently have ~30 gb of data and expect it to grow to ~500gb in the next year. We want to use rsnapshot, duplicity, or rdiff. However, we want to do nightly backups and cost is an issue, we are on a low budget and cann...
i just set up rsnapshot and it was pretty easy, i dont se why that couldnt be used on any system, then you just need to find a ftp backup service that fits your needs, i use rsyncpalace their biggest plan is 500 gb and they support rsnapshot and all the other common backup methods... (no im not a rep for them)
What is the safest way to terminate EC2 instances with attached EBS volumes and MongoDB servers
I'm currently in the development stages of a system that will use Mongo as its data store. The DB server will run on an EC2 instance, with the actual DB living on a separate EBS volume. My question is this - supposing the database is up and running, but no data is being written to or read from it, how dangerous is it ...
Terminating an EC2 instance from the AWS console is the same as selecting the OS shutdown function from inside the VM, so provided Mongo obeys standard shutdown protocol and quiesces any open database channels gracefully, everything will be fine and there will be no integrity issues on the EBS volume. Snapshotting EBS...
Is it possible to automatically backup a mysql database to dropbox? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 years ago. ...
What do you mean "mac-compliant"? If you want to run it on the mac (or linux), you should just make a weekly cronjob that runs mysqldump and stores output into your dropbox directory. The latter would require installing the dropbox daemon.
How to divert traffic to my back-up website when my site is down?
I have created a PHP website. I already have a shared hosting and bought a new VPS. Now I want to launch my website from my new VPS, but I want to keep a mirror running on my shared hosting and in case if my VPS goes down, I want the traffic to be diverted to my shared hosting for the time being. I am totally new to t...
I think you are looking for a load balancer or proxy which can route your request to a different node when one node goes down. Basically your DNS entries will point to the proxy, which will transparently forward requests to the correct node. There are some turn-key load balancers out there which are really simple to s...
C# LDAP Backup - Create an LDIF file
Does anyone know, or know of any examples of how to write a proram that backs up an ldap store to an ldif file? i need to write a program because we cannot install any other open source software like jxplorer on our machines. Any assistence will be much appreciated. Thanks
using openldap, found this: http://www.openldap.org/doc/admin/dbtools.html The slapcat program is used to dump the database to an LDIF file. This can be useful when you want to make a human-readable backup of your database or when you want to edit your database off-line. The program is invoked like this: slapc...
SQL Server: if I don't specify a RECOVERY mode for a RESTORE DATABASE, what is the default?
From: http://msdn.microsoft.com/en-us/library/ms187495.aspx Example: --Restore the regular log backup (from backup set 2). RESTORE LOG AdventureWorks2008R2 FROM DISK = 'Z:\SQLServerBackups\AdventureWorks2008R2FullRM.bak' WITH FILE=2, NORECOVERY; My question: If I don't specify NORECOVERY, will it be the default? I ...
RECOVERY is the default. See the documentation for the RESTORE command, which states: Comparison of RECOVERY and NORECOVERY Roll back is controlled by the RESTORE statement through the [ RECOVERY | NORECOVERY ] options: NORECOVERY specifies that roll back not occur. This allows roll forward to continue with the n...
Is there a way to use tortoise svn to backup my modified files?
I have a bunch of files that I've changed that I don't really want to commit, but I would like to back them up locally in case I would like to use them again. (Then I'll revert them.) TortoiseSvn working status helps to view the modified files, but I want a way to save them all to a separate directory like Backups\, ...
You can create a branch and commit those files only in that branch.
Question regarding NTFS Change Journal USN records
This maybe a somewhat silly question, but I haven't been able to find the answer anywhere. Is there any way to find out what the last record in the change journal is? When we run the FSTCL query for the first time it takes too long to enumerate all the records. Is there a easy way to find it?
FSCTL_QUERY_USN_JOURNAL returns the USN that will be used for the next record (NextUsn). The last record will normally be NextUsn minus 1. To play it safe, you could use FSCTL_ENUM_USN_DATA with USN filtering to look for NextUsn minus 1, and if it doesn't exist look for NextUsn minus 2, then minus 4, etc.
Copy SQL Server Databases Remotely
How do I copy one database on one server to the next? I am using SQL Server 2005. In the past I used Tasks -> Backup then Restore to the new database. But my server with the database is full and I can't delete anything and SQL Server only appears to allow backups to the local machine. Is there an easy way to do this...
You can just make the backup using T-SQL directly on a network share: BACKUP DATABASE MyDatabase TO DISK = '\\AnotherServer\SomeShare\MyDatabase.bak' If you prefer to use SQL Server Management Studio: that's possible as well, but not as easy as the T-SQL version, Take a look at this: Backup and Restore SQL Server Da...
Windows service does not recognize network path. Whats the workaround?
We have a Buffalo NAS drive as a backup drive. And when we map this drive as B:\ , our backup application seems to understand this and run as an application. But when run as a service, it does not recognize the mapping and crashes. I tried giving the path as \\\192.168.x.x\Backups\ as the backup path, the service run...
You can map a network drive inside the service itself using the WNetAddConnection2 API function.
Hyper-V Backup with diskshadow - when to call "end backup"?
I am implementing a backup of Hyper V VMs using diskshadow based on Windows VSS (Volume Shadow Copy Service). The implementation is pretty much as described in DiskShadow / Xcopy BACKUP of Hyper-V, where the diskshadow script is like the following: set context persistent set metadata C:\backup.cab set verbose on begi...
end backup basically signals all the vss writers that a successful backup has occurred. You probably don't want to do that until after all data has been successfully moved to a safe location. In your case, you will not want to signal a finished backup until the HyperVBackup.cmd script has finished without errors and...
mysqldump vs innodb hot-backup
I need to perform a backup of entire innodb-database into local file with possibility to restore data from it. Currently I use MySQL Community Edition, but it doesn’t have innodb hot-backup features. So I’m wondering, which negative aspects should I expect using mysqldump for hotbackup instead of innodb hot-backup fe...
Have a look at: http://dev.mysql.com/doc/refman/5.1/en/innodb-backup.html I think that the mysqldump is locking each table during the dump process. There should be no limitation in restoring the data, because you will get the data as SQL files
Where to start with backup/restore of Hyper-V in C#?
Where one would start to learn how to interact with Hyper-V thru C# to able to backup and restore virtual machines (preferably with snapshots and everything else related to backup)? I tried finding some examples / information on how to start but couldn't find anything. Maybe I was just asking wrong questions.
You can use WMI to access the virtualization services. Documentation and samples related to the WMI virtualization classes are available here.
Can I get a versioned recovery from a VIM swap file?
I have a file x.cpp which a while ago contained, say, "AAAAAAA". I accidentally copied over it with another file containing, say, "BBBBBBB". PANIC! Hang on, let's look at .x.cpp.swp -- there's a load of binary junk then "BBBBBBB" then more junk then "AAAAAAA", so it looks like the swap file contains both versions. Hoo...
No, but if you use Vim 7.3+ you can enable undofiles To get started: :he undo-persistence That way you can navigate the undo tree even after a (involuntary) close of your editor. So yes, the usual trick of going back in time, yanking, going forward in time, pasting will work even after the editor was restarted. 100...
Best Way to Create Nightly Replication of Sql Server Database
I want to create a job that runs every night. I have a database (MyDatabase) that I want to copy/replace my staging database with (MyDatabase_Stage). I presume the easiest way is to do something related to SQL Server Agent, but I have never done anything like this before. What is the best practice and easiest route to...
copy the .bak file to your staging server and restore from there using a script. Run the script on a schedule in an agent job. The benefit of a script is that you can add functionality later - for instance you might not require audit tables and these can be truncated.
How to execute long running tasks in PHP without cron
Lets imagine my situation (it's fake, of course)... I have web-site that have 1000 active users. I need to do some stuff that will be slow (database clean-up, backups) etc.. For example, it may take 5 minutes. I want to accomplish that when user opens my web-site and some params are executed (for example, he is first ...
Check Execution Operators. They may be what you are looking for. Something like this $execute = `/path/to/php/script.php`; // If you needed the output echo $execute; Once this script runs, set a flag (could be in the database or a simple write in a file or something). When the script ends, delete this flag. In all ...
Restore a Linked Server from backup
A linked server has been (accidentally) removed from a SQL Server instance and nobody knows the credentials to re-create it from scratch. So, is there a way to restore the linked server from a backup (presumably msdb) taken before its deletion?
I have finally used details in master.dbo.sysservers (SQL Server 2000) to recreate the linked server and created new credentials in order to connect. Thanks for the comments.
WHM backup and transfer
I have a web site on the cpanel(whm), I want to backup whole site and transfer it to another stand-alone server of my own, is that feasible? how to do it?
2 If the new server doesn't have cPanel I don't think there is a method of recreating automatically the account, so just try to run /scripts/pkgacct user(if you have root on cPanel server) or just use cPanel -> Backups -> Download or generate a full website backup. Copy arc...
How to recover entire backup file to MySql database?
I have a backup mySQL database file which contains a few table structures and a few default records. But when I try to recover to the new database and new system that I just installed, it fails. How can I recover the file 'db' to mysql? $ mysql --user=root < /media/Iomega_HDD/20110416/db ERROR 1046 (3D000) at line 22...
Try: mysql -u root -p DATABASE_NAME_GOES_HERE < input.sql The -p switch tells it you're going to type in a password. Because you HAVE set a password on your MySQL root account, right? Right?
Copy-Item cmdlet should only copy difference
Im writeing a backupscript useing powershell. I know that i could just use robocopy or rsync but i would like to do this in powershell. The problem i have has to do with the copy-item cmdlet. What my script does: Read var's and fills them from a csv Pings destination host Checks if Outlook is open on source host an...
Just some quick and general suggestion... I would like it to only copy the files that were changed I would copy the files comparing the source and destination modified date The second problem i have is that in Win7 there are hidden systemfolders in "Users/Documents" that link to "My Pictures" and "My Videos". I dont...
Should I back up an SQL database to file or another DB?
I want to run a daily back up of an SQL database. I was thinking I would do this to another DB (primarily to act as a safeguard against my own mistakes or user errors), but all the scripts that I've found do it to a file. Is it advisable to backup to another database, and if the data's stored as a file on the server, ...
You don't generally backup to another DB. You could mirror the data in another DB, which explains why all the scripts you found deal with files. You could always store the backups in a secure location, that would make them as secure as a normal DB that is password protected. Having your DB output to a file is prefer...
overwritten git repo with old version of git repo, game over?
Have I totally lost all my commits? I know it was dumb, and for that I am sorry, but it was an innocent mistake, not thinking a workflow through properly. EDIT the overwrite was a manual drag and drop, no terminal commands entered. I am on a mac. I have time machine, and can retrieve my old new repo (if you know what ...
well, it will be cumbersome, but your commits will probably still be there … run git fsck --full (might take a while) – it will list all dangling blobs/trees/commits. inspect each danging commit with git log/git show/gitk. when you find a head commit of a branch, recreate the branch with git branch <branchname> <sha1 ...
A problem while using rsync to backup my website ! [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...
The server you are trying to connect to is probably not listening on port 22. Are you sure an SSH server is running on hostxxx? try: ssh usernamexxx@hostxxx and verify that you can connect to the server with SSH.
IDE, Text Editor, Program that can save "snapshots" of your code? (Auto-save backups of code)
I've been looking for an IDE or Text Editor that can save "snapshots" of my code. I have been coding in a lot of new languages lately using a lot of trial and error. I often find myself wanting to revert a file or multiple files because of a coding/design decisions made in the last couple of hours or even days. It wou...
Eclipse takes a local history on a per file basis... but personally I would strongly suggest using source control for this. If you use something like git or Mercurial, your commits are all local anyway - and it means you'll have a consistent snapshot at moments where you believe you've reached a useful point. With a b...
MySQL backup strategy for high-traffic sites
I'm currently using mysqldump to back up databases that are growing rapidly in size. Though I run it late at night, there have been occasional problems when it happens to run during a moment of high traffic (which happens at night sometimes). For example, last night one of my sites locked up just after the time of the...
2 Two thoughts: run the slave. If nothing else, it gives you a warm spare for your production traffic in case of failure. You can also run reports and tools from it, freeing up cycles from your production server. get to innodb and use mysqldump --single-transaction (see ...
How to backup a database in c# through code?
For example, I deleted a record on a table on the database and my database is MS Aaccess. Any backup mechanisms that I can refer to? So that when I need a rollback of the database I just restore it quickly from code.
2 MS Access is the file based database, right? in my understanding, that means, when the connection is closed and the file is not in use, you can copy that file to another location. Here I assume the application has such privileges on the file system. Also, I agree with Mor...
How to programmatically setup an incremental mirroring service using Java / .NET
I would like to replicate / mirror a shared file system location across several mirrors. Is there any .NET / Java library to do so? or even any out of the box solution (open source prefered so we can customize it) It should be Free Lightwieight Open Source prefered Incremental Can be one way (mirroring only)
Why wouldn't you just use DFS? It's free with the Windows OS.
Restoring an old MySQL backup
I have a large file from 2007 containing a backup (as a SQL Script) of a MySQL Database. It's for an unknown version of MediaWiki. -- phpMyAdmin SQL Dump -- version 2.6.2-Debian-3sarge3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 29, 2007 at 12:42 PM -- Server version: 4.0.24 -- PHP Ver...
It would be worth to actually showing the error. But anyway, SET sql_mode = MYSQL40 might help you if the syntax is really a problem. There might be issue with something what was not keyword before and now is, you would have to escape it in this case.
Import wordpress backup - only restore missing posts?
A customer claims some posts on her wordpress site went missing when she deleted user accounts. Apparently, I really cannot find these posts in the database. (I first thought maybe they were not assigned to an author) Now I have several full backups of the site as SQL files. One missing article is in there. However, w...
You can create a temporary database, and import your latest backup into it. After that, do a INSERT IGNORE INTO your_live_data.wp_posts SELECT * FROM temporary_database.wp_posts WHERE user_id=xxx The trick is the IGNORE will ignore to overwrite any existing items, which mean only insert the missing posts. NOTE : yo...
Why is it such a mission to backup a SQL Server 2008 Express database?
I wouldn't describe myself as afraid of change - but afraid of new technologies? YES INDEED! Technologies from operating systems, to database servers just seem to become bugged, inefficient and backward the further they "progress" MSDE 2000 (what they might call "SQL 2000 Express" in today's world) BACKUP [MyDatabase]...
SOME KEY TIPS TO NOTE WHEN TRYING TO ACHIEVE USER INSTANCE BACKUP a.) Connecting Your connection string should look like this: Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDatabase.mdf;Integrated Security=True;User Instance=True;Database=MyDatabaseAlias It is essential that your connection string gives...
How to upload large SQL Files?
I have a large sql file < 600 MB. This files is backup for forum and I want to upload it to empty db. How I can upload it?? I can't use PHPMyAdmin? and I used BigDump and it doesn't insert all tables. How to do it?? Is there any other way? Thanks EDIT : I don't have access to command line, I just have my CPanel
Try the command line. Must be something like: mysql --user=name --password=pw < mysql_db_dump.sql
What effect does rdiff-backup's --exclude option have on previous increments?
Using rdiff-backup, a reverse-incremental backup tool, if I use the --exclude option to exclude some files that were previously included in earlier increments (older backups), what effect will it have?
It looks like the excluded file disappears from the latest version. $ ls -l original/ total 0 -rw-r--r-- 1 jkiv jkiv 0 2010-11-14 16:35 a.txt -rw-r--r-- 1 jkiv jkiv 0 2010-11-14 16:35 b.txt -rw-r--r-- 1 jkiv jkiv 0 2010-11-14 16:35 c.txt $ ls -l backup/ total 0 $ rdiff-backup original/ backup/ $ ls -l backup/ total 4 ...
iPad app documents folder
Is there a way to tell iTunes not to backup the contents of the apps documents folder?
Read this section of Apple's documentation. The folder Documents/ is automatically backed up. If you don't want a file to be backed up, you need to put it in either Library/Caches/ or tmp/. You can't change behavior of apps if you don't have the source code of the app.
SQL Server differential backup file size smaller than previous one?
I have a production system running on an SQL Server 2008 DBMS, in Full recovery mode. I take a full backup each day at midnight, a log backup every two hours, and a differential backup every 6 hours (06:00, 12:00, 18:00, but not midnight as the full is taken then). In recent days however I've noticed that the diff bac...
2 I had a similar situation. I had a bit thought over it and reckoned it's caused by multiple backup jobs existing for the database, which means the differential backup was mislead by the wrong backup flag. Share Follow ...
How to verify if an SQLite file is a valid Core Data store, both generally and for specific app?
I would like to verify my Core Data store (SQLite file) before loading it so that if there is any corruption, the app won't simply crash and burn. Using the iPhone SDK, is there a way to verify an SQLite file (1) generally that it is not corrupted, and (2) more specifically, whether or not the SQLite file matches one ...
TC's answer is probably the simplest. But you can also look at its metadata which will let you both know that A) it has Core Data metadata and B) what the hash values for its entities are which you can then use to confirm that you have a model which matches those hash values. You can access the metadata without loadi...
Backup SQL Server database
I can connect to remote SQL Server database and I want to create a local database copy on my system. How can I do it? When i try backup through Management studio I cannot copy backup file on my hard drive only on remote system hard drive. Copy database command also doesn't work because I have express version of SQL S...
If your local drive is accessible by the remote server, you can create your backup directly to your drive. Not to be able to create backups on a network share is just a restriction of the GUI. Use the T-SQL BACKUP command and it will work. Greets Flo
Ubuntu remote backup software like Windows Home Server [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 12 years ago. Improve this question ...
Do you want to backup windows or linux clients? It's tricky to do a full disk image 'pull' of a windows client entirtely from the Linux server without anything on the windows box. The easiest way is to run something like drivesnapshot.de periodically on windows saving to the remote server's drive networked with samba....
Is there a way to only backup a SQL 2005 database structure fully, but only the data in a certain set of schemas?
I have several schemas in my database, and the largest one ("large" meaning disk space consumed) is my "web" schema which is a denormalized copy of data in the operational schemas. This denormalized data is able to be reconstructed at anytime, and is merely there for extremely fast read purposes. Since the data is ...
2 Take a look at moving your "large" schema entities into a read-only filegroup (see http://msdn.microsoft.com/en-us/library/ms190257.aspx). This will also avoid the locking/transaction overhead on this data. You can then use partial backup to only backup the primary fileg...
SQL Server database backup: Network Service file access
When trying to run the following database backup command from my code I get an "Operating system error 5(Access is denied.)" error. This is because the log on account for the SQL Server Windows Service is 'Network Service' and that does not have access to right to this folder. BACKUP DATABASE [AE3DB] TO DISK = 'c:\AE3...
You don't go about searching for random places on C:\ where the SQL Server service account has write access... You can choose between: place the backups in the SQL Server backup location. This is specified during setup and it is properly ACL'ed so that the service account has all the necessary permissions. See 'Back...
iPhone when does data get restored from backup
When does data get restored for an app? What if I save data in the app's document directory. Then they sync with iTunes. Now iTunes has a backup. Will that data be populated to another device when they sync that new device to their iTunes or will they just get a clean install of my app? I'm trying to figure out how to...
Backups are per-device. So a backup of your iPod will not be restored to your iPhone. In other words, there is no sync.
Archiving (tar and compress) with metadata (user id, and ctime) in Python
I am in the process of backing up a filesystem and I need to make sure that the metadata is conserved (the file owner and creation time). The tarfile module in Python is really helpful, and I use it extensively in my solution. However, I cannot create the tar file with files conserving their metadata (presumably beca...
"Presumably"? You mean you don't know? Have you tried? That said, as far as I know, tarfiles doesn't preserve ctime, and there would be little point in it, as ctime should be reset when you unpack. mtime is preserved, though, and the tarfile module handles mtime. The python tarfile module uses TarInfo objects when you...
How to backup tcsh history periodically to a single file in chronological manner?
I use tcsh at work - one of the features I use extensively is command-line history completion at the shell prompt. Currently, I've limited the size of my history file to 2000 (as I don't want to slow down the shell too much). However at times I need a command I know I've used a month or two back , but by now has been ...
2000 is pretty low. You could raise that a fair amount without suffering too much. Next you probably want to store the history on logout, since this is when new commands are added to the .history file. Create a file called .logout in your $HOME (for bash users, this file is .bash_logout). In this, copy the contents of...
How can I backup a remote database schema in this environment?
I have an Oracle account (schema) of a remote Oracle database. By using this account I can do all kinds of operations such as: query, update, delete and add. But I can't use exp or imp. Now my question is how can I dump all the data in this remote database schema, include table, view, function, procedure, package.
You can use the package dbms_metadata.get_ddl to generate ddl for the objects. Read this You can generate csv files for the data that you can load with sql*loader, or generate insert statements. This will be a real pain. Especially when there is a tool available that does it for you : exp/expdp. You could try to use a...
Database maintenance with SSIS or T-SQL?
Is there any benefit to using SSIS over T-SQL to check integrity, defrag/rebuild indexes, and backup databases? Doesn't SSIS break down its internal tasks and containers into basic T-SQL statements anyways?
1 You got it. When you use the maintenance wizard, it actually creates SSIS packages and T-SQL statements in the background to do your bidding. The wizard is pretty good in that it covers most of the things that you need. Share Follow ...
Port IIS 7 Setup to another machine
What's the fastest and most efficient way of porting over an IIS setup on one machine to a blank IIS 7 install on another? Including all the sites, applications, virtual directorys, ftp accounts, etc? Thanks.
1 You can use this tool http://www.iis.net/extensions/WebDeploymentTool (it can even migrate between IIS6 and 7) Alternatively you can do it manually: http://iterat.ive.ly/index.php/2009/06/10/howto-export-iis7-configuration-to-another-webserver/ Share ...
Verifying Full database backups "WITH CHECKSUM"
We have a daily maintenance plan in SQL Server 2005 that performs a full backup to disk using the "Back Up Database Task". "Verify backup integrity" is enabled but from what I understand data integrity is only validated if the backup media contains a checksum, which is enabled by the "WITH CHECKSUM" option during the...
After further investigation it appears it is not possible to configure a task to validate the data integrity "WITH CHECKSUM" through the drag-drop features of SQL Server Management Studio alone. This command will need to be added to the T-SQL of the task
How do I read a fedora partition from windows? [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 11 years ago. Improve this question ...
I'd take a look at EXT2 IFS for Windows. Several things to keep in mind with this. Ext3 is backwards compatible with Ext2, it just doesn't write to the journal NTFS is case insensitive, this may screw with you depending on what you are moving Some filenames that are valid in Ext2/3 are invalid in NTFS/VFAT like : and...
SQL Server 2008 - Best Backup solution
I'm setting up a SQL Server 2008 server on a production server, which way is the best to backup this data? Should I use replication and then backup that server? Should I just use a simple command-line script and export the data? Which replication method should i use? The server is going to be pretty loaded so I need a...
A very simple yet good solution is to run a full backup using sqlcmd (formerly osql) locally, then copy the BAK file over the network to a NAS or other store. It's sub-optimal in terms of network/disk usage, but it's very safe because every backup is independent and given that the process is very simple it is also ver...
stsadm differential backups when directories are renamed?
currently I have a full backup running daily in SharePoint. The automated process for further copying, renames the full backup directory to backup_((date in yyyymmdd))_full. I'd like to rework to a daily incremental/weekly full schedule, but the differentials can't seem to find the last full backup to work with. I ...
The reason why differentials aren't working is because SharePoint cannot find the spbrtoc.xml file. This file records a history of the backups taken and is updated whenever you perform a backup. Renaming the backup directory is preventing SharePoint from finding this file, so it can't work out how to perform a differe...
How do I backup database from ServerGrid.com?
I have a hosting account with servergrid.com. I want to backup my database, they say I have to use Sql Server Integration Service to backup the database and I would need a commercial version of Sql Server management studio. I have Sql Server 2005 Developer Edition. I have no idea how to do SSIS backup. I tried playin...
SSIS is not really a database backup tool. If you have a fixed number of tables, you can export the data from SQL Server to comma-separated or raw files - i.e. do the data export using SSIS. It is easy to create such package using SSIS project if you have small number of tables. But if you have a lot of tables it is ...
Warm SQL Backup
We have a warm sql backup. full backup nightly, txn logs shipped every so often during the day and restored. I need to move the data files to another disk. These DB's are in a "warm backup" state (such that I can't unmark them as read-only - "Error 5063: Database '<dbname>' is in warm standby. A warm-standby databa...
The only solution I know is to create a complete backup of your active database and restore this backup to a copy of the database in a 'warm backup' state. First create a backup from the active db: backup database activedb to disk='somefile' Then restore the backup on another sql server. If needed you can use the WIT...
Python pyodbc BACKUP DATABASE TO DISK getting default MSSQL backup path added
I'm writing Python to backup MS SQL database to a different server. When I put the //remoteServer/share/filename into command, I get: pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][ODBC SQL Server Driver] [SQL Server]Cannot open backup device 'E:\Data\MSSQL15.MSSQLSERVER\MSSQL\Backup\\REMOTESERVER\SHARE\foob...
Thanks to @Gord Thompson I was inspired to make it: backup_command = """BACKUP DATABASE BaseData TO DISK = '\\\\REMOTESERVER\\SHARE\\foobar.bak';""" The \ has to be escaped with another \ for Python. Although outside the scope of this question, for the permissions to work on REMOTESERVER, I had to add the SQL Server'...
Firebird nbackup vs copy/paste
I am currently using Firebird 2.1 I found that it is possible to do a backup of a firebird database using nbackup. nbackup will lock the DB when starting the copy and unlock it when restoring as described here . However I also found out that is is possible to lock/unlock manually and also copy the DB using the copy/pa...
Locking the database with alter database begin backup;, copying the file, and then using alter database end backup; is just as safe as using nbackup, and this is also documented as one of the use cases of begin/end backup. During the backup state, the database file is not changed (the changes are instead made in the d...
libvirt: How can I automate domain xml update / verification?
I want to automate the process of backups for domains on an libvirt based Hypervisor. To gain the ability of incremental backups the »Domain XML« needs to contain: the top level qemu namespace declartion attribute and the qemu:capabilities / qemu:add elements as shown here: <domain type='kvm' id='1' xmlns:qemu='http...
To write a domain definition (configuration) from an existing XML you already have you use virsh define /path/to/def.xml. Note that the reason why backups are not enabled by your libvirt is that it's simply too old and the feature was not completed at that point. At the point when it is completed you no longer need to...
How do I export all conda environments?
I would like to export all my conda libraries in one go. So the question was partly answered in this post: Export all created conda environments for env in $(conda env list | cut -d" " -f1); do if [[ ${env:0:1} == "#" ]] ; then continue; fi; conda env export -n $env > ${env}.yml done but since i'm not so exper...
1 Found a solution: put the script in a notepad file rename the extention to .bat run it from windows explorer improved on the script as following: @echo off for /f "tokens=*" %%a in ('conda env list ^| findstr /r /c:"^[^#]" ^| findstr /v /r /c:"^base" ^| %__APPDIR__%mor...
Laravel Spatie backup save to s3 folder without creating subdirectory
I have spatie/laravel-backup v8.1.7 and I want to save to a s3 folder named backups To acheive this in filesystems.php I've added the following: 'backups' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REG...
Managed to resolve by simply renaming the following variable: 'name' => env('APP_NAME', 'laravel-backup') To 'name' => env('BACKUP_FOLDER', 'backups') This way i don't need to configure the backup disk in the filesystem.php file either - I can just use my existing s3 configuration that already defined in there.
How to restore a DB from a Heroku pg:backups copy
If I run heroku pg:backups --app MY_APP, I see: === Backups No backups. Capture one with heroku pg:backups:capture === Restores No restores found. Use heroku pg:backups:restore to restore a backup === Copies ID Started at Status Size From To ──── ─────────...
1 Backups start with b00* and are listed in the top section. I am not sure what "Copies" are, did not find anything in their docs. ❯ heroku pg:backups -r prod === Backups ID Created at Status Size Database ──── ────────...
How can a ensure a database user has privileges to make backups while I'm upgrading to CockroachDB 22.2?
In CockroachDB 22.2, the SELECT grant no longer applies on the database level, and you don't need it in order to take a backup. But in earlier versions if the user does not have SELECT on the database it fails to take a backup. Is there another way to allow backups that would work with both 21.1.x and 22.2.x so that I...
1 As part of your upgrade process, when you are on 21.2.x you can grant the CONNECT privilege on the database that needs to be backed up, and drop the SELECT privilege. You can then continue your upgrade to 22.1 -> 22.2. In 21.2, 22.1 and 22.2 a backup of a database will ac...
Ordercloud Migration to new Sandbox
we have some issues in current US West sandbox , hence would have to move our store/site and full code base with data into a new Ordercloud Sandbox , any inputs/process/ steps would be really helpful. Thanks Vinay
1 You will need to create a new marketplace in another region and manually transfer the data. We have no tools or resources available to facilitate such a transfer. Share Follow answered Sep 15, 20...
Why am I getting the error "Invalid upload source" When attempting to upload a folder from my C drive with B2's CLI tool
I am attempting to upload a folder with the server data from a game server from my C drive with the "upload-file" command using B2's windows CLI. Every time I try, I am returned with the error "Invalid upload source". I will post the command below but not put the actual bucket name. b2 upload-file BUCKET_NAME C:\Serve...
1 b2 upload-file uploads one file to the given bucket, hence it is complaining that its source is a folder rather than a single file. Use b2 sync C:\Servers b2://BUCKET_NAME/BKUPTest/ Share Follow ...
How to backup a Proxmox VM to a different node not using a cluster
I'm trying to do a simple backup and restore for two proxmox servers in a single command. So far I've got this command: vzdump <vmid> --stdout true | ssh root@<ip> -- qmrestore - --force true <newvmid> --storage <backupstoragename> but it errors with: could not get storage information for 'local': can't use storage '...
The answer to this is REAL simple! Just change the content type for the storage to include "VZDump backup file". Do this to the storage on the source and target hosts, and can be done via the web GUI. Also make sure that the target host storage supports "Disk image" for the unpacking.
Is it a good idea to backup/restore Neo4j databases with Kubernetes VolumeSnapshot?
I have a Neo4j database running on Kubernetes. I want to make scheduled backups for the database. I know that Neo4j provides a set of tools for backup and restore. However, Kubernetes VolumeSnapshot also looks viable for backup and restore. I wonder if it's a good idea to use Kubernetes VolumeSnapshot to backup/restor...
Generally, if it is not supported by the database, then it is a bad idea. Think of your database as being stored across: Database files on disk Page cache (in volatile memory) Write ahead transaction logs on disk A volume snapshot would not save enough information to get a consistent state of your database (unless t...
SQL backup error (Operating system error 5(Access is denied.))
I get this error while I want to get a backup of my files ,although I must say that I connect to another persons PC with (remote desktop connection): Backup failed for Server '10.72.47.239\gis'. (Microsoft.SqlServer.SmoExtended) ADDITIONAL INFORMATION: System.Data.SqlClient.SqlError: Cannot open backup device 'F:\FO...
1 Give a permissions to that file which one do you want to get a backup file Go to file right click and go to the property and go to security and there select which server is connect that database and there give file permission and click ok Share ...
az backup policy create with custom yearly policy json
I am trying to create an AZURE BACKUP POLICY for a single annual backup with the following policy created by me: { "properties": { "backupManagementType": "AzureIaasVM", "schedulePolicy": { "schedulePolicyType": "SimpleSchedulePolicy", "scheduleRunFrequency": "Weekly", "scheduleRunTimes": [...
@RCat In your policy, you have set the backup schedule to weekly, however the weekly retention schedule is not set. Here is sample policy for your reference. { "properties": { "backupManagementType": "AzureIaasVM", "schedulePolicy": { "schedulePolicyType": "SimpleSchedulePolicy", "scheduleRunFr...
Backup of svn repository to shared folder on NAS fails
I want to set up an automatic incremental backup of my SVN repositories. Doing that to a local folder of the same PC seems to work, but if I try to write the files directly to a shared folder (I tried 2 different QNAP nas boxes) I get various errors, always a couple of hundred lines. I tried svnadmin hotcopy C:\SVNRep...
What protocol does your NAS use? Do you see errors when you run the Backup-SvnRepository PowerShell cmdlet? What VisualSVN Server version and the version of SVN command-line tools are you using? I.e., what svnadmin --version says? Note that you can consider the built-in Backup and Restore feature. It supports backup...
Full System Linux backup with rsync via ssh to other computer
I would like to do a full system backup analogously to this thread: https://askubuntu.com/questions/7809/how-to-back-up-my-entire-system ...however, not with creating tarballs, but with rsync - and from one computer to the other over local network, via ssh. I have followed the steps and in principle, it works ok up to...
Here is my script,fyi. sudo rsync -avAX --delete --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/swapfile","/home/*/.thumbnails/*","/home/*/.cache/*"} / /mnt/rootfs Would suggest to consider the following steps, Do disk/partition clone if possible; Run the above script on...
Get an older version of your model back Anylogic
I've a question, I made some change in my model and probably did something wrong, but now every time I open my model, it crashes when I want to open something and I need to close anylogic.. So now I want to open an older version of the model, so that I can work further without having to use a backup of one week ago, i...
You can open the AnyLogic file the '.alp' file inside any text editor. You can make your changes there (but be careful) and rather make a backup before you do this. You can literally build your entire model in text mode if you want to ;-)
PostgreSQL-pgadmin format backup (.backup)
I create backup and get name base.backup. Create another copy and get name base.sql. What's the difference in backup formats .sql - .backup then using pgadmin? I would be grateful if there is a link to the source. Thanks.
You can name your files whatever you want. PgAdmin4 does not force you to use specific extensions for specific formats. It would be sensible to use *.sql for plain-format and *.backup for custom format, but pgAdmin4 does nothing to enforce (or even effectively encourage) this.
Azure Data Explorer: How to backup data from table with stream ingestion
We are ingesting data to an ADX Table using stream ingestion from an event hub source. In order to plan for backup / disaster recoverability, the documentation suggests to configure continous export to recover from local outages and provide a possibility to restore data to another cluster. Reading through the document...
The support for continuous export defined on streaming ingestion tables is still being worked on, it should complete within 2021. However, please note that for disaster recovery scenarios, this is the highest effort, lowest resiliency, and longest time to recover (RPO and RTO), so while it provides the lowest cost you...
Deja dup without Google account
I just wanted to make a backup with Deja Dup, but before I could proceed I first needed let Deja Dup access my Google account. Is it possible to skip this step? I dont need Deja Dup to access this because I only use an external HDD. From the UI of Deja Dup I cant seem to skip over it.. but maybe there are other ways t...
1 this is my own answer after one year... I emailed the google-groups and I got this answer from Michael Terry `` Hello and thanks for the report! I'm sorry Deja Dup is giving you a hassle. That is not intentional - it should be possible to use Deja Dup without a Google acc...
Azure Deny custom Policy, if vm backup not enabled
I am trying to create a custom azure policy such a way that if anyone create a vm and backup is not enabled, then the deployment should fail. I had tried the below codes, but not working. { "type": "Microsoft.Authorization/policyDefinitions", "name": "enable backuo for-windows-vm", "properties": { ...
1 This / this built-in policy helps to achieve your requirement. Share Follow answered Aug 29, 2021 at 7:48 KrishnaGKrishnaG 3,39822 gold badges77 silver badges1717 bronze badges ...
Backup & Recovery Vs Flashback in Oracle
In Oracle, Flashback is used to recover the database to a particular point. If it is so, what is the need for backup and recovery? Since flashback itself can achieve the recovery of database what is the need for backup and recovery feature of RMAN in oracle?
1 First, the retention of the flashback is limited (by the size of the undo tablespace, e.g.). Second, and more importantly - flashback is done against the same database. If you have a hardware failure on your storage device, the flashback will be corrupted just like the re...
Can I remove @img_bkp_cache generated by Hyper Backup in Synology?
I have a Synology with 2 To of disk space, and it is saved every day by Hyper Backup (with Smart Recycle). But there is a file @img_bkp_cache that is growing, and takes almost 1/5th of the total disk capacity : 368G /volume2/@img_bkp_cache 1.3T /volume2/Samba Is it safe to remove that cache file? How to do that? What...
1 Here is Synology support answer (translated): The cache image contains your remote backups index. This index is compared to the remote index to figure out which elements have changed. If you have several remote backups, then @img_bkp_cache will get bigger and bigger. The...
how to drop data of only one table in mysqldump?
My situation: a webshop running Shopware6, database quite big (34GB total) but most of it is the logs (table log_entry = 28GB) and the saved shopping carts (table cart = 3GB). I would like to do a mysqldump but for 2 tables log_entry and cart, I would like to save only the schema. I know how to do only the schema for ...
If you want to use native mysqldump, you cannot avoid to make two calls as already mentioned by yourself. We use the GDPRdump tool by SmileSA for such jobs, where you can leave out (truncate) and even anonymize data during the dump. There is already a Shopware 6 template for this on GitHub https://github.com/portaltec...