Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
Create WiFi Sync for iPhone app |
For an iPhone app I need a web access/server to sync the Core Data database with the computer. So I can backup and replace it. But how can I create a port or something like this which can be called with the Mac or PC?
|
For wifi sync you can use synchronous BSD sockets. Through which you can do your data sync.
|
online space to store files using commandline |
I require a small space online (free) where I can
upload/download few files automatically using a script.
Space requirement is around 50 MB.
This should be such that it could be automated so I can set
it to run without manual interaction i.e. No GUI
I have a dynamic ip & have no tech on setting up a server.
Any help w... |
A number of online storage services provide 1-2 GB space for free. Several of those have command-line clients. E.g. SpiderOak that I use has a client that can run in a headless (non-GUI) mode to upload files, and there's even a way to download files from it by wget or curl.
You just set up things in GUI mode, then put... |
Mysql backup strategy |
I was wondering whats the best way to backup MySQL (v5.1.x) data -
creating mysql data dir archive
use mysqldump
What are the pro/cons for the above? I am guessing mysqldump has some performance impact on a live database. How much impact are we talking about?
We plan to take a backup every few hours, lets say 4 hrs.... |
0
I think that the best way is using mysqldump.
Normally I create a cron task to run in a time of little traffic, it generate a dump naming with a timestamp_databasename_enviroment.sql, so it verify if there are old backups and compact it.
I think that is a good form to do ... |
Restore a Database Programatically (SQL Server) |
I recently found this link which shows a great example of backing up and restoring a sql server database. However, my SQL Server only uses WindowsAuthentication and so it does not really require a UserName and Password. To be able to do this, I turned the line srvConn.LoginSecure = false; into srvConn.LoginSecure = tr... |
0
First of all if you want to enable remote connection to your server (I'm not sure if this is what you're after), Try this: http://support.microsoft.com/kb/914277 . You will also want to make sure the mixed authentication option is enabled.
Share
Improve this ans... |
bash find subfolder and backup |
How could I read the content of a parent folder and if sub-folders are found, then make a tar.gz files of those subfolders found. However, I know that subfolders will have the following filename format: name-1.2.3 What I want is to create a tar.gz file that looks like: name-1.2.3-20100928.tar.gz Any help will be appre... |
0
#!/bin/sh
DATE=`/bin/date +%y%m%e`
cd /path/to/your/folder
for folder in *; do
if [ -d $folder ]; then
tar -cvzf $folder-$DATE.tar.gz $folder
fi
done
Share
Improve this answer
Follow
edi... |
Model for versioned backups on MS Windows |
I've been thinking about a model for saving snapshots of a windows filesystem. Obviously you only want to backup new files or files that have changed - for stuff that hasn't changed you don't want to make another copy. rshapshot http://www.rsnapshot.org/ (for linux) accomplishes this by creating a new snapshot directo... |
0
Once solution would be to use a version control system, such as Subversion, Mercurial, or Git. Depending on the types of files (binary or text), some systems work better than others.
Share
Improve this answer
Follow
... |
Restore of MySQL Backup just stuck |
I have a with mysqldumb created backup file. It's about 15GB and contains a lot of blobs. Max size per blob is 30MB.
mysqldump -uuser -ppass --compress --quick --skip-opt supertext > supertext.sql
Now when I try to restore the backup, the process just gets stuck.
mysql -uuser -ppass dev_supertext < supertext.sql ... |
Are you positive it is only the big table with blobs? Try running the dump sans that table. Do that table individually and if it still gets stuck, break it up.
Create the inserts into 3-4 groups and see if any go through. Process of elimination will help narrow down if theres a row specific issue (I.e. corrupted data?... |
Loop Stored Procedure in VB.Net (win form) |
I am trying to run a for loop for a backup system and inside that i want to run a SP that will loop. Below is the code that does not work for me..
Any ideas please?
Dim TotalTables As Integer
Dim i As Integer
TotalTables = 10
For i = 1 To TotalTables
objDL.BackupTables(220, i, 001) ' (This is a method from the DL ... |
0
Third parameter is bad, should be:
objDL.BackupTables(220, i, 1)
Share
Improve this answer
Follow
answered Apr 28, 2010 at 14:12
wassertimwassertim
3,12622 gold badges2424 silver badges... |
java database backup and restore |
How do I backup / restore any kind of databases inside my java application to flate files.Are there any tools framework available to backup database to flat file like CSV, XML, or secure encrypted file, or restore from csv or xml files to databases, it should be also capable of dumping table vise restore and backup a... |
0
There are many ways to do this. It really depends on how complicated your "database" is.
The simplest solution is to write to a text file in a CSV format:
import java.io.PrintWriter;
import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOE... |
Does svn hotcopy overwrite existing files? |
I have used SVN hotcopy to make a backup of the repository every weekday. When I looked at the Windows Scheduled Task logs I see that the job has run successfully. When I do a svnadmin verify I don't seem to only have a subset of the revisions. Do I need to delete the files first or is there an overwrite existing flag... |
I used the verify command and I cannot find some of the revisions. When I delete it and run the svn hotcopy command again then they verify output now includes the missing revisions. I guess that means that it does not overwrite them. I cannot seem to find a flag that will let me overwrite the files. If no one else off... |
How to remove empty tables from a MySQL backup file |
I have multiple large MySQL backup files all from different DBs and having different schemas. I want to load the backups into our EDW but I don't want to load the empty tables.
Right now I'm cutting out the empty tables using AWK on the backup files, but I'm wondering if there's a better way to do this.
If anyone is ... |
0
I can't think of any option in mysqldump that would skip the empty tables in your backup. Maybe the -where option but not sure you can do sth generic. IMHO a post-treatment in a second script is not that bad.
Share
Improve this answer
... |
Initial configuration for log shipping of a large database in SQL Server 2008 |
We have a new filestream database that will be initially loaded with 65GB data, for which we'd like to configure log shipping to a remote (different continent) location.
For the initial setup of log shipping, is there any threshold for the time between the backup of the primary and it's restore onto the secondary? The... |
I believe the only concern is that the Log Sequence Number (LSN) chain is unbroken. This will start with your full backup, but can also have as many subsequent transaction log backups as you need. You mentioned the database will be offline until the log shipping is configured, so you shouldn't have an issue with tra... |
Using T-SQL to get contents of backup media |
In SQL Server Management Studio (I have 2008), I can see the contents of the media i have backed up to, be it disk or tape. I can see information such as what files it currently includes, the dates they were backed up, etc... Is there a way to do this in T-SQL? I would like to specify a device (which is linked to a... |
You can start SQL profiler, then carry out the actions in Management Studio to display the information you require, then look in the profiler output to see what has been executed in the background to get you that info.
My guess is that these tables/catalogs are being queried:
sys.backup_devices
|
volume shadow copy vs data protection manager |
trying to implement a VSS backup solution similar to what is described here:
Volume Shadow Copy (VSS)
there is a new offering called data protection manager:
http://www.microsoft.com/systemcenter/dataprotectionmanager/en/us/overview.aspx
how different is this from VSS based solution?
does it solve the problem of imple... |
0
DPM comes as a part of System Center and it makes use of VSS writers. In other words it is dependent on VSS service. You will face issues if VSS fails, DPM backup wont work. It also makes use of application writers for application specific backups(like MS SQL DB and Excha... |
How to create a snapshot or clone of PHP, MySQL page... Inspiration needed |
We have a web application that creates a dynamic PHP page with all the MySQL stored details a user has entered via a number a forms. So far so good, but we want this information stored some how to be refereed to at a later date, as an administrator can make changes to the data, which reflects on calculations that are ... |
0
Hmm this is quite difficult to understand. Sounds like you should make a new MySQL table containing snapshots of the calculations and the time they were saved?
What kind of data are you looking to snapshot?
Share
Improve this answer
... |
mysql dump stops when a row is updated |
When i try to get a dump of a mysql database, the dump stops when a row in it is updated. How can i prevent that? I already tried following options with no result:
-f (forces continu even when error)
-x (lock all tables)
when i log any error, i get nothing
Command i'm using:
mysqldump --user=* --password=* --all-d... |
0
By default it will lock all tables; this stops anything being updated.
If you are using transactional engines exclusively (InnoDB) then you probably want to use --lock-tables=0 and --single-transaction
This will use a MVCC snapshot (effectively).
Please post exactly what ... |
restoring mysql db from the contents of split up mysqldump |
Hi my database has started to go over 2GB in backed up size, so I'm looking at options for splitting the file and then reassembling it to restore the database.
I've got a series of files from doing the following backup shell file:
DATE_STRING=`date +%u%a`
BACKUP_DIR=/home/myhome/backups
/usr/local/mysql_versions/mysq... |
0
I don't see why you can't just do:
cat mydb-3Wed.sql-* | /usr/local/mysql_versions/mysql-5.0.27/bin/mysql --defaults-file=/usr/local/mysql_versions/mysql-5.0.27/my.cnf --user=myuser --password=mypw -D mydb
The * globbing should provide the files in the sorted order, check... |
Backup and Restore SSP on MOSS 2007 fails due to missing .mdf files |
I've used the central admin backup facility to backup our Shared Services Provider. The backup location was a drive on a new server.
I then try to restore the SSP via central admin on the new server. It fails with an error relating to the fact that it cant find the .mdf files that it requires. It is looking in the loc... |
Are you following these instructions on migrating the SSP?
|
ZRM snapshot vs InnoDB hot backup for MySQL |
Are there major advantages to InnoDB hot backup vs ZRM snapshots in terms of disruption to the running site, the size of compressed backup files, and speed of backup/restore on a medium-sized to largish all-InnoDB database?
My understanding is that InnoDB's approach is more reliable, faster, does not cause a significa... |
0
If you want to avoid disruption to your site, the best method is to setup a replication slave to your server, and take backups from that. Using this, the method of backup becomes irrelevant, as the slave will simply catch up with the master when the replication is finishe... |
Why can't my Azure app service backup connect to my Azure SQL database? |
I am experiencing a problem configuring the backup of an SQL database using Azure.
I have web application and an associated Azure SQL database. The app connects to the DB no problem. I have pasted the connection string provided to me by the Azure UI (Home -> SQL Databases -> My SQL Database) into the connection string... |
-1
Linking the same question asked on MSDN: Azure SQL Database Backup Fails, cannot connect to the database.
Please see the Requirements and Restrictions details where this functionality is not supported, which I have listed below the applicable items that apply to your s... |
Python script to automate influxdb backups |
I'm looking for a way to automate the backup of my InfluxDB databases via Python.
Did anyone has done it yet?
Or it doesn't make any sense to do it via Python and I should just stick to a bash script (like this one: https://gist.github.com/opHASnoNAME/7b367abfbba8b34f3591842db8814a8f)?
|
-1
I have finished such a script recently, running it for influxdb and mongodb hourly by jenkins.
There are two folders to store the backups.
One named "hourly_backups" stores the latest 24 hourly backups.
Another one named "daily_backups" holds the earliest hourly backu... |
Duplicate files with find and tar |
I'm trying to back up a bunch of directories with tar and using find to get the files. I've seen this solution elsewhere in an old post but it duplicates every file and directory in the tarball; find itself doesn't duplicate anything
find d1 d2 -print0 | tar -czvf backup.tar.gz --null -T -
Using Ubuntu 18.04 LTS, Gnu... |
0
Is your find d1 d2 -print0 including the "." directory in its output from each d1 and d2, meaning it doubles the files? Try adding --no-recursion to the tar.
Share
Improve this answer
Follow
an... |
How to take backup of file without changing its time-stamp with Ansible playbook |
How to take backup of file without changing its time-stamp with Ansible playbook? I tried backup=yes but the problem is like it changes the timestamp os the file.
Code:- dest={{item}} state=absent regexp='TLSv1' backup=yes with_items: ('{{certs_dir.stdout_lines}}')
|
-1
I'm retracting my initial "It can't be done" response - it should be possible by using a series of plays, but it's not very pretty.
If you really need the backup file to keep the time-stamp, you might want to put in an official request on the developer mailing list.
Use... |
pg_dump halting on WIndows |
I am using the pg_dump command in the following way, on my Windows machine:
pg_dump -h "jumbo.db.elephantsql.com" -U "hytxlzju" -p "5432" -f "ebDumping.sql" --verbose "hytxlzju" > "C:\Program Files\PostgreSQL\9.3\bin\extremeBlueDB.sql"
I don't get any logs and I cannot see the file being created at the specified loca... |
[Answer]
C:\Program Files\PostgreSQL\9.3\bin> pg_dump -h "jumbo.db.elephantsql.com" -U "hytxlzju" -p "5432" --verbose --role "hytxlzju" --format
p --encoding "SQL_ASCII" "hytxlzju" > "C:\Program Files\PostgreSQL\9.3\bin\extremeBlueDB.sql"
|
Error when running Duplicity on AWS Linux |
I have installed Duplicity on some AWS EC2 instances using the folowing command
yum -y install duplicity rsync gpg python python-devel python-pip -- enablerepo=epel
This was based on an approach described here
https://rtcamp.com/tutorials/backups/duplicity-amazon-s3/
However, whenever I try to run a duplictiy com... |
0
My solution is:
yum -y install duplicity rsync gpg python python-devel python-pip
pip install --upgrade pip==9.0.3
pip install duplicity
If have an error like Unable to get SCM version: No module named setuptools_scm do this:
pip install -U pip setuptools
pip install -... |
svnsync: Cannot initialize a repository with content in it |
I have a subversion repository with content in it and I want svnsync it to a remote server. The issue is I am getting an error message saying svnsync: Cannot initialize a repository with content in it when try to initialize svnsync.
svnsync init file:///var/www/svn/project_z/ http://svn.mysvn.com/svn/project_z/
How d... |
0
consider using --allow-non-empty if the repository's revisions are known to mirror their respective revisions in the source repository
Share
Improve this answer
Follow
answered May 6, 2014 at 1... |
Zend export database for backup |
I want to create a cronjob for making a backup (sql dump) from my database and e-mail it to me. Setting up the cronjob and stuff works great and I'm able to use parts of my zend application :)
Unfortunately I cannot use exec() or system() on my server so now I'm looking for a way to get the same result. I searched eve... |
The solution by David Walsh looks like what you want:
http://davidwalsh.name/backup-mysql-database-php
A php script that retrieves the tables in a database and saves the data in a .sql file.
|
Azure App Service Backup Partial for Wordpress? |
App Service on Standard plan, using MySQL in-app database. App is stopped, and a manual backup always completes as "partial". The configuration for the backup blade shows no database exists. I am concerned that the database in the filesystem is not being included, so the restore will fail.
How can I be confident in Az... |
-1
Partially Succeeded means that there were likely some files which could not be backed up, because they were locked for some reason. When this happens the backup process skips them and backs up the rest of the site and database if configured. You should be able to see... |
RegLoadKey to a hive file from within a Shadow copy [closed] |
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question mo... |
Turns out the problem was that to use RegLoadKeyW() The loaded hive needs to be somewhere writable. Since the shadow copy is read-only, it failed.
When I copied the mounted file outside the shadow copy it worked fine.
|
How do I copy only the values and not the references from a Python list? |
Specifically, I want to create a backup of a list, then make some changes to that list, append all the changes to a third list, but then reset the first list with the backup before making further changes, etc, until I'm finished making changes and want to copy back all the content in the third list to the first one. U... |
The first thing to understand is why that setEqual method can't work: you need to know how identifiers work. (Reading that link should be very helpful.) For a quick rundown with probably too much terminology: in your function, the parameter restore is bound to an object, and you are merely re-binding that identifier w... |
Docker image is getting bigger and bigger |
right now I'm experimenting with Docker.
I have "installed" a Docker Debian Image.
In this Debian Environment, I installed a application.
Now, I do every night this:
docker stop (stop container)
docker commit (make container to an
image)
docker save (to save the image to an file, I do this to backup
the current work)... |
Docker images save "diffs" every commit you make, along with all previous versions of your image. This means that your process is guaranteed to steadily increase your final image size. To avoid this, instead of using docker save, you should use docker export instead (which receives the container as an argument, instea... |
Is there a sensible way to backup Visual Studio C++ solutions without all the "extra" files the IDE creates? |
I would like to make a backup of my project, but the folder now exceeds 6.6 GB mainly through extra libraries like boost etc, but even if I just select the folders with my sources, I end up with big files like: .ipch, .sdf and potentially others. To make matters worse I use eclipse to code and VS to compile, so that a... |
you can write a simple script (batch file) that only zips the types of files you want. suppose, you want to zip all your .aspx, .cs, .config, .xsd files only,
suppose you have winrar installed in your c:\program files\winrar
and your project is in c:\project\MyBigProject
then, just open your notepad, copy paste this, ... |
What is the suggested approach to Syncing/Backing up/Restoring from SQL Server 2008 to SQL Server 2005 |
I only have SQL Server 2008 (Dev Edition) on my development machine
I only have SQL Server 2005 available with my hosting company (and I don't have direct connection access to this database)
I'm just wondering what the best approach is for:
Getting the initlal DB Structure & Data into production.
And keeping any stru... |
The safest option would be to revert your development environment to SQL 2005, as that way no matter what your code will be compatible with your hosting environment. You should be able to install a separate 2005 instance on your box, which should save time (have only one of 2005/2008 active at a time for performance r... |
Wordpress database backup [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
... |
on this theme, the answers above have pointed me towards the following plugin:
http://www.genealogy-computer-tips.com/wp-database-backup/
This seems to be everything I needed! Cheers,
|
Reading Files belonging to other Apps iOS |
I am currently coding a backup app for iOS, and I want to have options to let the user back up things like Application Data (other app's documents, etc,) Contacts, Safari Bookmarks, and all that fun stuff.
I'd like to know if that's possible, how I'd do it, and where those files are stored, and most importantly, if t... |
It's not possible. Your app isn't even capable of reading the documents from other apps. This is accomplished via sandboxing. Every read/write your application tries to do to the filesystem is checked by the kernel to ensure you're staying within your sandbox. The documents belonging to other apps are outside of your ... |
To take the backup of required files of SVN repository |
I need to take the backup of one folder of my SVN repository. For this I have tried with svndump and svndumpfilter commands but of no use.
Can any one please explain how to do this with an example.
Update:
I have a repository in that I have one folder say "Test". Apart from this "test" there are some more folders/proj... |
4
If what you're wanting is a backup of the current state of the files themselves (and don't actually want the full version history), use svn export instead.
If you are trying to back up the history, then I concur with Rohith's answer.
Share
Improve this answer
... |
Building a high performance and automatically backupped queue |
Please give me some hints on my issue.
I'm building a queue data structure that:
has a backup on hard disk at realtime
and can restore the backup
Can respond to massive enqueue/dequeue request
Thank you!
|
Is this an exercise your doing. If not, you should probably look at some of the production message queueing technologies (e.g. MSMQ for Windows) which supports persisting the queues on the disk and not just storing them in memory.
In terms of your requirements
1. has a backup on hard disk at realtime
Yes MSMQs can do... |
Can't connect to a current Time Machine backup disk [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... |
Go to your Time Machine drive in Finder and check the permissions of Backups.backupdb. If you see a red stop sign it means that the permissions are wrong.
Open Terminal and check out the permissions
$ sudo -s
$ cd /Volumes/Time\ Machine
$ ls -l
drwxrwx---@ 6 root wheel 204B Jul 9 16:26 Backups.backupdb
No... |
Docker couchbase cbbackup/cbtransfer/cbrestore tools |
I've used docker to install couchbase on my ubuntu machine using (https://hub.docker.com/r/couchbase/server/). The docker run query is as follows:
docker run -d --name db -p 8091-8094:8091-8094 -p 11210:11210 -v /home/dockercontent/couchbase:/opt/couchbase/var couchbase
Everything works perfectly fine. My application... |
When you run the command
docker run -d --name db -p 8091-8094:8091-8094 -p 11210:11210 -v /home/dockercontent/couchbase:/opt/couchbase/var couchbase
you're pulling a docker image and spawning a docker container.
Please read more about Docker and containerization.
In order to run cbbackup you need to log into your d... |
Artifactory 5.2.0: managing non-incremental backups |
We have set up a test artifactory server.
We tried to edit the pre-defined backup-daily plan by unchecking the Incremental checkbox and clicking Save.
However, when going back to the edit screen, the check box remains checked.
Is there a reason for that?
This also happens when defining a new (custom) back up plan.
Th... |
Have you entered a retention period?
When not using the incremental backup you have to specify the retention period in order for it to "stick".
Just to be on the safe side, you can't use "0" as this is reserved to incremental.
|
Script seems to take more time when run as cronjob |
i have a small bash-script to backup some MySQL databases. The script dumps out the databases from MySQL using mysqldump and than rsyncs the zipped dumps to another server on the LAN.
When I run the script directly from the command line, the execution time is roughly 2-3 minutes.
I added the same bash script to the cr... |
If the crontab syntax given above is the one you actually use, your cronjob isn't executed three times a day, but rather every minute of 12am and 8am and 4pm every day. Resulting in 60 executions during the given hours. Depending on the script it therefore might seem to run for an hour.
If the script runs 2-3 minutes ... |
Batch - Remove backups a week old |
So I've got a batch file that backs up a folder to my Google Drive directory, like so:
C:\Program Files\WinRAR\rar.exe a -r "D:\Google Drive\Saves Backup\%DATE%.rar" "D:\Documents\My Games\"
This makes a file called 30-Sep-12.rar (being run today) in the appropriate folder.
However, my question is this: Is there some... |
Why must you use the date embedded within the file name? The last modified date should be the same as the date embedded in the file name as long as the backup has not been modified since it was created.
FORFILES is one of the few Windows utilities that conveniently works with date arithmetic. Type FORFILES /? from the... |
What does the switch -r mean for Firebird gbak tool? |
When I run:
gbak -r
what will it do?
|
In Firebird < 2.0, -r will replace your currently database file with the one restored from the backup. In FB >= 2.0, you need to specify -rep for that. Take care to avoid replacing an active database.
|
DB2: restore database returns error SQL2036N on Linux |
I try to restore a DB2 database, but it says the return path is not valid.
This is what I tried:
db2 restore database gyczpas from "/home/db2inst1/GYCZPAS/PAS_BACKUP/GYCZPAS.0.db2inst1.NODE0000.CATN0000.20170109092932.001" taken at 20170109092932 into gyczpas
SQL2036N The path for the file or device "/home/db2inst1/G... |
You are using the file name, not the path for RESTORE. Try something like the following - only specify the path:
db2 restore database gyczpas from "/home/db2inst1/GYCZPAS/PAS_BACKUP" taken at 20170109092932 into gyczpas
|
Tar backup keeps increasing in size |
I've got a backup script that's supposed to backup the whole system, but it keeps increasing in size days after the backup. I've set to do one backup each day in crontab.
TIME=`date +%b-%d-%y`
FILENAME=backup-$TIME.tar.gz
SRCDIR=/
DESDIR=/home/backup
tar -cpzf $DESDIR/$F... |
You can also exclude /var/log.
If you have some database on the system, it's ok that the size of the backup grows.
|
How many ways to check if a script was "successful" by using Powershell? |
I am still very new and I have for example one script to backup some folders by zipping and copying them to a newly created folder.
Now I want to know if the zip and copy process was successful, by successful i mean if my computer zipped and copied it. I don't want to check the content, so I assume that my script took... |
You could try using the Try and Catch method by wrapping the (create-7zip $_.FullName $dest) with a try and then catch any errors:
Try{ (create-7zip $_.FullName $dest) }
Catch{ Write-Host $error[0] }
This will Try the function create-7zip and write any the errors that many accrue to the shell.
|
Backing up PostgreSQL |
I'm a new to PostgreSQL and I'm looking to backup the database. I understand that there are 3 methods pg_dump, snapshot and copy and using WAL. Which one do you suggest for full backup of the database? If possible, provide code snippets.
|
It depends a lot more on your operational requirements than anything else.
All three will require shelling out to an external program. libpq doesn't provide those facilities directly; you'll need to invoke the pg_basebackup or pg_dump via execv or similar.
All three have different advantages.
Atomic snapshot based ba... |
MySQL Backup Script in Bash |
REF http://www.rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html
4.3.9. backup_script
I need to backup ALL the mysql databases by dynamically should new ones be created. Is there an ideal way to do this in bash with minimal code?
Would I need to log in to mysql and get all the databases?
|
3
Seems that you are wanting a bash script to run backup on dynamic databases that are created in MySQL. You can add the mysql root user account information in my.cnf in the root directory or within the bash script under the # [ Define Variables ].
you will need to chmod... |
Best way to Backup project |
Hey guys simple question here. Whats the best way to back up an android project? I use eclipse. I'm fairly new and not sure what I need to back it up. Do I need just the project or do I need the meta data also? Thanks guys
|
If I'm understanding you correctly you want to make a backup of your project? If you've never used version control before, now would be a great time to start! Version control will not only provide you with what you're looking for but many other great features. There's plenty of different SCM's available for you to cho... |
SQL Server : backup database with T-SQL? |
I am looking for a way to backup a SQL Server database with T-SQL. I do no have root access to this server through the console, as my only access comes through SQL Server Management Studio.
Could someone please show me the SQL that I could use to export the raw SQL for my entire database?
|
BACKUP DATABASE @strDB TO DISK =@BackupFile WITH RETAINDAYS = 10, NAME = N'MyDataBase_DATA-Full Database Backup', STATS = 10
You must define @BackupFile and @strDB as the database name.
All of this is free in Books Online which you can find online.
|
What do you all recommend for backing up git workspaces/clones? |
I need a backup that included uncommitted modifications because my developers don't like to commit often.
|
5
Just rsync the clone ( including working directory) to another location frequently.
Share
Improve this answer
Follow
answered Jul 25, 2011 at 21:15
manojldsmanojlds
295k6464 gold badges4... |
how to set up daily php functions or mysql queries |
I have wondered for a while now how to this. If I want to take weekly backups of all or many of my tables that stores values that changes every day in mysql. I also want to execute daily functions with php that update update values in my db.
I was thinking of making a stock investing function. Where I have fictional ... |
On a *nix system, use a CRON job. On Windows, it's Scheduled Task... Either will execute a script at a given time on any (or a specific) day.
I'd recommend a better table design:
DROP TABLE IF EXISTS `example`.`stocks`;
CREATE TABLE `example`.`stocks` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varc... |
MySQLdump results in lots of commented lines, no real content |
I am trying to write a PHP program to automatically created backups of MySQL tables as sql files on the server:
$backup = "$path/$tablename.sql";
$table = "mydbname.mytablename";
exec(
sprintf(
'/usr/bin/mysqldump --host=%s --user=%s --password=%s %s --quick --lock-tables --add-drop-table > %s',
$host,
... |
You mysqldump command is like this :
/usr/bin/mysqldump --host=HOST --user=USER --password=PASSWORD TABLE --quick --lock-tables --add-drop-table
Looking at the manual of mysqldump, I would say that it will think that TABLE is actually the name of your database (quoting) :
There are three general ways to invoke
mys... |
mysql backup preserving relationships |
I would like to know how to backup my data from 2 separate tables (CATEGORIES and SUBCATEGORIES, where SUBCATEGORIES belong to a CATEGORY) in such a way that I can restore the relationship at a later time. I am not sure if mysqldump --opt db_name would suffice.
Example:
Categories:
| ID | name
-----------
| 1 | Audio... |
5
mysqldump is sufficient
It will generate the SQL code necessary to rebuild your database and as the relationships are not special data (just logical coincidences between tables) it's enough to backup a database. Even by using mysqldump without the --opt param it will add ... |
variable for SQLLOGDIR not found |
I am using ola hallengren script for maintenance solution. When I run just the Database backup job for user database I get the following error. Unable to start execution of step 1 (reason: Variable SQLLOGDIR not found). The step failed.
I have checked the directory permissions and there is no issue there. The script ... |
I had the same issue on my SQL Server 2012 version, the error was during the dB backup using Ola's scripts, as mentioned above the issue is with the output file, I changed the location and the output file from the SQL Job and reran the job successfully (refer the attached screenshot for reference.
|
View definitions in MariaDB are not create with mysqldump |
I have a db in MariaDB 10.1.25 and in this, I have many tables and 20 views.
When I try to backup my db using mysqldump, it works fine for tables but in view definitions, it fails to create a create statement like it does with tables.
The code generated is this:
--
-- Temporary table structure for view `qry_clientes`... |
Usually, in the mysqldump backup script, the views are first created as tables and then are then dropped at the bottom of the script as each view is being created.
Sometimes there is an error in this process because when a view is created there is a user used as DEFINER. This statement may fail because this user might... |
Azure Automated Backup Frequency |
I have an Azure Windows VM running a few SQL server databases. Azure premium offers automated backup, which is great. I am however not able to change the frequency of the automated backups, which now occur every 2 hours. These 2 hour scheduled backups result in performance issues when the server is running important S... |
2
It looks like you have a few options with Windows VMs, including something called the Windows Backup Agent. This agent allows you to configure redundancy and backup schedule, along with some other properties that may improve your performance.
Another helpful resource I ... |
MySQL backup command not working |
I'm trying to take a backup of a MySQL database using the following command:
mysql -u "username" -p "databasename" > "somename.sql"
After I enter the password, it doesn't show any output/error. It doesn't show the terminal prompt. No backup file gets created.
I've used the same command successfully before. But I have... |
You are trying wrong command
mysqldump -u "username" -p"password" "databasename" > "somename.sql"
or it
mysqldump -u "username" -p "databasename" > "somename.sql"
and type password when prompt.
|
mysqldump in perl - return value is allways 0 |
When I perform following in perl, I allways get the error code "0". Even if for example the mysql database does not exist, or the password is wrong, etc.
@args = ("mysqldump -u root -ppassword database1 | gzip -c > /usr/local/bin/database.gzip");
system(@args) == 0
or die "Command failed: @args \nError Code: $... |
I guess it is the pipe that is giving this problem. You might be getting the exit status of
"gzip -c > /usr/local/bin/database.gzip"
You might have to split the dump and gzip part into two.
use
`mysqldump -u root -ppassword database1 > ./dump.txt`;
if ($? == 0){
`gzip -9 ./dump.txt`;
}
else{
die "error... |
Manual backup for mercurial repository |
I am using Mercurial with tortoiseHg, and I have few repositories around my computer (because i work with different languages at the same time).
I would like to have a backup of all my repositories that I would trigger manually (ideally with an icon on my desktop).
I am open to many backup solution, like using dropbox... |
One option is to import your repositories into a Mercurial hosting service like Bitbucket and then use the built-in push feature of Mercurial to periodically copy your local changes to the remote clone. You can find instructions on how to import an existing repository into Bitbucket here.
|
Is there a way of restoring a MySQL database on a time schedule |
I've been creating scheduled MySQL backups and then sending them via FTP to another test server using PHP. I need to know if there is a program that I can run to restore the files on my other server but using a scheduled restore?
Thanks
|
5
You can create a CRON job which launches a shell code.
For instance if you want to inject a backup database:
mysql -u user -ppassword database < yourbackupfile.sql
Now if you want to create a dump:
mysqldump -u user -ppassword database > yourbackupfile.sql
Sha... |
Can't restore SQL Server 2008 from backup |
I'm currently trying to restore my database.
The step I follow is the executing the query
Restore Database vaio
from disk = 'C:\Users\DB101209123928_Diff_20120312.bak'
with replace;
But I'm getting the following error.
Msg 3154, Level 16, State 4, Line 1
The backup set holds a backup of a database other than the ... |
The error says that there is no database named vaioin your restore file.
There is not much to help here. Make sure you have the correct restore file
|
backing up subversion repositories |
CentOS 5.3
subversion 1.4.2
I forgot to add. Currently the total repository size is about 5GB, but that will grow over time.
We have our source code and documents on our internal server running CentOS 5.3 and we are using subversion 1.4.2.
We are looking for a backup strategy. We want to perform daily backups. We have... |
There are more open source solutions that I could name, but for this application my choice would be rsync and a cron job.
Here is a good overview of some open source options (some are more desktop oriented).
EDIT
The nice thing about rsync, is it can directly sync the folder storing the repo. The downside of this app... |
How to backup my MySQL's databases on Windows Vista? |
How can I backup my MySQL's databases? I'm using Windows Vista and MySQL 5.1.
I have found the folder "C:\Users\All Users\MySQL\MySQL Server 5.1\data" with all my database files and copy them, but how can I restore them if I need?
Thank you.
|
You can also go surf to localhost/phpmyadmin and go to 'export' and select the databases you want to export.
|
Automatically backup SQL Server database |
I need to backup SQL Server database.
Is it possible to do this automatically without human intervention at regular intervals? If so yes then please suggest me how to do it and I'm using SQL Server 2005 Express Edition.
|
4
You'll need this:
http://www.codeplex.com/ExpressMaint
Then you can create a .cmd file to run it and schedule it using Scheduled Tasks. I can't give you an exact command line because your setup will be different from mine, but the docs are here:
http://www.sqldbatips.com/... |
FTP - Only want to keep latest 10 files - delete LRU |
I have created a shell script to backup my webfiles + database dump, put it into a tar archive and FTP it offsite. Id like to run it X times per week however I only want to keep the latest 10 backups on the FTP site.
How can I do this best? Should I be doing this work on the shell script side, or is there an FTP comma... |
One way to do something like this would be to use the day of the week in the filename:
backup-mon.tgz
backup-tue.tgz
etc.
Then, when you backup, you would delete or overwrite the backup file for the current day of the week.
(Of course, this way you only get the latest 7 files, but it's a pretty simple method)
|
Unable to stop the creation of backups to root by Vim/Emacs |
Problem 1: my Vim makes backups with the extension ~ to my root
I have the following line in my .vimrc
set backup backupdir=~/tmp/vim//,~/tmp//,.//,/var/tmp//,/tmp//$
However, I cannot see a root directory in the line.
Why does my Vim make backups of my shell scripts with the extension ~ to my root?
Problem 2: my Z... |
The files ending with ~ are swap files used by vim while editing files. You can try setting the backupdir and directory variables
set backupdir=~/tmp/vim//,~/tmp//,.//,/var/tmp//,/tmp//
set directory=~/tmp/vim//,~/tmp//,.//,/var/tmp//,/tmp//
|
Enabling "Maintenance mode" in PrestaShop 1.7 using a script and not admin panel? |
I'm writing a script that would back-up my PrestaShop instance installed on my own server. I'm using Prestashop 1.7.7.4.
I suppose it is recommended to put your shop(s) in "Maintenance mode" during database dumping, to make sure nobody interacts with it. However, the only method of enabling the "Maintenance mode" I ca... |
3
For active shop
Configuration::updateValue('PS_SHOP_ENABLE', '1');
For maintenance mode
Configuration::updateValue('PS_SHOP_ENABLE', '0');
Share
Improve this answer
Follow
answered May 8, 202... |
SQL Server The initial backup restore works, the rest don't |
I'm trying to backup and restore a database in Sql Server 2014.
The initial backup restore works.
But when I make some changes to the database and repeat the backup/reload procedure
I get the data of the first backup losing the most recent changes.
Below is a script that illustrates the issue I'm facing
CREATE DATABAS... |
The issue is that your backup database sample to disk='...' statement by default APPENDS the new backup to the backup device (backup file). As the result, you then have multiple backups stored in the backup file.
When doing restore, you are restoring the first backup.
To solve the problem, you can specify to override ... |
Gitlab not deleting backups |
We are using a AWS ec2-instance for gitlab with omnibus installation, Recently gitlab has not been deleting the backup files and disk is filling up. I am not sure which log i should be seeing for this issue.
When i do sudo gitlab-rake gitlab:backup:create --trace
so there is no error message, what could be the reason... |
4
i could not find why its happening but to solve it, i have created another cron job to delete the backups that deletes if its past 2 days.
0 8 * * tue,thu,sat find /var/opt/gitlab/backups/15* -mtime +1 -type f
-delete
Share
Improve this answer
... |
Best way to make PostgreSQL backups |
I have a site that uses PostgreSQL. All content that I provide in my site is created at a development environment (this happens because it's webcrawler content). The only information created at the production environment is information about the users.
I need to find a good way to update data stored at production. May... |
2
You can use pg_dump to export the data just from the non-user tables in the development environment and pg_restore to bring that into prod.
The -t switch will let you pick specific tables.
pg_dump -d <database_name> -t <table_name>
https://www.postgresql.org/docs/curren... |
Bash: Use directory as variable |
I'm writing a script to check if there actually is a directory that has content and a normal size, and see if there is a directory older then 36 hours, if not it should alert me.
However I'm having trouble using the directories as variable.
When I execute the script it returns: ./test.sh: line 5: 1: No such file or d... |
For a start, to loop through all directories a fixed level deep, use this:
for dir in /home/customers/*/*/*/
A pattern ending in a slash / will only match directories.
Note that $dir is a lowercase variable name, don't use uppercase ones as they may clash with shell internal/environment variables.
Next, your conditio... |
Does google charge for data transfered into Google Cloud Storage |
Currently we are using Amazon AWS S3 as a backup solution for our servers. Amazon AWS clearly states: "All data transfer in - $0.000 per GB". With Google Cloud Storage I can not find a clear answer.
From what I can find the egress and interconnect data transfer is defined. Interconnect is of course not relevant here. ... |
Ingress cost is 0 for any amount of data, as mentioned in network pricing on this page. The PUT/POST operations though are charged at $0.10 per 10,000 operations as per this page. In short for ingress, data is free, operations are not.
|
Regex to extract information from wp-config file |
I want to create a script to backup all my Wordpress installations without having to mark all the directories.
I want to test for the existence of the file wp-config.php and create a database backup with the information in this file.
Here my script which always outputs "nothing found":
$content = file_get_contents($s... |
Problem
The function preg_quote() escapes regex special characters, including ( and ), so your subject string doesn't contain
define('DB_NAME', 'thedbname');
Instead, it contains
define\('DB_NAME', 'thedbname'\);
and your regex fails.
Solution
Just remove the preg_quote() from your code, like this:
if (preg_match_al... |
how to handle duplicate file(.txt and .txt~) after save file with emacs |
Sorry, I have a problem when I try to learn emacs in terminal, when I try to edit 1 file (file.txt) and I try to save this file with C-x C-s. I get 2 files with the same name (file.txt and file. txt~). how to handle duplicate file after save file with emacs on mac osx?
|
The ~-suffixed file is a backup copy of the file, with the state it had before you started editing.
You can disable such automatic backing up.
You can also control various aspects of such backing up, including where backup files are to be stored -- see the Emacs manual, node Backup and its subnodes.
You can also remo... |
Available Point-In-Time recovery points for AWS RDS instances |
I discovered that it is possible to rollback my DB instance to a certain point-in-time, via binary logging.
I can rollback to 5 minutes ago, but how do I see the previous PiT? Is this 10 minutes ago? What would happen if I select 7 minutes ago, would the binary logs of the two closest PiT merge?
A secondary question... |
I discovered that it is possible to rollback my DB instance to a certain point-in-time
That's the approximate net effect, but your description is not precisely correct.
What's possible with Point-in-time Recovery is that you can create a new instance, with the data as it existed on your current instance, at the spec... |
How to take backup of MySQL database in Bluemix? |
I am using IBM Bluemix MySQL database as a DB server, but I don't know how to take backup from it.
In the past I used to do that with CF tunneling option, but the new CF tool doesn't support CF tunnel.
|
Some services, like the experimental mysql service on Bluemix are not able to be accessed from outside of Bluemix. You can only access them from within a Bluemix cloud foundry application. If you are using this service , you will need to deploy a phpmyadmin application and bind it to that database to perform managemen... |
Excel VBA - leave 5 newest backups and delete the rest |
I have a macro in excel that runs before save and creates a backup of an excel table with the actual date in its name.
These backups started to take too much space, so I have inserted another macro that deletes backups older than 14 days. The problem is that sometimes we don't save new copies for 2 weeks or months, s... |
This may not be the most efficient way but it seems to work as a starting point.
Sub DeleteBackups()
Dim fso As Object
Dim fcount As Object
Dim collection As New collection
Dim obj As Variant
Dim i As Long
Set fso = CreateObject("Scripting.FileSystemObject")
'add each file to a collection
For Each fcount In fso.... |
cron job for backup only selected tables not whole database in mysql |
I am using the following cron job for backup my database daily.
/usr/bin/mysqldump -u UNAME -p PSSW databasename > /home/mysite/stock/backup.sql
But I want to backup only some of the tables not whole database. Is it possible with cron job?
|
You can just specify the table names along with mysqldump something as
mysqldump -u uname -pPSSW dbname table1 table2 table3 tableN > backup.sql
|
QNAP 4.1.0 & Using own backup script with crontab |
i have a problem, executing my script by crontab on a qnap nas.
it is very confusing, because other test scripts work AND executing this script manually works, too.
here is the script:
#!/bin/sh
[[ ! -d /mnt/backup-cr/daily.0 ]] && mount -t nfs -o nolock 192.168.178.2:/volume1/backup-cr /mnt/backup-cr
#1
[[ -d /mnt/... |
Use echo to store your command in the crontab file from the command line
$ echo "1 4 * * * /bin/sh /share/CACHEDEV1_DATA/your-backup-folder/backup.sh" >> /etc/config/crontab
This command will run backup.sh 4 minutes past 1 AM.
To make the crontab persistent during reboot, you have to execute this command
$ crontab ... |
Restore Database from latest .bak |
Is it possible to restore database from the latest .bak file using sql script?
|
4
Yes. The basic form is:
RESTORE DATABASE <dbname> FROM DISK='<path to bak>';
See http://technet.microsoft.com/en-us/library/ms186858.aspx for details.
Share
Improve this answer
Follow
answered... |
Is relying on Rackspace Cloud Server backup images an okay way to handle mysql backups? |
Rather than running mysqldump (e.g.) every morning, would it be fine to just rely on the daily server image backups that Rackspace Cloud Servers do? Or, is there a future headache that I'm not seeing?
|
3
The concern would be a potentially inconsistent state if any database operation occurred while the backup image was being created. Some of the database transactions may not have been flushed to disk yet, still residing in memory.
Since mysqldump can use the internal state... |
Recover Essbase data |
User has accidentally deleted Essbase application from the EAS Console.
An application with the same name was created.
We then used Hyperion Planning to recreate the database of the new application.
We have file system backup of all the directories of the deleted application.
How can we get all the data of the old ap... |
Here's what I would do. Let's say the app is called "HPlan", so you have a \app\HPlan folder on your Essbase server. Within the HPlan folder there are several subfolders for each database, such as HPlan, Capex, Wrkforce, and so on.
Stop the entire app using EAS
Move the entire contents of the app\HPlan folder to a te... |
MySql Table wise Backup and Restore |
I'm working on Mysql data backup and restore system but stuck that how to go with it.
An Option which i may think of
Table Wise Backup Method
Creating A Directory With Dateandtime and directoy will have one definition text file with all databases and its table names plus seperate file for each table contaning table st... |
Try mysqldump with a simple shell script. It can be extended to dump tables. It now only dumps databases.
#!/bin/bash
USER="username"
PASSWORD="password"
OUTPUTDIR="./"
MYSQLDUMP=`which mysqldump`
MYSQL=`which mysql`
# get a list of databases
databases=`$MYSQL --user=$USER --password=$PASSWORD \
-e "SHOW DATABASES;... |
Git as a repo that doesn't have version control? |
Okay, here's a weird one!
I have this nifty little 32gig thumbdrive that I keep in my wallet that contains all the latest of EVERY file I need to go about life on a computer. It contains all my BASH command references, everything from rubiks cube algorithms to PDFs I use for references and digital books and all the so... |
3
git-annex does what you want. It uses git-plumbing for version control but without having a copy in the index and in the repository.
Share
Improve this answer
Follow
answered Dec 1, 2012 at 22:... |
DB2: How to backup a DB2 database? |
DB2 v10.1 database on WINDOWS 7.
Can somebody share about creating a database backup of the DB2? I could not find detailed instructions.
Thanks in advance for any help in this matter
|
2
Have you tried looking at the documentation? Perhaps the "Data Recovery Reference"?
http://pic.dhe.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.ha.doc/doc/c0006150.html
Share
Improve this answer
Follow
... |
Are there a modules for temporarily backup and restore text files in Python |
I need to modify a text file at runtime but restore its original state later (even if the computer crash).
My program runs in regular sessions. Once a session ended, the original state of that file can be changed, but the original state won't change at runtime.
There are several instances of this text file with the s... |
Why not just do what every unix , mac , window file has done for years -- create a lockfile/working file concept.
When a file is selected for edit:
Check to see if there is an active lock or a crashed backup.
If the file is locked or crashed, give a "recover" option
Otherwise, begin editing the file...
The editing t... |
what is the best way to take the backup of data of sqlite3 database of iphone application? |
i want to take the backup of all the data in the database of my iphone app in dropbox and restore it later.here the main problem is there is too much data in the app so if i am using sql queries to fetch data from sqlite3 database and storing it into the file and again reading data from that file and inserting it to ... |
I presume that you mean that you want to be able to restore the data after user has somehow deleted the application and re-installed it again. Since each application has its influence inside the bounds of its sandbox, the only sane option would be to use server. In regards to simply answering your question - there is ... |
SVN continuous dump / backup |
We have a SVN server here that over the years has accumulated hundreds of thousands of revisions and reached a size of >40 GB. We'd like to do a continuous backup on the repository, but it just takes too long to dump or copy the whole repository to our backup server each time.
Is there a way to add the latest revisio... |
I currently have this setup at work. We use a customer hosted SVN server that at times has had some connectivity issues. We also want to make sure we have a local copy of things as well. We setup a SVN repo locally, and then run the svnsync command that is executed as a result of a continuous integration service to... |
Easiest way to copy development SQL Server to thumb drive |
I have a small SQL database that is on my development PC only. I'd like to make frequent backup copies of it to a thumb drive. If I could have it do it automatically on a schedule when the thumb drive is detected, that'd be even better. What's a good way to do this?
|
This is what I did to get the database and other folders to automatically sync to my USB drive every time I plug it in:
Install SyncToy made by Microsoft.
Add a folder pair to copy from the DB folder to the USB drive.
Filter files to only the files you want to copy.
Create a batch program with the content below cal... |
What permission am missing? |
I'm taking sms backup using this
public void smsbackup() throws IOException
{
InputStream in = new FileInputStream("/data/data/com.android.providers.telephony/databases/mmssms.db");
File dir = new File("/mnt/sdcard/bcfile");
dir.mkdirs();
OutputStream output = new FileOutputStrea... |
You will need
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
because of
File dir = new File("/mnt/sdcard/bcfile");
I wonder if you can ever access: /data/data/com.android.providers.telephony/databases/mmssms.db
|
What does Transactional Backup Interval mean in the Backup Plan Wizard for Team Foundation Server? |
I'm in the process of setting up a backup plan for a Team Foundation Server. I downloaded Power Tools for TFS and I'm using the Backup Plan Wizard that was included in that pack. I am now at the step where I'm supposed to decide how to schedule the backups and I have no idea what to choose for my setup.
I get what eve... |
The transactional backup interval likely refers to how often transaction logs for your TFS databases are backed up. The schedule you choose will probably depend on how busy your repository is.
At my current client there are six developers, and we share some of the load for source control between VSS and TFS (we're tr... |
Incremetal backups of directories with a batch/shell script |
I'm trying to create a script that will automatically backup a complete directory tree. I also want it to work for incremental backups. Basically, it wil work like this:
If file is in both source and destination and they are different, source file will be copied
If file is in both source and destination and they are ... |
For windows batch scripting xcopy (native to windows) or robocopy (a free download in windows) both work extremely well.
An example xcopy script (in a .bat file):
@echo off
:: /L = list only.
:: /v=Verify, /y=No prompting /s=subdirs /z=Network mode (supports bad)
:: /i=Tells xcopy dest is folder /f=Display names /d=Co... |
Automatic backup [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... |
You can write a bash script that contains gzip, mysqldump and mail commands and have it run daily via cron job.
|
Backing Up Email |
What's a good way to backup old emails? In my case, I own a domain name that forwards all email to a Gmail account. I'm afraid that Gmail will one day go away, start charging, or lose my emails. It'd be nice to have the ability to search the emails that have been archived.
Thanks
|
I use getmail to periodically download the email by POP to a set of folders on my backup drive. GMail can be configured such that it doesn't delete or archive emails when they're downloaded, so it has no effect on the web interface.
|
Backup Algorithm |
I am looking at writing a program (.Net)for backing up files on a computer. How would I go on about knowing what files have changed to backup (I don't really want to scan the last modified dates each time.
Are there any backup algorithms for backing up only the bits of a file have changed. What are the O notations for... |
2
Check the archive bit out. It may be what you want.
In .NET it's System.IO.FileAttributes.Archive, which can be used with SetAttr in VB, or System.IO.FileInfo.Attributes or System.IO.File.SetAttributes().
Any algorithm that checks the last modified time or archive bit wi... |
What is the best way to represent a schedule in a database, via Python/Django? |
I am writing a backup system in Python, with a Django front-end. I have decided to implement the scheduling in a slightly strange way - the client will poll the server (every 10 minutes or so), for a list of backups that need doing. The server will only respond when the time to backup is reached. This is to keep the s... |
3
Take a look at django-chronograph. It has a pretty nice interface for scheduling jobs at all sorts of intervals. You might be able to borrow some ideas from that. It relies on python-dateutil, which you might also find useful for specifying repeating events.
Share... |
Restore individual tables on Microsoft SQL Server 7? |
is it possible to restore individual tables from a full backup file of Microsoft SQL Server 7 (yes, I know this is really old, but our client can't upgrade for various reasons).
The total backup file is about 180GB in size and restoring the whole database once a week to a development server is not pratical, as it take... |
It's probably not quite what you're after, because I don't think what you're after is possible.
However you could place the tables in question into a different file group. Then when it comes to restoring, you need only restore the file group that relates to the tables.
File Groups in SQL SERVER
|
Windows Home Server backup solution |
I admit this is not strictly a programming question, although I do use my WHS as a source repository server for home projects, and I'm guessing many other coders here do as well.
Does anyone have a recommendation for a good backup solution for the non-fileshare portion of Windows Home Server? All the WHS backups I've... |
iDrive is Great and free under 2 gigs
|
MariaDB 10.11 Windows Backup Authentication plugin 'auth_gssapi_client' cannot be loaded |
installed MariaDB 10.11 on Windows. Try to do backup using
$ mariabackup --backup --target-dir=F:/backup --user=root --password=
https://mariadb.com/kb/en/full-backup-and-restore-with-mariabackup/
returns with
Failed to connect to MariaDB server: Authentication plugin 'auth_gssapi_client' cannot be loaded:
But on Mar... |
2
Beginning with MariaDB 10.11 (and MariaDB Connector/C 3.3.8) the client side gssapi authentication plugin is now statically linked against the client library (which is used by all client tools)
There is one exception which is mariadb-backup - it doesn't use client library... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.