Prompt
stringlengths
14
160
Instruction
stringlengths
18
2k
Response
stringlengths
8
2k
Python rsync error in reading remote root-level files
I try to setup a cron job to rsync remote files (contains root-level files) into my local server, if I run the command in shell, it works. But if I run this in Python, I got into strange command not found error: This works if run it in a shell: rsync -ave ssh --rsync-path='sudo rsync' --delete [email protected]:/tmp/t...
It is most likely a spacing error or something small, the way I debug commands is to make sure to prints out. OS.system is a great alternative thats easier although subprocess is better. I am not around my computer to test it but you can either set your subprocess like that, or use this example. This is assuming you...
How to backup SDK before android studio crashes completely?
last night my windows 8 crashed while it had android studio opened. Today the android studio acting funny specially when it comes to debugging. emulator and debugger does not seem to communicate well. i'm thinking about reinstalling the android studio. But i don't want to download the whole SDK packs as they are larg...
1 Go to your SDKManager there you can see the path to SDK. Go to that path and backup the entire folder. Make sure you don't miss anything else SDK shows as broken. Share Improve this answer Follow ...
SQL 2008 backups failing
I've an end user who came across this error and was asking for help. Not able to take full backups, below is the error we are getting. I tried running full backups to continue after errors but it still fails. Yes sql services has full access to the disk. I was able to take full backups for other databases on same ser...
1 Most of the time CRC error (cyclic redundancy check) is connected to file corruption (for any reason), it can be hard disk error (file written on bad sector of hard disk), it is possible to be something else as well. What you can do is to take database offline for a secon...
How to do backup restore zookeeper ensemble without exhibitor?
Is there a stable solution to backup and restore zookeeper cluster without exhibitor by manually ? There is no any documentation or any sample for this issue.
1 you can use utils like zktreeutil it's quite old but it save the whole tree and you can restore it later. have a look here : http://manpages.ubuntu.com/manpages/precise/man1/zktreeutil.1.html Share Improve this answer Follow ...
SQL Server Express mirror like setup
I am trying to set up some sort of fast recovery solution for a non-for-profit volunteer project. They have two offices across the street, and the one where their servers are located is suffering power outages, a recent one was three days long and triggered the quest for some sort of solution where we could have one s...
If you can sustain some data loss and some downtime, then yes, log shipping is a good solution. In layman's term, it's basically database backup + scheduled log backups shipped/applied to a remote server. Now, if there are dependencies between the three databases, then you most likely will be out of sync if you ever ...
Delete folder and files if the folder date is 30 days old
I have a bat script that I run every day 1) Creates a folder with todays date 2) Copies some files to the new folder I want to make the script also delete the folder and all files in it if the folder is older than 30 days. @echo off echo echo ------------------------------------------------------------------ echo ...
Found the following here. For deleting folders, try this:FORFILES -p "" /D -15 /C "cmd /c IF @isdir == TRUE rd /S /Q @path" , /D is for number of days, you can play with command parameters to meet exact requirement You can also use environment variables too so you can easily only delete files on the user that is cu...
Script to backup folders
I have a folder in /opt/backup in which folders are created every day. In order to save space I would like to gunzip all folders that are older than 2 days. I don't want to create one single zip file but rather zip each folder on its own, with the name preserved. I have tried: #!/bin/bash # Backup files files=($(find...
1 You are making it too complicated. You should find directories that are old enough and simply tar zip those. find /opt/backup/ -mtime +"2" -type d -exec tar cvfz backup.tar.gz {} \; This will look for all directories (-type d) and execute a certain command on them (tar c...
How to deserialize a Riak backup into a JSON?
I have just dumped a riak db (back-up). But the backup file is a binary file. Is there a lib that it deserialize it into a human readable file (JSON w/e) ? I haven't found anything on google, neither on Stack Overflow.
Found a solution for my current problem: Connect to the env and then run following command: wget https://s3-us-west-2.amazonaws.com/ps-tools/riak-data-migrator-0.2.9-bin.tar.gz tar -xvzf riak-data-migrator-0.2.9-bin.tar.gz cd riak-data-migrator-0.2.9 java -jar riak-data-migrator-0.2.9.jar -d -r /var/riak_expor...
Where is the datastore admin in the new Google App Engine console UI?
This is the functionality I am referring to in the old style GAE console At the bottom of this page, there is 'Backup Entities' button I am not able to find the corresponding function in the new GAE console interface. Is it possible to manually drive a backup process in the new GAE console as at the time of writing...
1 Mark Cummins in the AppEngine-GoogleGroup has discovered that it's under Storage > Cloud Datastore > Settings. Share Improve this answer Follow answered Oct 7, 2015 at 11:27 oulenzoulen...
Is it a bad idea to copy project folders for backup? Add existing items instead?
I'm learning C# (self-teaching first real programming language other than VBA). Consistently, my text book asks me to create new project and add a bunch of existing items from an old project when I don't want to mess up my existing project. This seems to be their way of creating a backup. They never really said not to...
1 In case someone else comes along seeking answers - note that the question has been well answered via discussion in the comments. It sounds like my practice won't blow anything up but there's a better way: a "Version Control System" or "VCS". I'm going to have to do a litt...
Windows batch script to copy newest files with partial names
I have a backup program that saves .bak files into a folder which it rotates on a weekly basis automatically. The files are given given names like this: DB_Live_19052015.bak DB_Test_19052015.bak DB_Live_18052015.bak DB_Test_18052015.bak The backup program doesn't allow me to edit these names and I actually don't want...
@echo off setlocal enableextensions disabledelayedexpansion set "source=%cd%\source" set "target=%cd%\target" for %%a in (DB_Live DB_Test) do ( set "first=1" for /f "delims=" %%b in (' dir /a-d /tw /o-d /b "%source%\%%a_*.bak" ') do if defined first ( s...
Is rsync efficient at copying files that grow from the middle?
Suppose I have a file of size n, which has been replicated to another location with rsync. Source |-------------------------| 0 n Destination |-------------------------| 0 n In the source file, s bytes are inserted at position i. Source |----------|-----|--------------...
1 The short answer is "yes" rsync does mostly avoid copying the range i+s to n+s. It breaks up the file on the sending side into blocks and calculates a checksum for each block. Then it iterates over the receiver side file using a rolling checksum. That way if the block ...
What's the right way to restore using SQL Azure point in time restore?
This afternoon a Sitefinity application broke. Our client had been madly updating content in preparation for imminent go live. We quickly decided that restoring the SQL Azure database would be the fastest way to fix things. Something I had done in the last 10-20 minutes broke the application. The client had been updat...
I apologize this happened. In the future the best way to test this out is to restore the database to a different name but keep the original name with the original database. Renaming causes a few different operations to run in the background to make the rename happen and I know at least one of those will break the ba...
Backup from H2 database as .sql file
I have an application, I need to back up the DB as .sql file. I have the following code but it backups as .zip public void backupDatabase(Connection conn) throws SQLException { //to get absolute path String path = appConfigReader.getDbAbsolutePath(); Statement stmt = conn.createStatement(); ...
Finally i got a solution like this. And its work /**Thank god, hopefully this will backup the database*/ public void backupDatabase(Connection conn) throws SQLException { LOGGER.info("Inside backupDatabase"); //used to get DB location String path = appConfigReader.getDbAbsolutePath(); ...
How do I restore deleted documents from shared Google Drive folders?
A non-privileged Google Drive user has accidentally removed a large number of files from folders shared across an organisation. They do not have permission to delete the files entirely, because they are not the owner. However, users with edit permissions are able to remove a file from a shared folder. This returns the...
Google Drive is included in the Reports API of the Google Apps Admin SDK. It provides similar information to the Google Drive Audit Log, but with additional metadata. That includes the parent folder ID of files which were removed. To restore the files you should first query the Reports API for files removed by the use...
"cp -a" (Copy in Archive Mode) does not influence "stat" command in "Time of last change"
I'll provide the following script to reproduce the problem: mkdir a touch a/f sleep 1 cp -a a b stat --printf="%u %g %a %z\n" a/f stat --printf="%u %g %a %z\n" b/f The result for the two stat calls will differ in the timestamps: 1000 100 644 2015-04-05 10:53:35.736399836 +0200 1000 100 644 2015-04-05 10:53:36.7403998...
stat prints 3 different times: Access - the last time the file was read Modify - the last time the file was modified (content has been modified) Change - the last time meta data of the file was changed (e.g. permissions) This explains why the Change time differs between a/f to b/f (metadata was updated), while the...
Windows Azure - What is backed up automatically? and what do I need to backup manually?
This is my architecture at the moment: SQL Azure Database to store relational data. Azure Blobs to store images and videos. Azure Web Role to host WCF services (Available internally and as an external API) Azure Web role to host a web application. Little bit lost on what I need to manually backup? Can someone p...
SQL Azure Database to store relational data. SQL Azure Databases are backed up by default. To learn more about it, you may find this link useful: https://msdn.microsoft.com/en-us/library/azure/jj650016.aspx. Azure Blobs to store images and videos. Azure blobs are not backed up by default. They are replicated 3 tim...
Creating a Perforce backup using the p4admin GUI
Is it possible to create a backup of perforce using the p4admin GUI?
1 Yes, you can create backups from P4V using custom tools instead of the P4Admin GUI. See the following article 'Server Backup in P4V': http://answers.perforce.com/articles/KB/3346 There is an existing enhancement request for a user interface in P4V Admin to setup backups. ...
First LSN and last LSN the same in transaction log backups
When restoring SQL Server Transaction Log files, I have noticed a number of log backups taken over night that have the same First and Last LSN. Do these files have to be restored as part of the chain or can they be skipped?
1 The transaction log is a serial record of all the transactions that have been performed against the database since the transaction log was last backed up. So, if there were no changes in the database between transaction log backups the First and the Last LSN will be the s...
How to run remote shell command using python script
I tried to run remote command to back up my server db, after dumbing it I can't figure out how to remotely get the datas. https://docs.python.org/2/library/subprocess.html Found some documentation, but that didn't really helped me.
1 Most databases have some remote-backup service available, so I'd look into that first. That said, you could use a library that simplifies secure-shell operations. One of those is Fabric which was based on paramiko. Fabric was designed for things like remote backups (or d...
Deleted a Perforce Checkpoint
I made my first Perforce checkpoint and deleted the folder by accident. What should I do? Will creating a new checkpoint create a gap in the "chronology"? Can I make a checkpoint that is not reliant on previous checkpoints? Apologies about any ambiguity, I am new to Perforce server management. Thanks
1 Just take a new checkpoint and you'll be fine. Each checkpoint stands on its own as a snapshot of the database at the point when it was taken. The journal files fill in the time in between checkpoints. To recover the database from a disaster, all you ever need is the la...
datastax backup service not working
we're using datastax DSE 4.6.1 with opscenter 5.1.0 on EC2 (4 nodes running on m2.4xlarge) we setup the new backupservice, and it worked, but now i get an error: "Snapshot of all keyspaces on node xxx.xxx.xxx.xxx failed: clojure.lang.Compiler$CompilerException: java.lang.ClassFormatError: Invalid method Code leng...
This is a known issue (OPSC-4587) that will be fixed in OpsCenter 5.1.1 and should be out very soon. Unfortunately in the meantime there is no workaround other than downgrading to OpsCenter 5.0.2 Update: 5.1.1 just dropped and includes the fix! Release Notes
Git: can't get files to push up to repository in three machine environment
What we are trying to do: We are trying to use git to create an efficient development process as well as keep a current backup of our website. We have three machines in the loop: production: Hosted on remote webserver - LAMP, git 2.0, centos back-up: local workstation - windows, git Shell development/testing: An on-s...
GIT Workflow can be a confusing thing to set up. The important thing to understand is that git "push" and "pull" work with "remotes". You are best served with a single remote in a secure location (backups can be done separately using the '--mirror' option, but don't use it for committing). Step one; Create a "bare" ...
Backup files from linux vm in Azure
I have been tasked with backing up certain files the exist on a Linux VM in azure to an azure backup vault. I'm following the follwing documentation :- http://azure.microsoft.com/en-gb/documentation/articles/backup-configure-vault/ However i can't see a backp agent for a linux box? Am i missing something? T
1 I don't believe there's a backup agent for Linux. You would use your standard backup/restore strategy here, for example rsync if it's just files or Bacula for something else. However, if the files absolutely need to be in the vault (say, because there are Windows Server...
What if Redis triggers a snapshot in the middle of transaction?
Say i have set my Redis backup with snapshot every few minutes, and unlucky when a snapshot is triggered, a transaction (use pipeline) is in the process. How does Redis deal with this situation? Will snapshot be delayed until transaction finished? Or save the first part of transaction? Or exclude the whole transaction...
1 Keep in mind that Redis is a single-threaded event loop. A transaction is applied atomically when the EXEC command is executed. So either the RDB background save process is forked before the EXEC, or after the EXEC. You can consider that the fork takes an instantaneous sn...
Restoring Django dump
I've been running a daily dump of a production Django application as follows: ./manage.py dumpdata --exclude=contenttypes --exclude=auth.Permission -e sessions -e admin --all > data.json Normally, restoring this to another installation for development hasn't caused a problem, but recently attempts to restore the da...
That was rather painful. It seems that the way to fix it was to dump django_content_types as csv from the production posgres database, delete the IDs from the resulting csv file, then do the following on the SQLite database for the test version: CREATE TABLE temp_table(a, b, c) .mode csv .import content_type.csv te...
Backup Hard drive with robocopy
I am trying to use robocopy to backup my entire hard drive to my external hard drive using the following code ROBOCOPY C:\ "D:\HD Backup" /e /mir /tee /mt:4 /A-:SH /log:C:\Users\Aaron\Desktop\backup_log_HD.txt However it takes my 170GB from my hard drive and it was up to 400GB before I stopped it
1 :: :: Remarks : :: Using /PURGE or /MIR on the root directory of the volume will cause robocopy to apply the requested operation on files inside the System Volume Information directory as well. If this is not intended then the /X...
Access one environment from another in Engine Yard
We have a couple of environments in Engine Yard. Each of them runs the same application, but on different stages: production, staging, etc. In total about 10 environments. Now, we want to dump the production database every night, and restore it on the rest of environments to have the latest data. The problem is, an in...
1 There is a way to setup a special backup configuration file on your other instances that would allow you to directly access the Production S3 bucket from another environment within the same account. There is some risk involved with this since it would also technically a...
Making a backup creator
I am helping develop a program that makes an easy way to backup a specific file format in the form of an ips patch. We want it to compare 2 files, one in the program folder with a specific name(for ease) and then another that's user selected, which will then produce a patch with the current date/time as the file name....
The easiest way to do this would be to find an existing IPS implementation in the form of either: A pre-existing library plus API A pre-existing project Fortunately for you, Neill Corlett (the wonderful guy who made the English translation of "Secret of Mana 2" / "Seiken Densetsu 3" a reality) has already created ...
Taking SQL SERVER Database backup without Logs
I have a database "DBName" on SQL Server 2008. I want to take backup of it without logs(.ldf file). Because this log file is around 20 GB and I don't want to increase the size of backup file. I also want to do this without truncating logs from current Live database. Meaning, the backed up copy shouldn't contain trans...
A full backup only contains the portion of the log that was generated during the backup. Should be very small. If you enable simple recovery that will throw away all logs that are not backed up and break the log chain. Is there a reason to be in full recovery mode? If yes you should probably make yourself more familia...
Nested Loop with increment on inner loop?
I am attempting to make a backup script for my websites but i am having issues with a nested for loop BACKUP_DIR="/path/to/output" WEB_DIR="/srv/http" WEBSITES=($WEB_DIR/website_one $WEB_DIR/website_two) MYSQLDBS=(database_one database_two) for WEBSITEBACKUP in $WEBSITES do # tar commands here for website directo...
See here to iterate over the array keys. This way you do not need to nest the loops: $i will iterate over 0 1 2, you just need to make sure both arrays have the same number of elements. #/bin/bash WEBSITES=(A B C) DATABASES=(X Y Z) echo "debug: ${!WEBSITES[@]}" for i in "${!WEBSITES[@]}"; do site=${WEBSITES[$i]} ...
sqlite - How does the command tool command .dump affect connected applications?
I'd like to know how the .dump command affects other applications connected to the same database. I'd like to know this for the following journal modes: DELETE (the default mode) WAL (write-ahead-logging) From reading other posts on this forum .backup uses the online backup API of SQLite. It would be great to ha...
The .dump command reads the contents of the database normally, just as if you would do a bunch of SELECT queries inside a transaction. This means that when not using WAL, other connections cannot write as long as the dump is running.
Backup android to ubuntu from recovery mode
I have - stupidly enough - updated my android phone to the newest 5.0 Lollipop. The update went bad and many hours later the phone is still unresponsive. I can only enter in a recovery mode. I have seen in forums that many other users had the same problem and it turns out that the only way out is factory reset of the...
1 Helps to know what phone you have. You could look for the key sequence needed to boot into recovery mode. I'd look into flashing Clockwork Mod recovery which can mount the phone over USB while in recovery. There you could copy a new ROM zip to flash over the messed u...
How to backup entire server with symbolic links present?
I'm trying to download a copy of my entire server (Linux with cPanel installed, running CentOS). What I originally did was tar the entire server and then download the tar file. The problem with this was that when I went to unzip it on my home computer to make sure everything was there, I got a lot of error in WinRAR s...
Use tar. You should be able to get your symlinks on the target machine. You may however to have to replace some of them if you moved the root directory underneath some mount point. In that case you can find the symlinks with tar tvf the_backup.tar | egrep -i 'symbolic link to /| -> /' (or the equivalent tar tvf use...
How to erase the data on the tapes of the bacula
I'm using bacula as backup tool, but as I am not responsible for the process does not know how to reset the tapes to start over.
1 I don't know bacula or what its needs are regarding erasing tapes, but the normal way to erase a tape on Linux is: mt -f /dev/????? erase Maybe a physical erase is not what is needed by bacula - maybe it needs an entry in a tape management database deleting or resetting....
SQL Server Backup failing when using MediaPassword
I have a job that backs up a production database saves it to disk with encryption. BACKUP DATABASE MyFreshDB TO DISK='\\HomeServer\data\MyFreshDB.bak' with copy_only, init,MEDIAPASSWORD='8888' But I get this error: Msg 3279, Level 16, State 4, Line 1 Access is denied due to a password failure Msg 3013, Level ...
The problem was not with the script or password. The job is scheduled to run every month, but someone ran a backup mid month - without a password, and replaced the backup file with their (unsecured) backup. This caused the job to fail, as SQL Server (clearly) checks the password of the backup before writing over it....
Setup Amazon S3 backup on QNAP using s3cmd
I own a QNAP-219P and I want to set this up manually using s3cmd. I did quite a bit of research on this, and here are the references I got: http://web.archive.org/web/20091120211330/http://codemonkeybrown.com/qnaps3.html http://wiki.qnap.com/wiki/Running_Your_Own_Application_at_Startup http://wiki.qnap.com/wiki/Add_i...
Found out that the problem was that the s3cmd configuration file was not found when running s3cmd. So the fix was simply to copy this .s3config file to a safe shared folder, and then call the s3cmd with the "--config" parameter followed by the file. Like this: /share/maintenance/s3-backup/s3cmd/s3cmd --config /share/m...
TFS 2013 : TF400975: Failed to grant TFS Job Agent permissions to start database backups on SQL Server
I couldn't find any documentation on this error. I've inherited TFS server administration and gotten this error message when configuring scheduled backup: TFS 2013 Update 2 "TF400975: Failed to grant TFS Job Agent permissions to start database backups on SQL Server xxxxxx" TY in advance
1 Forgot to reply back on this. Sorry all. I looked at the exception and all the service accounts used by our TFS (which I didn't setup) and ensure it maps to the proper sql permissions. All in all, I granted our TFSService account SysAdmin rights on the sql box and that fi...
Bat Error "invalid number of parameters"
I am trying to write a bat file to backup a folder on my work server (sometimes the server and backup server do not sync correctly and files go missing). I have tried many different solutions and read a few different forums to try to resolve this, but I cannot seem to find anything. @echo This will now create a new b...
use set backupcmd=/W /E /H /V /C /Z /I /F /J /R /Y instead of set backupcmd=xcopy /W /E /H /V /C /Z /I /F /J /R /Y . You have redundant xcopy in parameters. EDIT. As far as I understood your comments you need a new folder like this "S:\Internal Auditor\%date:~5,2%-%date:~8,2%-%date:~0,4%" so you can do this: set SRCFO...
ec2 aws describe-volumes giving HTTPSConnectionPool error
This one has me a little puzzled, so I figured it might be worth posting here. I'm trying to take regular snapshots of an Amazon EC2 instance for the sake of making backups. Thankfully, some very smart people have already written a rather nice shell script that does this: https://github.com/colinbjohnson/aws-missing-...
1 Given the listing above showing you the region names, you can use the --region parameter to override where the script is automatically finding the region info. For example: "aws ec2 create-snapshot --volume-id vol-xxxxxxxx --region us-west-2" I was having the same issu...
Backup MySQL Database without blob data
Situation: I have a MySQL database that I would like to backup/export as an sql file. The database has a single table in it that contains a longblob field. I want to export the database without the data/contents of the longblob field. Problem: Not sure how to export the database without the longblog field's data. Desi...
To skip objects by type, use the --skip option with a list of the objects to skip. This enables you to extract a particular set of objects, say, for exporting only events (by excluding all other types). Similarly, to skip creation of UPDATE statements for BLOB data, specify the --skip-blobs option. http://dev.mysql.co...
Error in backing up database
I want to backup a database from our main server. But this error happens System.Data.SqlClient.SqlException (0x80131904): Cannot open backup device 'C:\Temp\sample.bak'. Operating system error 3 (The system cannot find the path specified.). BACKUP DATABASE is terminating abnormally. at Microsoft.SqlServer.Managem...
1 The error indicates that the path doesn't exist. Does C:\Temp exist? If so, does the service account have access to the folder? Other things might be storage is full, etc. See related question: SQL server 2008 backup error - Operating system error 5(failed to retrieve te...
Moving mysql database from one server to another server
I want to move my mysql database from rackspace server to aws server.Is there any way to do it easily.It contains more or less 1 million rows of data
If your site is not a live site and downtime is not an issue, you can try the below #step1: take a dump of your db >mysqldump –-user root –-password=myrootpassword db_test > db_test.sql #step2: zip the .sql file - this is optional >gzip db_test.sql #step3: transfer the file to AWS using .pem file >scp -i myAmazonKey...
Shell script gives lots of these things ''' as output and it never did before
Best to just tell you the input/output and you will see why it is weird. Should be a quick fix for someone good at this, I took a day just to write this script. Steps I took: Run AutoBackup.bat C:\cygwin\bin\sh AutoBackupShell.sh pause AutoBackup.bat calls AutoBackupShell.sh name=`C:/cygwin/bin/date +'backup_%Y_%m_%d...
I tried to reproduce, but I got the good result... Your issue seams to be that your double-quotes was not substitutes during the setting of end variable. Could you check you are using simple double-quote (0022) and not an exotic quote like "00AB: left pointing double quotation mark".
Backup file folder in correct way
My situation is I only have execute permission from some folder: Lets say, I would like to backup entire folder and exclude some folder and files with exclude.txt Here is path I would like to backup: /pdf/data/pdfnew/2014 And I only have permission to execute from this folder (main): /pdf/data/pdfnew/2014/public/main...
Do you have a user/home directory on that server? You should, so you should just place exclude.txt in your user/homedirectory on that server & run it like this from that directory: tar -cjvf -X ~/exclude.txt ~/2014.tar.bz2 /pdf/data/pdfnew/2014 The ~/ is a shorthand for your user/home directory so in this case it is ...
Will or Can iCloud or iTunes back up Apps Documents or App Data
I am developing an iPad App (will not put in App store, just ad-hoc deploy) that would have some documents save at apps Documents folder, and some where I need to enable the iCloud capability for some other function. If I have no other special configuration (as I don't know), I would like to ask: Will / Can iCloud or...
iCloud will backup the App data. See the iCloud: iCloud storage and backup overview Support Document, but you turn off the App data backup on a per app basis. See the iCloud: Select which iOS apps to back up Support Document. Basically the way that a backup and restore will work is iCloud will restore the App data, t...
Scheduled batch script backup folders
Hello not sure where I should place this question but; I want to run a batch script on a windows machine every night around midnight. All I want it to do is back up all files and folders on a network drive and copy this to a hard drive on the computer running the batch script. The only thing unsual I want it do is exc...
Test this: it will create a mirror backup and delete files that aren't needed but keep files that already exist, and only copy the different files. robocopy "Z:\FILES" "C:\BACKUP" /mir /xd "trashbox"
Local github backup
I am trying to perform a backup on a local git repo to another location on my git server. I've seen many posts and articles about either putting github backups to the cloud to github repos hosted by githu backed up locally. Here, I'm merely trying to back the local server git repo to another location on the server. Th...
1 There is a very simple to use python tool that automatically backs up organisations' repositories in .zip format by saving public and private repositories and all their branches. It works with the Github API, if you want to re-download from github the repositories on a se...
Should you to shut down an Azure VM to back up?
We've got 2x Virtual Machines on Azure running within a single cloud service on a load balanced set. I want to schedule periodic back ups of the VM images in blob storage; so taking the active VHDs and copying them into a separate backup container. The question is; can I safely do that whilst the VMs are online, or sh...
You can now backup Azure IaaS VMs while they are running. You can find more information about that feature here - https://azure.microsoft.com/en-us/documentation/articles/backup-azure-vms-first-look-arm/
Backup on File Close Excel VBA
I want Excel to automatically backup a workbook on file close without prompts to the user. I found the excellent code below online (forgot source) but the backup FileType is changing to a BAK File that I cannot open. How do I fix this problem. Both files will be in the same folder & the backup should have same file n...
The modified function below should save a backup with datetime of saving included instead of ".BAK". Modified part is commented. Also, posting properly indented helps a bunch ;) Sub SaveWorkbookBackup() Dim awb As Workbook, BackupFileName As String, i As Integer, OK As Boolean If TypeName(ActiveWorkbook) = "Nothing" ...
Truncated file name when compressing using batch file (7zip)
The problem I have relates to the file name being truncated on the first space in the file name. 7z a -t7z "D:\IDRIVE\New backups\Program\full\6\File.7z" "D:\IDRIVE\New backups\Program\full\4\*.*" -mx9 The above is the batch code i use ( Actually i use date instead of file,but i want to change to original name) File1...
1 You can't achieve the intended using 7z.exe, because the way it works on cmdline is same as the way zip and tar works, you need to provide the archive names followed by the filename you want to zip. Its nothing like it works on gui. But you can put following line in a bat...
How to schedule database backup?
I used the backup gem to make a backup of my database. (not so important here) I want to schedule that on every minute (to test it for the beginning). schedule.rb file: set :output, "log/cron_log.log" every 1.minute do command "backup perform -t expense_backup" end At first I tried this in the backup Backup/confi...
1 Most of troubles with things like "it works in my console but not with my cron job" are about variable environments like PATH. You should use absolute path to launch your script or be sure that it's in the PATH used by cron. Share Improve this answer ...
Oracle Whole Database Backup
What is difference between Oracle Full database Backup vs Physical/Logical? Does Physical backup include logical? I want to Backup Whole database what backup should i tell to DBA?
Physical backup is a backup made with RMAN or copying datafiles on the OS. A logical backup is a term used for data dumps using tools like datapump, export. Technically a logical backup is no a backup because you can not do a point in time recovery. A physical backup contains logical data (for example, tables or store...
compatibility TFS Update 1 backups on TFS Update 2 backups?
We just learned this morning that in TFS 2012 Update 2 they integrated backups in TFS rather than you having to install the power tools to get backup functionality. Is there any compatibility picture between the backups created with update 1 & the power tools with the scheduled backup feature in TFS 2012 Update 2? Our...
The rules are rather simple: When restoring a non-detached collection backup, you must restore to the same version. TFS will balk if they're not at the same level. An upgrade will change data structures and stored procedures. When restoring a collection that has been detached you can restore and attach it to the same...
synchronize a restored local copy of git repository
My hard drive crashed recently and I went back to a recent backup of all my data. However I had some changes in a local git repository that I had not committed before the failure. Now I want to bring everything back to where it was before the hard drive failure. That is, I have a local copy of a folder that used to be...
you simply can: clone you repo overwrite its content with your backup local copy ask git diff to display all the changes, add, and commit what you need to version.
Is NSFileManager.SetSkipBackupAttribute() also working for (recursive) paths?
I would like to exclude a whole hierarchy of files and folders from the backup using NSFileManager.SetSkipBackupAttribute() The documentation is about "files". Can I also pass a path and all files and folders under that path - also those ones added afterwards - won't be backed up either or do I have to set the attri...
Like stated in the documentation the underlying API used (except for iOS 5.0.1) is NSUrlIsExcludedFromBackupKey and according to this answer it is recursive.
The connection failed because of an error in initializing provider - SSAS 2005 - restored DB
Hullo everyone. After restoring a backup (comprehensive of security information) of AdventureWorksDW cube I am unable to log into it using windows authentication. SQL Server Analysis service version is 2005 (9.00.1399.6), installed on a Windows 2003R2 machine joined to a domain. Shoul you need any further information ...
1 Your user ID (or any group containing it) is probably not contained in any role of the Analysis Services database that you restored, and you included the security information when restoring. If you do not have Analysis Services server administration rights, then you canno...
Restoring database on SQL Server went wrong
Let's say I have database named db1 on SQL Server. I have daily backup, and I wanted to restore month old backup to new database, so I can recover just some info. I created database db2, and tried to restore the db1 backup to new and empty db2 database. I got message that backup I selected does not contain db2 backup ...
1 Sorry but I am sure you are using GUI and you were not carful in that even. Please use query over GUI for max work. Now your issue, I am not sure if you already fix but as no reply on web Now you lost your database, its of no use. So find a latest backup and restore db1...
Source code kept in SVN repository - what do I need to back up?
I have recently been tasked with implementing version control on our development systems. I created an SVN repository using TortoiseSVN by doing the following: Installing the SVN server on the machine storing the code Using the repository browser on that machine to import the source code into the repository Having i...
1 Backing Up the SVN repository server should be sufficient. One thing to remember is if the working machine goes down you would lose any configurations you have made to the working machine such as server configurations, system variables etc, so make sure those are document...
error "Finder got an error: The operation can’t be completed because there is already an item with that name." number -48
At work, I want to backup some Mac files to a Windows share and have created an AppleScript. It mounts the destination then creates a folder if it doesn't already exist. It then copies the contents of a local folder to this new folder on the destination. It then unmounts the destination mount volume "smb://service.bac...
Have you checked your 'Volumes' path? Path names usually does'nt contain the server name. I would go for (if not (exists POSIX file "/Volumes/computer-backup/Web") then make new folder with properties {name:"Web"} at "computer-backup") – tompaman Dec 27 '13 at 13:35
How to create like .xcappdata without using xcode?
It is possible to create .xcappdata like file without using xCode. Actually Our user is facing problem with there iPod, So they want to restore the iPod and remove all the application but the application contain some important data. All data is stored in Document folder. Because they don't have xcode so they are unabl...
1 There are a host of desktop applications which allow you to browse usb-connected iOS devices. iExplorer: http://www.macroplant.com/iexplorer/ i-FunBox: http://www.i-funbox.com/ iTools: http://www.itools.cn/en_index.htm DiskAid: http://www.digidna.net/diskaid I use IEx...
Creating a backup of 'this'
In javascript, I have an object (think of it as a shape), that can be put in edit mode and edited, or a not editable mode. When editable mode, I want to have a cancel button that cancels all edits and returns the shape back to its original form. I was hoping to use something like the following, but assigning things ...
1 I think Shape should contain properties object, for example this.properties. In that object you should store all information about shape (it will be something like shape's model, only data, without any methods, or other internal class data). And in backup function you sho...
Is it normal that mongodump shows `skipping collection: my_db.my_collection.$_id_`?
I tried to mongodump my db: sudo mongodump -v --dbpath /var/lib/mongodb --out ~/backups/mongodb_dump/ but each collection had interesting output (it was verbose), there are some interesting lines: Tue Dec 3 06:32:32 [tools] query my_db.my_collection nreturned:101 reslen:43408 0ms Tue Dec 3 06:32:32 [tools] getmore ...
1 What does it mean: skipping collection: my_db.my_collection.$id, why id field? Does it mean some data wasn't dumped, or that there are no ID's in the backup (so while restoring the db, new ID's will be assigned?) Collections with a $ are used by system namespaces (in th...
Why would the solution and the project be in totally different locations?
I just noticed that my one-project solution is in: C:\Users\Clay\Documents\Visual Studio 2013\Projects\Platypus\Platypus.sln ...whereas the project itself is in: C:\Platypus What is the sense of separating things out that way? I did choose the project's folder, but not the solution's. I can see why the "buried" locati...
This is the default location at which the solution file is created however if you want to change the location of the solution file then try when you create the project simply uncheck the default box for "create directory for solution". This will create the File (.sln) in the same directory as the web project. Or you m...
Should I backup the "eclipse" folder?
My "~/eclipse" folder contains the following subfolders: about_files, configuration, dropins, features, p2, plugins, readme. Is it important to include this folder, or some of its subfolders, in the regular backup of my hard-drive? Or are they just standard files that come with the installation and can always be resto...
Making a backup of the complete eclipse folder makes sense as it contains all the plug-ins which you have installed. Sometimes eclipse breaks because of a new plug-in or just any random problem. Then it's great to have a backup and you don't need to install every plug-in which you had before.
Should I backup the ".svn" folders?
I am trying to build a backup plan for my hard-drive, and I wonder whether I need to backup all the ".svn" subfolders? Note: the repository is not on my computer - my computer contains only a working copy.
You don't need to backup these .svn folders. Besides of that, you don't really need to backup your working copies since you can always checkout them from the server again. However, if your working copies are not large -- there is nothing against backing them up as all other data on your system.
Datomic Backup is failing and I don't know why
What I really want to do is move a mess of dataomic data from my lab hosts to my new staging hosts. Lab is a computer in a closet in our office. Staging is our new hardware at a colocation site in the suburbs. I think backup is the best way to handle this, but I'm open to other ideas. I'm doing this from my transac...
1 Self-inflicted: the password contains a '$'. Escaping that with '\' fixes the issue. Share Improve this answer Follow answered Nov 8, 2013 at 15:48 Brian DunbarBrian Dunbar 16322 silver...
Removing stale lockfile - rsnapshot doesn´t like my lock files
I have to pause rsnapshot from running some backups some times, so I created a lockfile for this time: cat > /var/run/rsnapshot/rsnapshot.pid << EOF $$ EOF sleep 120s But rsnapshot tells me "removing stale lockfile" and goes on with its backup. What do I have to do that the lockfile isn´t stale for rsnapshot ? The ma...
1 Damn, I found the problem, there is a problem if the lockfile is owned by another user than rsnapshot runs from... Share Improve this answer Follow answered Oct 23, 2013 at 11:12 user2693...
Running python manage.py command from django with arguments
I have the command : ./manage.py dbbackup --clean --compress provided by the django-dbbackup app which performs a backup of my PostgreSQL database to Amazon S3. I am trying to run this command inside a django celery task run daily. When I run: from django.core.management import call_command call_command('dbbacku...
1 I magically found that running: call_command('dbbackup', clean=True, compress=True, interactive=False) works perfectly. Share Improve this answer Follow answered Oct 22, 2013 at 10:28 p...
How to turn off Interactive mode in FTP (perl)
I am trying to delete a non-empty directory via FTP using a Perl script. In order to do this I first need to remove contents inside this directory and then delete directory. In FTP you need to disable prompt to do this. Otherwise it will keep asking for confirmation on deleting every file. ftp> prompt Interactive mode...
From the Net::FTP documentation: rmdir ( DIR [, RECURSE ]) Remove the directory with the name DIR . If RECURSE is true then rmdir will attempt to delete everything inside the directory. You don't need to worry about the prompt thing. Just use $ftp->rmdir($dir, 1) and it will delete the dir including everything i...
SQL Azure automated backup fails on a DB which has been deleted - cannot remove backup task
UPDATE: I was able to contact the SQL Azure team and they are prioritizing the bug. Hoping for a solution soon and will update here when I hear back. While testing the new automated Export function in SQL Azure, I set a test database to backup nightly. When this test was complete, I deleted the test database, but th...
Response from SQL Azure team: Hello, We have investigated the issue and should have a fix soon. In the meantime I would recommend creating a filter for these emails. Once the fix is rolled out you can remove the filter (I will respond back to this thread once it is). If you do not want to receive any failure em...
sql server log shipping to remote server in different network
I need to setup a Disaster Recovery. I need to setup Log shipping to remote server not in same network. I can transfer log shipping trc files to remote machine through internet. But how to import trc files to secondary server. Actually i am trying to logship to a remote server for backup copy of database.
You can restore the .trn files using RESTORE LOG (WITH NORECOVERY). You need to do a full backup & restore (WITH NORECOVERY) of the database before you can restore any transaction logs. If you can setup a VPN, it's best to let SQLServer do the whole backup & restore & verify - the copy phase is pretty easy to overri...
Create SQL Server 2008 Backup from 2008 R2
I've created a Backup of a Database on a server with SQL Server 2008 R2. I wish to restore this onto a server that is running SQL Server 2008. I've received the error: "The database was backed up on a server running version 10.50.4000. That version is incompatible with this server, which is running version 10.00....
This is not possible. At least, you won't be able to use the backup to restore on an older version. Nenad Zivkovic provided a good link and there are several ways out of this situation listed: Upgrade the older version of SQL Server to be at the same level as the newer SQL Server. Script out the objects from the newe...
What happens if a file is edited while being compressed by zip? [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...
Linux uses advisory locks, so nothing actually prevents you from modifying a file that's being read/written by another process. If your programs lock the files they are working on, one of the two will complain about the file being opened by some other program. What usually happens when a file is concurrently modified ...
How to import / export database with field MEDIUMBLOB?
I am developing a system where the user can register and search for images. These images are saved in a table that has a field MEDIUMBLOB. The problem I have starts with the fact that the system must also make a backup of the database, that is, it will also need to export and import data. When I do the backup, for...
I just solved my problem! The solution was at the time of registration of the image. It was necessary to convert it to base64_encode. With this PHP script I could generate an INSERT correctly, precisely because the string does not contain any special characters.
backup each tables of all databases and save it to local directory?
I have looked everywhere.. but not able to find any perfect solution (free) where I can download backup of all databases->tables individually so I can restore any table anytime I want and I do not have to restore whole database.. I am using mysql database, I have like 10-15 databases and 100+ tables in each. I can s...
1 use mysqldump an example of what you want mysqldump --user=dbuser --password --tab=~/output/dir --all-databases that will put a seperate sql file in ~/output/dir for all databases which user has read and lock access to a full list of commands found here http://dev.mysq...
How to: Backing up a Ontology?
I'm working on a dynamic system that uses a not too big ontology, to make correct decisions based on received information. I need to back up this ontology, together with its individuals so that the system can be restored after failure, but I don't know the ontology, nor how many individuals it contains, so the backing...
You can try to use Jena it supports persistent ontologies. Also, you need to decide in what format you will store your ontology (XML, JSON, etc), then for example, the backup method can create an XML out of every semantic entity. You can use JAXB/XStream/gson to achieve that (Java to XML/JSON). Good luck!
Mysql how to backup and restore after version 5.5
The mySQL manual says that backup and restore are deprecated, and removed in version 5.5. I have ISAM tables dumped with "backup" from an earlier version (5.0) - how can I restore these to a 5.5+ mySQL database.
I dont mean to sound snarky, but older versions of mysql can be obtained. Why not install a copy of the older version of mysql, export to SQL using mysqldump, then reimport into a newer version. Perhaps use a virtual machine inside Virtualbox.
Rsnapshot without hard links?
I'm using Rsnapshot to backup all my servers on an EncFS encrypted partition. The partition has been created with the default paranoia mode offered by EncFS, thus it doesn't support hard links. I'm able to run Rsnapshot the first time (creating daily.0, weekly.0, monthly.0) but not the second time. Is there a way to u...
1 Look for this section in /etc/rsnapshot.conf file: # If your version of rsync supports --link-dest, consider enable this. # This is the best way to support special files (FIFOs, etc) cross-platform. # The default is 0 (off). # #link_dest 0 Make sure the "link_dest" is d...
Backing up sqlite DB on iOS
I would like to make backup copies of my app's main sqlite DB while my app is running. 1) I have read that it is safe to just copy the sqlite file if the DB has been checkpointed (at that point the wal file contains no important data). Does [managedContext save:] do that checkpointing, or is there something else I ...
1 I have uploaded a sample app that provides backup and restore capabilities a number of different ways, including local backups, copy backups to and from iCloud, email backups, import from email, and file copy via iTunes. See link below for video demonstrating these cap...
Backup database and web folder in EC2
I have moved my first site to a EC2 micro instance, now the project is working I am trying backup database and images folder, if possible inside Amazon (Glacier? S3?). I have read a lot about it, but I am sure anyone has scripted this before. Stack: - Ubuntu Server 12.04 LTS - Apache 2.2.1 - PHP 5.4.4
it´s very basic script, these are the steps: Install s3cmd from official site Invoke s3cmd in your shell and add your AWS credentials Create a new S3 bucket to store the files, better than Glacier In your bucket properties set lifecycle to autoremove them after 90 days Go back to your shell and paste the script belo...
Backup/Restore issue with mysqldump (table with URLs)
I have a MySQL that that primarily has innodb tables. I did back up using mysqldump, phpmyadmin, and by saving the files in /var/lib/mysql. When I try to restore them now, all the tables are restored except for a table that contains "URLs". The information in that table is not complete. I tried restoring the three typ...
I've recently had trouble using mysqldump. My locales and client and server and table charsets and everything that could posibly be set to use utf8 charset was set to use it and still I was getting rubbled ASCII output on mysqldump, which lead to errors when importing because of all the ??·$^"·???. mojibake input. My ...
Incremental export records from a database table
For a given table in my system of record (RDBMS), I need to implement a functionality to export the records incrementally. For example, if a user runs an export job which returns x number of records, I want to return a snapshot id back to the user. For the next export job, user will pass that snapshot id to me and usi...
Timestamps are obviously global, thus a snapshot ID only needs to be a single timestamp. In SQL Server, for example, you can run SELECT CURRENT_TIMESTAMP to get the current timestamp. When you want to export, run individual queries on each table to export the rows that have a timestamp between the last exported and th...
SQL Server 2012 restore excluding filestream
I have a SQL Server 2008 database which has filestream. I need to backup this database excluding filestream and restore the database on SQL Server 2012. I have researched this and found: http://social.msdn.microsoft.com/Forums/en-US/sqldisasterrecovery/thread/bcd5dddf-5a66-42a9-acf4-a63136f3658a This works when I am ...
1 I have the same problem and I have solved with rewriting the Backup and Restore methods by using the Smo libraries. Examples: Backup Example Restore Example By the way I'm doing the following in case Partial backup or restore. if (partial) { sqlRestore.Partial = ...
how to take log file backup automatically
How to take automatically backup of a log file(.txt) when it's size reached a threshold level, say 5MB. The backup file name should be like (log_file_name)_(system_date) and original log file should be cleaned(0 KB). Please help. Thanks in advance.
1 Check your log file size using lenght().Then check if its bigger then 5mb call extendLogFile() func. This is c# code u can easly convert to java Size check: if (size > 400 * 100 * 100) { extendLogFile(Path); } Copy old log file in archive directory and create new log ...
How to create a MYSQL backup with custom names and information
I need to make a database backup of mysql, but it should have certain features. The backup should execute on a click of a buttton in java swing. Path : The path should be declared by me where it is saved (e.g c://backup) but The path should be such that there should be no saving problem if I provide the jar file for m...
I would just use the mysqldump command for that. Maybe you could even call it from whatever program you are writing. The syntax is simple: mysqldump -u <user> -h <host> -p<password> <dbname> > <filename> this will just put the whole database into that file as an sql script.
linux/ubuntu batch scripts with FreeFileSync
How can I execute a FreeFileSync batch script on Ubuntu? I have set up a batch job, saved in a file with extension ".ffs_batch". What now? If I double-click on it, there is no file association. I am familiar with executing .bat files on Windows by double-clicking, but I'm on Ubuntu. I expect there to be a command-line...
It appears you didn't understand what FreeFileSync documentation was trying to tell you. The scripts themselves are not like .bat files, i.e., they are not self-executable. Ubuntu has no idea what to do with the file that you're double clicking. They need to be passed into the command line prompt for FreeFileSync in s...
Too many open files occured when cassandra snapshot
java error occured when I try to cassandra snapshot. root@cassandra mytest]# /usr/local/apache-cassandra-1.1.7/bin/nodetool -h localhost mytest so, I added to /etc/security/limits.conf follow this: http://www.datastax.com/docs/1.1/troubleshooting/index#java-reports-an-error-saying-there-are-too-many-open-files soft...
1 In addition to limits.conf, you need to do the following: Edit /etc/pam.d/login, adding the line: session required /lib/security/pam_limits.so please try it and let me know of the result. Share Improve this answer Follow ...
Use another source if external service is down
In my project i'm using following small library for interacting with the external serivce: class ExternalServiceInteraction include Singleton URL = Rails.env.production? ? 'https://first.production.url.com' : 'http://sandbox.url.com' API_KEY = Rails.env.production? ? 'qwerty' : 'qwerty' DOMAIN = Rails.e...
I write my own HostBackup Faraday middleware for this case. You are welcome to use it! https://github.com/dpsk/faraday_middleware Here is an article: http://nikalyuk.in/blog/2013/06/25/faraday-using-backup-host-for-remote-request/
Continuous Backup of Mediawiki [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 ...
It depends on what you mean by "continuous". If you want a copy of the database running that is always the same as the main database, you will need to set up "replication" - see http://dev.mysql.com/doc/refman/5.1/en/replication.html for how to do that. If you want a database backup that is relatively current, then ru...
How to restore the snapshot of a file system with service online?
I'm now implementing a file system back-up and restore program under Linux. The requirement is that all the operations must be taken online. My problem is, currently, the program has no sense of the state of files to be restored. So it is possible that some file is being edited by other application when restoration oc...
You can try to listen for filesystem change and see if you are responsible of those or not. inotify framework is here to help you in such task. inotify is a userland api. see wikipedia... http://en.wikipedia.org/wiki/Inotify
Store parsable backup of all printed documents
What I'm trying to accomplish is to always keep a parsable duplicate of all printed documents, and execute a secondary process for each print. (i.e.: Be able to parse all text, account for pages, vectors, images, etc). Processing the document can either be done immediately or deferred (immediately is desirable). As fo...
1 It's only part of an answer, but rumor has it you can tell Windows to keep spooled documents (right-click the printer, choose "Printer Properties", Advanced, "Keep Printed Documents"). You could enable this, and then create a scheduled task (or system service, etc.) that ...
Back Up My SQL database in PHP
Hello everyone I am pretty new to php. I am trying to create a back up of my sql database and I want the back up to run on php server at the click of a button. I found some templates the issues I am having and it may be due to the wrong templates are: On most of the templates I don't where I should enter the informati...
1 Use exec function to call mysqldump, a backup utility program that's bundled with every MySQL database. Pass the folder you would like the file (it will be a .sql file) to be put, and you can simply download or ftp it from there. A simpler option is to install PHPMyAd...
Make a backup copy of several files matching a pattern
I have files: x0001_test.xml z0054_test.xml k5487_test.xml.... I would like to save them doing something like: cp *_test.xml ${BEGINNING}_test.xml.SAVE. Is there a way in bash script to store the content of * for each file in order to re-inject it after? Or should I use a loop?
A loop to do that is probably trivial enough to not need a separate one-line command. You don't need to save a portion of the filename since you're just adding .SAVE to the whole thing: for fspec in *_test.xml; do cp "${fspec}" "${fspec}.SAVE" done And, in any case, you can do it in one line if you really want: f...
Bash script to backup files to remote FTP. Deleting old files
I'm writing a bash script to send backups to a remote ftp server. The backup files are generated with a WordPress plugin so half the work is done for me from the start. The script does several things. It looks in the local backup dir for any files older than x and deletes them It connects to FTP and puts the backup ...
To send only zip files that were created today: MPUT_ZIPS="$(find $BACKDIR -iname '*.zip' -type f -maxdepth 1 -mtime 1 | sed -e 's/^/mput /')" [...] $LFTP << EOF open ${FTPUSER}:${FTPPASS}@${FTPHOST} mkdir $FTPDIR cd $FTPDIR mkdir ${TODAY} cd ${TODAY} ${MPUT_ZIPS} cd .. rm -rf ${RMDATE} bye EOF Hope this helps =)
Unexpected token: BACKUP in statement
I'm having a problem while trying to make an online backup in a HSQLDB database: I'm using this rc file: urlid pentaho url jdbc:hsqldb:hsql://localhost:9001/hibernate username PENTAHO_USER password whatever And this command line: java -jar ..\data\lib\hsqldb-1.8.0.jar --rcFile conn.rc pentaho Once connected, I try t...
The BACKUP command is not supported by older versions of HSQLDB. Use version 2.2.9 instead of 1.8.0.
How to run python script once in a day that is creating back-up copy of network dir?
I want to take back-up copy of my network dirs once in a day on specified time, Below is the code of my current work by which i am running it manually. So i want to do this manual work as windows service which creates a back-up copy of specified network dir on particular time. import tarfile import datetime def back...
1 Here's a recipe that shows you how to create a windows service using Python: http://code.activestate.com/recipes/576451-how-to-create-a-windows-service-in-python/ Share Improve this answer Follow ...
Delete Database before it is being Backuped
I'm using SQL Server 2008. now I want to create a trigger for capturing Database Backup. I watched to DDL triggers. but did not find anything about backup. EDIT : Really what i need to do. if someone will backup database i want to drop database. maybe it is not good to do it with trigger or event notification. if so ...
1 You can use Event Notification for the AUDIT_BACKUP_RESTORE_EVENT event. The Audit Backup/Restore event class occurs whenever a backup or restore command is issued. Share Improve this answer Follow ...
using torrents to back up vhd's
Hi it's a question and it may be redundant but I have a hunch there is a tool for this - or there should be and if there isn't I might just make it - or maybe I am barking up the wrong tree in which case correct my thinking: But my problem is this: I am looking for some way to migrate large virtual disk drives off a ...
1 Bittorrent is an excellent choice, as it handles both incremental updates and automatic resume after connection loss very well. To create a .torrent file automatically, use the btmakemetainfo script found in the original bittorrent package, or one from the numerous rewrit...
can't run sql backup script on shared hosting
I can't run SQL backup script on shared hosting through asp.net website This is the error message: BACKUP DATABASE permission denied in database 'TestDB'. BACKUP DATABASE is terminating abnormally. This is the code: sqlcon.Open(); //query to take backup database sqlcmd = new SqlCommand("backup database TestDB to di...
1 The user account you are connecting with doesn't have the permission to do a backup. (That's what the error says) Only users who are members of db_owner or db_backupoperator have the backup database permission by default. Your hosting provider will probably provide some o...