Prompt
stringlengths
14
160
Instruction
stringlengths
18
2k
Response
stringlengths
8
2k
Error while taking backup in Azure
I was trying to take a backup of an existing VM. But unfortunately it failed while configuring backup itself. Indeed it was actually provisioned from an backup of an existing machine which was already backed up. How come now alone I could not take a backup? The error was Error Code: UserErrorGuestAgentStatusUnavailab...
I overcame with the issue by taking an image with the help of Backup failed machine's root disk VHD URI and tried launching the machine with that image and was able to take backup with no data loss.
Backing up and Restoring Jenkins configuration and Logs
Is there an easy way to backup and restore a Jenkins master (config, logs, etc)? Is it just a case of compressing and decompressing the directory (on Centos7): /usr/share/tomcat/.jenkins?
You can just copy the files on JENKINS_HOME or for a better approach you can use thinBackup With thinBackup you can easily make the backup and restore.
Minimum Privileges required for Mongo lock and unlock
We need to have a user with minimal privileges that is only able to lock a mongo instance, using db.fsyncLock() and db.unlock(), to ensure we can take consistent snapshots of the disk images. I currently have the following role created: { "role" : "local_lock", "db" : "admin", "isBuiltin" : false, "rol...
1 I believe I was making a typo assigning the role to the user, the following does indeed work: [ { "role" : "local_lock", "db" : "admin", "isBuiltin" : false, "roles" : [ ], "inheritedRoles" : [ ], "privileges" : [ ...
Backup SQL database from secondary linux server
I took over a website at a less-than-optimal hoster with no backups yet. I do have an FTP-access and I know the database access parameters of the installed web-app to the MySQL server, but I don't have access to the MySQL interface or the underlying server. I would like to do an automated backup to a Linux server unde...
1 You can use mysqldump to back up a remote MySQL database. Suppose your MySQL database is on a host called "dbhost". You can reach that host over the network from your new Linux host. Run this command on your new Linux host: $ mysqldump --single-transaction --all-database...
How to change the time of day Backups creates a backup in Ubuntu 16.04?
I would like to use the built-in application Backups in Ubuntu 16.04 to backup my system. However, it seems I can only choose to schedule a backup every day at some unlisted time. The application keeps popping up at around 4:30 PM, but that's not a good time for me to make a backup. How can I change the time of day it...
1 'Backups' is just a GUI for 'Deja-Dup', which is a frontend for 'duplicity', the actual backend making the backups. Long story short, the answer is no : the finest time granularity you can achieve is in days, not hours. (See https://bugs.launchpad.net/deja-dup/+bug/47919...
Yii2: How to download backup files using spanjeta/yii2-backup?
In a Yii2 project I want to download file backup. I have setup the download button in my action column. My code doesn't work, when I click the download button, it load a blank page. I need someone to help me to download the file backup. my_controller: public function actionDownload($file = null) { $this->updateMen...
I try,It's work. public function actionDownload($filename = null) { $file = $filename; $this->updateMenuItems(); if (isset($file)) { $sqlFile = $this->path . basename($file); if (file_exists($sqlFile)) { Yii::$app->response->sendFile($sqlFile); } //throw new Ht...
Azure virtual machine rollback
I've got a machine on Azure platform with Debian on it. It has some things installed and at this point I want to make a copy of it and do a few things, that may broke this installation. That's why I need a simple and fast option to rollback this machine to it's clean state. Normally I would use snapshots, that would a...
The easiest way would be - go to the disks properties and create a snapshot, that is if you are using managed disks. Otherwise - use this article.
Schedule crontab job for last sunday in the month [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...
Create trivial script last_weekday_in_month.sh and use it in your crontab entry. You use syntax far beyond basic shell => IMHO it is better to move it to trivial script with specific shell enforced via #!/... 12 * * 0 /path/last_weekday_in.month.sh && sudo tar -cpzf /media/BackupDisk/wwwJUNEbackup.tar.gz /var/www la...
pg_dump: too many command-line arguments when calling from cmd
Im trying to make a backup in a folder C:\Users\Marko Petričević\Documents\Radni_sati_Backup\proba where "proba" is the name of backup file. My command looks like this: pg_dump -h 192.168.130.240 -p 5433 -U postgres -F c postgres > C:\Users\Marko Petričević\Documents\Radni_sati_Backup\proba and then i get an error...
Found out what the problem was: pg_dump -h 192.168.130.240 -p 5433 -U postgres -F c postgres > C:\Users\Marko Petričević\Documents\Radni_sati_Backup\proba needs to be like this: pg_dump -h 192.168.130.240 -p 5433 -U postgres -F c postgres > "C:\Users\Marko Petričević\Documents\Radni_sati_Backup\proba" Problem w...
GitLab backup auto-cleanup
So I have GitLab installed on our server and I also followed their guide on how to setup the backups. Goal [Source] Create a cron task to backup the data every Tuesday - Saturday at 2:00 AM [Source] Upload the created backup file to a Windows mounted drive [Source] Remove backup files older than 2 weeks (14 days) on ...
I couldn't find an answer where GitLab will take care of this for me so I just created another cron task: 0 3 * * * find /path/to/mounted/drive/ -mindepth 1 -maxdepth 1 -name "*_gitlab_backup.tar" -mtime +13 -delete
PostgreSQL table backup from node.js(express)
How to create full Postgresql database backup and separated table from node.js (express/loopback)? I didn't find any solution to sole it... Any information... I'm interested in sql dump, because there are 2 "big" tables (~40.00. raws / ~ 30 columns) and several tables-dictionary.
1 A simple answer, although maybe not what you're looking for: you can make a package.json script which uses shell commands (including the PostgreSQL built-in pg_dump): "backup-db": "pg_dump YourDatabaseName | gzip > backups/database_backup.`date +%m-%d-%Y-%H-%M`.gz", ...
Azure: VM Backup Explained
I am working towards my first capture of a Linux Azure VM using the capture tool. The first step is to run sudo waagent –deprovision. Running this command does the following: Removes SSH host keys (if Provisioning.RegenerateSshHostKeyPair is 'y' in the configuration file) Does this mean that my private/public key...
The process you have described is for creating an image. This image can then be used to create multiple VMs. This is different than taking an already built VM and moving it to Azure as is. 1) Yes. You are provisioning a new VM from the "captured" image. You really don't want multiple servers having the same privat...
Can I flash with fastboot image created with adb pull? [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...
Unless you don't want to change other stuffs like boot or recovery, yes you can directly flast the data file of .img format. You are also suggested to erase the old data so that it doesn't create any previous leftover. So, fastboot erase data fastboot flash data file_name.img would be the proper way of flashing a da...
How do I backup Android Studio itself
I don't have that fast internet and need to format my PC. It's running on Ubuntu 16.04 and I want to backup the installation of Android Studio so that when i format my pc and install ubuntu again, i could use it again. Thanks in advance.
1 copy /usr/local/android-studio and all its childs to your backup folder also backup /home/user/.AndroidStudio*.* and /home/user/Android Share Improve this answer Follow answered Apr 23, 2017 ...
In Business Catalyst, where are the blogs files located?
I want to do a backup of my blogs in business catalyst, but i can only import. There is no export features. So I want to go on the business catalyst server directly to get the files, but I can't find any of them, even when doing a 'Find all in folder' search. Where are the blogs files ? I can actually see my blogs on ...
There is no immediate access to an export of the Blog module in BC. Also the posts are saved server side in a database, so you will not find them in FTP as they are not filed that exist on the site. Both these points means it won't be simple to get them out. The only thing you can do is put all the posts out into an...
FileNotFoundException but file exists C#
namespace Backup public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btn_Backup_Click(object sender, EventArgs e) { List<DirectoryInfo> SourceDir = this.lbox_Sources.Items.Cast<DirectoryInfo>().ToList(); string TargetDir = this.tbox_T...
Seems like you need to modify File.Copy line: var targetPath = Path.Combine(TargetDir, file.Name) File.Copy(file.FullName, targetPath , true); I changed first argument from file.Name to file.FullName - this should fix the exception
How to copy just the files in a folder in python3?
source = ('C:\\Qualys Report\\Qualys Data\\') dest1 = ('C:\\Qualys Report\\Backup\\') for filename in os.listdir(source): if filename.endswith('.csv'): shutil.move(source+filename, dest1) For some reason its moving the folder and csv file i have into the ...
1 From the question it seems you are simply trying to copy the csv files from a single source dir (not recursively), you should use copy not move/rename if you wish to keep the original copy in place, with a copy in dest1. import os source = ('C:\\Qualys Report\\Qua...
Is there a way to group my DynamoDB export tasks on one EMR cluster?
When I set up a re-occuring backup via the export function in the DynamoDB console, the task it creates automatically creates a new EMR cluster when it runs. Some of my tables need to be backed up but are fairly small. What I end up with is a huge number of large servers running to back up some relatively small tables...
Yes, it is possible. There is not a direct way but needs some additional tweaking in the Data-Pipeline end. You are required to understand how Data-Pipeline actually runs your export job by default. When you click on export button on DDB console, it takes you to Data-Pipelines console to create a Pipeline for the ex...
Backup Windows 10 with an Antivirous
This is a general question. I have heard from some people that it is not ok to make a backup of Windows with antivirus already installed in it. I have no idea is it right or not. I want to make a backup of my Windows 10 with a 3 party software like Acronis. I would really appreciate if someone can clarify is it ok or ...
I have no idea is it right or not. If you have no idea, check the documentation of both program products. Some antiviruses may block other software from directly accessing your hard drive, as this action was popular in viruses to hide from OS and antiviruses. But popular backup solutions are known and probably mark...
Error on backup bash script: syntax error near unexpected token `newline'
I am having problem finding error on bash script for handling backup:daily, monthly, yearly. Here is the script: #!/bin/bash echo > /home/alpha/folder/keep.txt #writing dates of the backups that should be kept to the array for i in {0..7}; do ((keep[$(date +%Y%m%d -d "-$i day")]++)); done for i in {0..4}; do ((keep[...
Your date expression seems to misbehave inside the arithmetic context. Adding temporary variables solved your issue for me : #!/bin/bash echo > /home/alpha/folder/keep.txt #writing dates of the backups that should be kept to the array for i in {0..7}; do ((keep[$(date +%Y%m%d -d "-$i day")]++)); done for i in {0..4}...
Delete older than 30 days if not 1st of month
I have this in a cron job to remove databases older than 30 days: find /my/backup/path/* -mtime +30 -exec rm {} \; How can I modify this to only delete the files if the backup was not taken on the first of the month? E.G. I want have a daily backup of databases (for one month only) PLUS a backup for each month: Jan/...
1 rm_if_not_on_1st() { [ "$(stat -c %y "$1" | cut -c9-10)" = "01" ] || rm "$1" } export -f rm_if_not_on_1st find /my/backup/path/* -mtime +30 -exec bash -c 'rm_if_not_on_1st "$1"' _ {} \; Share Improve this answer Follow ...
How to backup the cassandra running in docker container
We have cassandra cluster with 3 nodes running in our environment in docker container. Earlier we used snapshotter but as we have recently migrated it to docker how can we achieve the backup of cassandra. Is there any way to take the incremental backups. Thanks in Advance. Kiran Kumar
1 If you are comfortable with Snapshotter then you can use Snapshotter with docker also. just mount cassandra docker volume in host somewhere and take backup as usual with Snapshotter. you can mount docker Cassandra directory /var/lib/cassandra to /opt/cassandra on host sys...
Backup-manager archive name when uploading to s3
I am using backup-manager to back up a directory's content say /home. I want to upload the archive file to s3 bucket. I have a directory structure in s3 bucket say /bucket_name/x/y/ If I write export BM_UPLOAD_S3_DESTINATION="bucket_name", the archive will be uploaded to bucket_name/ If I write in export BM_UPLOAD_S3_...
As BM_ARCHIVE_PREFIX doesn't help, we can ask backup-manager to generate the backup file but not to upload it. We can write a script to upload the file and can specify whatever address we want in the script. That's the only feasible solution.
Writing files in the wrong path with bash
In the following bash backup script: PROJECT="testPrj" BACKUP_DIR="~/Documents/backups/" BACKUP_FILES="./*.sh ./*.h ./*.hpp ./*.c ./*.cc ./*.cpp ./*.md ./*.txt ./BUILD" BACKUP_TIME=_`date +%Y%m%d_%H%M` BACKUP_FILENAME=$BACKUP_DIR$PROJECT$BACKUP_TIME.tar.bz2 mkdir -p $BACKUP_DIR echo "Created backup directory:" $BACKU...
~ won't be expanded to your home directory when it's in quotes. Leave it (and the following /) unquoted, like this: BACKUP_DIR=~/"Documents/backups/" Also, it's safest to use lowercase or mixed case for variable names so you don't accidentally use a variable name that has special meaning to the shell or other program...
How to backup NodeMCU firmware?
How do I backup my NodeMCU firmware before upgrading? Note: I am a completely newbie at this. I have never worked with a NodeMCU before. I have other programming skills, so programming is not new to me.
esptool.py has a (undocumented) read_flash option which you can use to read the firmware from 0x0000 back to a local file. $ esptool.py read_flash usage: esptool read_flash [-h] [--no-progress] address size filename esptool read_flash: error: too few arguments
List files from directory with .zip extension and sort by newest created file first
I thought i would share something useful, so i wanted to list only .zip files in a directory (to minimise what i am displaying in PHP for security) so i have used the below script with the newest files on top. This is just some code i wanted to share incase anyone else needed to do something similar. <?php function l...
Please see my above answer as to how i have listed all .zip files in a given directory, order it by filename and used as a function so i can easily repeat the use elsewhere.
No backup transports available on android emulator with api level 24+
I want to test backuping of my application, but backup transport isn't available on the emulator. I tried two emulators - Android API version 24 and 25, both with Google API support. When I execute bmgr list transports, bmgr answers: No transports available. When I execute the same command on my device and emulators w...
It seems the problem affects only x86_64 emulators, on x86 API 24 emulator local transport is availabe.
Why does my Joomla site subdomain copy the main site?
I'm not a pro with server management, I mainly do web design on Joomla. Our IT Manager recently left and I was given access to everything since no-one else in our company knows web. We have a main site. In this example I'll name the site as cookies.com for example sake. www.cookies.com is the main site. The domain is ...
You probably have used the same database for both. Create another database and user for dev.cookies.com and use that database and user to create the new dev site. Check in the configuration.php file that these values should be different. public $db = 'joomla'; public $password = 'db_password'; public $user = 'root'; ...
How do I export some data my local Postgres db and import it to a remote without deleting all the data from the remote?
I’m using Postgres 9.5 on Mac Sierra. I want to export some table data from my local machine and import that into a Postgres 9.5 database on a Linux machine. Note I don’t want to blow away the data on the Linux machine, only add the my local machine table rows to the rows that already exist on the tables in the Linu...
Use --format plain instead of custom one. The latter is designed to work exclusively with pg_restore. Plain format also allows you to take a look into dumped data with text editor and verify if that's what you want. However my quick test shows that it's also possible to append data with pg_restore and custom format da...
Multiple backup images on windows 10 [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...
I figured it out. You need to rename the folder under WindowsImageBackup, wich is your pc name. When restoring an image you'll get a list of all different images.
Backup into physical file using CoreData
I am going to use CoreData in one macOS application in order to manipulate about 100 MB that changes every second, the size should not increase significatively. The relational nature of CoreData is exactly what I need. I have to be very careful in order to not lose any data so I would like to create some physical file...
The closest built-in option is the NSPersistentStoreCoordinator method migratePersistentStore:toURL:options:withType:error:. It takes an existing persistent store and saves it in a new location. (Note that this method has nothing to do with migrating to newer versions of the data model). However, when this method comp...
Server shell backup script (bash)
Name of a script - backup_script.sh Location of a script on server - /home/company_folder/company_site_backups Line added to the cron file: @monthly /home/company_folder/company_site_backups/backup_script.sh #!/bin/bash DIR="/home/company_folder/company_applications/*" BACKUPDIR="/home/company_folder/company_site...
1 The cd $DIR seems strange; if the first entry found by /home/company_folder/company_applications/* is a directory it will change to that directory; if it is a file (or company_applications is empty) it will get an error. Perhaps everything is running correctly except that...
Stop paying Jira account
What if I stop paying Jira, would I lose whole my backlog and other achievements of my team or it just would be frozen? And is there any way to backup all the data of account in the Jira? Thank you!
You can find backup instructions here: https://confluence.atlassian.com/cloud/cancelations-744721616.html I believe you will lose access but the data will still exist for 2 weeks, so you can reactivate: "Once your site has been deactivated (i.e. your site has been taken offline), you have two weeks to pay your outstan...
delete macrium reflect backup image
I have recently made a backup of Windows 10 using Macrium Reflect v6.1; the backup consists of an image written to an external hard drive, following these "widely used" instructions: http://www.everydaylinuxuser.com/2015/11/how-to-backup-windows-10-safe-way-with.html For some reason I would now like to remove the imag...
Meanwhile, found a way. I run the Win10 build-in tool diskpart twice, using command clean (carefully!). After that, I could initialize, format and partiton the drive "as usual" with the Win Disk Management. With the drive having 4 TB memory, I had to use GPT as partition style to access it fully; with MBR style not al...
SQL Server Datacenter Backup compatibility
I did a backup of my db on SQL Server Datacenter Edition and I need to Roll it up on SQL Server Standard. Is that possible? If so, what pitfalls are worth considering? Thank you in advance.
You will need to look out for unsupported features which are present in Enterprise and not in Standard... for Example,Partitioning is available in Enterprise,but not in Standard.so you will need to restore database and remove partitioning and then take a backup for it to work in Standard Below DMV will provide list of...
Backing up installed android-sdk
For some reasons I need to reinstall my Windows 7 OS. I have android-sdk installed at: C:\Users\user_name\AppData\Local\Android\android-sdk and the entire directory weighs 2.5 GB. What is the best way to back up the 2.5 GB and use after I reinstall my OS ? Using backed up sdk would save a considerable amount of time....
1 I recommend you to Zip the sdk and move to another partition like D: E: F: , Now after you successfully installed your windows, Install Android Studio, Extract the sdk.zip you made previously and select the sdk folder you just extracted. You need internet connection fo...
SQL Server 2008 R2 differential backups much larger than expected
We have several SQL Server 2008 R2 databases for which we perform a full backup every Sunday then differential backups Monday to Saturday. We also do transaction log backups every 10 minutes. The first differential backup on Monday is usually quite small, but Tuesday to Saturday are much larger but similar in size to ...
1 How differential backup works..? Whenever we take a differential backup,it copies all the changes which occured from last full backup,Not from Last differential backup.. That is the reason why you are seeing "actual sizes are hugely different and can be half the size of t...
Is it possible to restore backup from Solr 6.0 to Solr 6.1?
I am trying to restore backup (migrate) index from Solr 6.0 to Solr 6.1. However, when I follow the steps on https://cwiki.apache.org/confluence/display/solr/Making+and+Restoring+Backups , I get an Exception Error saying it failed when I use curl -XGET http://localhost:8983/solr/mycollection/replication?command=resto...
1 I wrote an application to do this, it is available on github: https://github.com/freedev/solr-import-export-json The idea behind the code is simple, when you query a collection using the Solrj, even an entire collection, it returns a stream documents (i.e. SolrDocument). ...
Exe crashes in BackupRead Windows function
The Below is my C++ code I tried to back up a file, including the security information. I used Backup read but whenever the code is called the exe is getting crashed. char buff[225280]; DWORD numberOfBytesToRead = 225280; DWORD dwBytesRead=0, dwBytesWritten, dwBytesRead2=0; BOOL bProcessSecurity = TRUE; LPWSTR sourceB...
You passed NULL as the last parameter to BackupRead, which is clearly invalid acording to the docs. lpContext [out] Pointer to a variable that receives a pointer to an internal data structure used by BackupRead to maintain context information during a backup operation. You must set the variable pointed to by lp...
When I Restore in Elasticsearch 2.2 and Index more docs at the same time, how ES Behaves?
I am restoring an Index in ES, and indexing more docs of the same type in the same Index, how ES behaves? Is there any performance impact? If I am restoring documents with the same ID that are being referenced? What happens? Any happens before relationship I should care about?
When an index is been restored, it's closed, which means you cannot index any documents into it.
Windows 10 Image Backup to Thumb Drive
Fellow Forum Members, How does one create a System Image of an entire Windows10 installation onto a 128GB thumb drive? I tried doing it through the Windows 10 System Image tool but it sees a thumb drive as an invalid storage device. Then I Googled the subject and learned I need to convert the thumb drive to a Local D...
1 First, I think you should plug your thumb drive into another computer to confirm that your thumb drive is available. And if it is normal, there is something wrong with the Windows 10 system image tool. I recommend a perfect backup software - AOMEI Backupper which can crea...
Shellscript 2nd newest folder in tgz
I've tried to develop a little backup shellscript. When I Run it int the Backup_FILESERVER Folder it's creating the tgz. But from /root I get an Error. tar cvfz /NAS/for_tape/FILESERVER.tgz /NAS/Backup_FILESERVER/`ls -Art | tail -2 | head -n 1` Error: tar: Tuesday: Cannot stat: No such file or directory tar: Exiting...
1 Can you try tar cvzf /NAS/for_tape/FILESERVER.tgz `find /NAS/Backup_FILESERVER/ -type d -exec sh -c "ls -1rt" \; | tail -2 | head -n 1` find command with ls -1rt sorts the files based on the modification time and reverses it. You can confirm if the command find /NAS/Back...
Backup Iceweasel Bookmarks and Passwords from CL
I have destroyed my Debian Jessie installation and I need to reinstall it. I want to back up my Iceweasel passwords and bookmarks, but I can't start the desktop environment anymore, so I have to do it from the command line. Will it work if I just copy the iceweasel directories and paste them into my new installation? ...
Yes, you can just copy your Firefox/Iceweasel profile over. For Firefox your profiles are in $HOME/.mozilla/firefox, and it's similar for Iceweasel.
Migration of MYSQL database without losing records
I'm migrating a MYSQL DB from one host to another so I run the following command to backup the DB from the old hosting: mysqldump -u **** -p **** | gzip > /home/***/***.sql.gz And then use the following command to import the DB to the new host: zcat /home/***/***.sql.gz | mysql -u *** -p *** After successfully impor...
If you look at the output of mysqldump (before you gzip it) you will see that it contains a sequence of DROP TABLE x; CREATE TABLE x (...); INSERT INTO x (...) VALUES (...); So, no, it does not do an insert / replace, it drops and recreates the tables.
how can I create incremental backups with xtrabackup automatically
It says on the manual that if you want to create an incremental backup you can do it with the following command: xtrabackup --backup --target-dir=/data/backups/inc1 \ --incremental-basedir=/data/backups/base --datadir=/var/lib/mysql/ where /data/backups/inc1 is the incremental directory. So now if I want to create a...
you can use built-in Linux command date to name directory as you want, for example xtrabackup --backup --target-dir=/data/backups/inc`date +%Y%m%d` (rest options)
On a google compute engine (GCE), where are snapshots stored?
I've made two snapshots using the GCE console. I can see them there on the console but cannot find them on my disks. Where are they stored? If something should corrupt one of my persistent disk, will the snapshots still be available? If they're not stored on the persistent disk, will I be charged extra for snapshot st...
1 GCE has added a new level of abstraction. The disks were separated from the VM instance. This allows you to attach a disk to several instances or restore snapshots to another VMs. In case your VM or disk become corrupt, the snapshots are safely stored elsewhere. As for ...
3dsMax reinstall ; I fear to lost 3d models ; where to look to save?
I'm a trainee working in a company using 3dsMax Design 2015. Because of bugs (software cannot be opened anymore) the admin will try to reinstall it. I have to save datas (I think of 3d models) but 3ds is so huge I fear I will forgot something. (A lot of things are saved on a server, but we want to be sure we don't los...
The default save folder for 3dsmax is located under: C:\Users\username\Documents\3dsMax\* Make sure to check there. Other then that folder - we cannot know where you saved things. So make sure to check that folder.
Hourly backups for AWS instances
I’m looking for the best practices for taking hourly backups of my instances using AWS environment. I’m using both Ubuntu and Amazon Linux instances as web server without any panels used. Hourly snapshot is economic ?
You can take hourly EBS snapshots or you can create a process to copy your data to S3 hourly. What is "economical" is entirely subjective and you would need to provide more information about your requirements before I could answer that completely. EBS snapshots are incremental, so if you created a snapshot hourly each...
Reduction in Solr size
There was a query that I had regarding the size of Solr data backup. We take Solr backups once a day. We could observed that the size of Solr backup was reduced by 1 GB from that of the previous day, but there had been no deletions or updations made on Solr that day. We checked the number of documents also for both th...
1 Deleted documents (and remember that an update is a delete + an add internally) are not removed before optimize is called on the index or the mergeFactor is hit. This causes the index files to be rewritten to disk, and any deleted content is expunged. After the index file...
Setting up backup strategy for backing up postgresql database on cloud foundry
We have setup a community postgresql service on Cloud Foundry (IBM Blumix). This is a free service and no automated backup and recovery is supported out of the box. Is there a way to set up a standby server or a regular backup in case there is any data corruption/failure? IBM compose and ElephantSQL can provide this ...
1 PostgreSQL is an experimental service and there is not a dashboard and other advanced features (Daily backup for example) that you can find in other services that you mentioned. If you want to do a backup you could write an ad-hoc script that 'saves'\exports all tables as...
Using "ec2-modify-snapshot-attribute" to automatically copy snapshots to another account
I want to use the ec2-modify-snapshot-attribute command to automatically copy new snapshots to another account. What would be the best approach on this? A shell script run by a cron job?
There are two things that you are wanting to do: Copy an EBS snapshot to a different region Make an EBS snapshot available to a different account These actions can be invoked via the AWS Command-Line Interface (CLI). Copy an EBS snapshot to a different region Use the copy-snapshot command to copy the snapshot to a d...
FileInput: Make backup files only for files in directory that have been worked on
I am using os.walk to walk through a directory searching for certain filetypes. Once a filetype has been found (such as .txt or .xml), I want to use this definition to replace the strings (let's call it old) in the file with the strings from a dictionary (let's call it new). def multipleReplace(text, wordDict): f...
I don't think regex is necessary here. The only missing part is to check if the file contains old strings before creating a .bak file. So, please try the following approach: def multipleReplace(text, wordDict): for key in wordDict.keys(): # the keys are the old strings text = text.replace(key, wordDict[key...
Back up a oracle DB encrypted by TDE
I want to back up my encrypted DB by TDE. So, I run exp command. but I have an errors. because of encrypted table spaces. is there any way to back up my DB encrypted by TDE?? I don't have a idea. plz help me.
1 Since you mentioned you have encrypted DB, you need to have Oracle Wallet open, if we assume db instance is up, is already open. I do not think you can/should use "exp" utility. It's replaced by more powerful "expdp" and "impdp" utilities. These two utilities will allow y...
Running a C program to backup Linux files
As the title says, I'm trying to write a program that will backup files from a source directory (set by the user in the shell as an environment variable) to a destination directory (again set by the user in the shell as an environment variable) at a specific backup time (set by the user in the shell as an environment ...
The problem in the code above is that you perform a comparison but you don't update backup variable value in the loop. It should look like more: #include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<time.h> int main(int argc, char *argv[]) { int b=1; char backup[100]; char *source=getenv("BackupSour...
Solr 4 backup with replication handler
I would like to backup my solr 4.8 index periodically by using curl http://localhost:8983/solr/gettingstarted/replication?command=backup I don't understand if it is mandatory to build a master-slave architecture or if it sufficient to configure Replication RequestHandler on the Master/stand-alone Server.
1 Yes, it works as a standalone server: I configured the Replication RequestHandler and then I'm able to backup cores while they are running. Share Improve this answer Follow answered Mar 4, 2016...
How do I backup Google Drive (Google Spreadsheets) file on regular basis using Google Apps Script?
I have a critical business spreadsheet. I need to save copies regularly in case I need to see how the spreadsheet looked at a previous time. I want this to happen automatically using Google Apps Script.
1 Use the time driven triggers to run this code: function backupSheet() { var file = DriveApp.getFileById(FILE_ID); var destination = DriveApp.getFolderById(FOLDER_ID); // backups folder var date = new Date(); var ts = date.toISOString().slice(0,10).replace(/-/g,""...
.NET - DotNetZip Backup over the network slow
I am creating a backup software in c# for my organizations. I have a problem with time to do a backup of my workstation to a shared folder on a server. If I directly compress the files to the shared folder with temp file created direct to the shared folder, the time to compress is 3 minutes, but if I set the temp di...
1 Without seeing any code, I would imagine that it is trying to stream the output binary file to the server backup location. The result of this is that every byte that gets wrote needs to be confirmed by the client / server relationship. When you write it to your local syst...
Implementing Android M's AutoBackup Feature
I'm looking to implement the new autobackup feature introduced in Android M, as detailed in the docs here: http://developer.android.com/training/backup/autosyncapi.html#testing I'm after easily restoring player database and shared preferences between installs, which this feature purports to enable for Android M. I'm ...
First things first, I was overlooking logcat filters! Simply disabling filters allowed me to see the error message. The first issue was Rejecting full data backup. user has not seen up to date legal text - this is apparently because old, existing google accounts aren't opted in to the backup service. This is slightly ...
Wbadmin in powershell
Can you suggest on how to make this script work? It is working properly in cmd via this command: wbadmin start systemstatebackup 'backuptarget:"F:"' '-quiet' It is working in cmd running powershell via this command: [powershell] wbadmin start systemstatebackup 'backuptarget:"F:"' '-quiet' But it is not working i...
1 This is what worked for me but not ask why. $strBackupDrive = "D:" $strBackupComand = 'start backup ' + [char[]]45 + 'include:C:\Temp\ ' + [char[]]45 + 'backupTarget:' + $strBackupDrive + ' -quiet' $errRun = Start-Process wbadmin -ArgumentList $strBackupComand -wait -NoNe...
Mongo shows new collections and databases after restoration from backup
I've created a backup process for the mongo dbdir. The restoration process takes one of the backups created by rsync and copies it to a new disk and mounts it on the data dir. After the process I still see collections and databases (databases appear as empty) that existed before the restoration process, until I rest...
1 Using rsync on a running mongod dbpath may result in corruption or unexpected errors. Please refer to MongoDB Backup Methods for supported backup and restore alternatives. While using rsync, please consider the following suggestion from MongoDB manual: If your storage ...
How to change app folder name on Google Drive Android?
I have created app folder on Google Drive using Storing Application Data and Google Drive Android API Demos My app folder name is display as "Text Editor" as shown in below image. How to change app folder name on Google Drive programmatically ?
1 You can't change it programmatically, but you can change it by editing the application name here: Developer Console by going to your project -> Enable API and get credentials like keys -> Enabled API(s) -> Drive API -> Drive UI integration. You can enter a description a...
How do I store my backup locally on an sql server using sqlcmd
I am using: $ sqlcmd -S gigbat -d FOD -Q "BACKUP DATABASE [FOD] TO DISK='C:\testDBbak1.bak'" Msg 3201, Level 16, State 1, Server gigbat, Line 1 Cannot open backup device 'C:\testDBbak1.bak'. Operating system error 5(Access is denied.). Msg 3013, Level 16, State 1, Server gigbat, Line 1 BACKUP DATABASE is termi...
1 Doesn't this message say it all? Operating system error 5(Access is denied.) This just means that the account being used to run the sqlcmd command does not have access to C:\. If it is a windows account, you can try granting required permissions on that drive. Also stori...
ejabberd Mnesia database backup
Does making an ejabberd binary backup of mnesia database from the admin panel will also back up archived messages stored in MUC archive and private chats archive? If not, how to back up archived messages?
ejabberd Mnesia backup backups all the data stored in Mnesia, so if your archive are in Mnesia they will be backuped as well. However, like always with backup, you must test the process from backup to restore to validate that it works as expected and matches your needs.
Parse: data backed up on free tier?
I recently had an issue with the free tier of Heroku Redis where our database got wiped due to "an incident" and there was no back-up of our data. I'm about to start using the free tier of Parse and was wondering if their free tier operates in a similar way? Thanks in advance J
Unfortunately, parse doesn't offer an automated way to backup your data, because if your app is too large to backup with queries via the REST API, it's also likely going to take a long time to export from their side and consume a good chunk of resources. Allowing all apps to perform an export in this way, automaticall...
SFV/CRC32 checksum good and fast enough to check for common backup files?
I have 3 terabytes, more than 300,000 reference files of all sizes (20, 30, 40, 200 megas each) and I usually back them up regularly (not zipped). A few months ago, I lost some files probably due to data degradation (as I did "backup" of damaged files without notice). I do not care about security, so do not need MD5, ...
If you could quantify "few" and "some" in "A few months ago, I lost some files" (where "few" would be considered to be replaced with "every few" in order to get a rate), then you could calculate the probability of a false positive. However just from those words, I would say, yes, a 32-bit CRC should be fine for your a...
How to copy files to be deleted with rsync ?
the output of rsync -avzn --delete lists the files to be deleted . I mount the files system with samba and then i can get a list of the files to be deleted with | grep deleting eg (its windows so there a space in the filenames) deleting janes/pass the parcel.jpg deleting janes/Noname.jpg deleting janes/111EUVAT.jpg ...
1 options -b and --backup-dir=/path/to/dir and rsync puts the files in the backup-dir. And you can then do whatever you want with them ! Share Improve this answer Follow answered Dec 6, 2015 at ...
Adding a backup crontab into a docker container
I want to implement backup tasks for my docker containers using crontab Question : Is it a nice way to implement backup task of a docker containers ? How do you add a crontab ? Dockerfile ?
If you want to run cron as a main purpose of the container than fine, look at some older questions: How do I start cron on docker ubuntu base? Cron containers for docker - how do they actually work? If you want to run it as side task (as cron usually run), I would reconsider going with first option :)
How to compress file and take a backup in centos [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...
Issue the Command: # tar cvzf backup.tar.gz /var/www Where: c - create backup v - verbose output z - compress in gzip f - backup file name The backup will be created in your current working directory. Use ls command to list it
Azure VM Backup of v2 Hosts?
I have 16 VMs running Win Sever 2012. Some were created with ARM templates, some manually in the new portal. I need to now get them all discovered by Azure Backup so they cab be captured at the "VM level". These new VMs do not show up in the classic portal and do not show as "discovered". Does scripting exist that ca...
1 V2 VM backup in Resource Group Its available now check with this link https://azure.microsoft.com/en-us/documentation/articles/backup-azure-vms-first-look-arm/ Share Improve this answer Follow ...
In Windows batch, how do I copy multiple folders selected by a naming criteria with robocopy?
I would like to use robocopy to copy multiple directories based on a similarity in the folder names' first few characters. How do I pick out certain directory names (perhaps with regular expressions?) and a loop of some sort so that I can avoid this horrible redundancy in copying the directories and their contents? Th...
@echo off setlocal set "src=C:\Users\MyName\Photos" set "dest=E:\ExtBackup\2015-photo-backup\" rem List every folders (/ad) that start with 2015-10 by using * for /f "delims=" %%a in ('dir /b /ad "%src%\2015-10*"') do ( rem copy each folder to destination echo robocopy "%%~a" "%dest%" ) Do not forget to remove ...
Why does --where option in mysqldump not work sometimes?
I was doing a through backup-and-restore procedure and it was needed that I use the --where option in mysqldump to fetch only the data before October 2015 since inception. This was the command that I executed. mysqldump -h localhost -u root -p --skip-add-locks colossal_db users --where="creation_date <= '2015-09-31'" ...
1 All options have to come before the database and table names. Try: mysqldump -h localhost -u root -p --skip-add-locks--where="creation_date <= '2015-09-31'" colossal_db users | gzip > users.sql.gz Share Improve this answer Follow ...
How to backup a Mercurial repository?
I want to periodically backup a Mercurial repository to the bitbucket clone. One option is to schedule it with cron. But fail to see how to 'add' and then 'push' from the cron configuration file (how to execute 'hg' in the local directory?). A line like this in the crontab */60 * * * * ~/path/to/repository/hg push htt...
You need to give the full qualified path in cron scripts, ~ is not expanded to the home directory. However the way you quote looks funky. You can call hg and directly specify the path to the repository: hg -R /full/path/to/repository push URL Thus */60 * * * * hg -R /full/path/to/repository push URL might do the tri...
Backup Hadoop in order to install new cluster, best practice
I am building a new Hadoop cluster (expanding number of nodes and extending capacity of current nodes) and need to back up all of the existing data. Right now I am just tar-ing everything and sending it to another server. Is there a smarter way of doing this which will allow me to easily deploy once the new cluster i...
Use Distcp to transfer the HDFS data to other cluster or any cloud inorder to store the data. If you want to schedule the Backup process you may avail OOZIE-DISTCP for backup process!!
Drive image only partitioned space
I have a 32GB drive (SD card) with 4 partitions. Total partitioned space is <2GB. I need to make an *.img file so that I can clone it to other SD cards which are smaller than 32GB. If I just use "dd" I get an image file that is the full size of the card - 32GB. This is all under Linux and the SD card is bootable, so ...
1 You can use "dd" for each partition (need to get their start blocks and active sizes, you may use fdisk for that). Also you need to use "dd" to get boot sector. Then you can create partition table with 4 partitions on second SD card and copy 4 partition images there using...
Can tar extraction erase brother directory ?
I made several backups on different directories with Backup Manager. Eg: /home/user1 /home/user2... It gives me some tar files. The content of a tar file looks like : home/user1/ home/user1/.profile home/user1/.bash_history home/user1/.bash_logout ... I tried to test the restoration with something like : tar -xvzf h...
Actually tar does not erase data as a default. But any files that are contained within the tar archive will overwrite files of the same name if they are already present. Likewise a sub-directory's contents will not be overwritten if the tar archive does not contain files matching them. mkdir -p foo/bar/ touch foo/fil...
cPanel - Does restoring from a cPanel backup delete other cPanel backups made at a future date than the one you’re restoring from?
I plan on restoring from a cPanel backup using the cPanel Backup Wizard, but I would like to know if restoring from a backup in this way will delete any other cPanel backups that were made at a future date from the one I’m restoring from? Specifically, I have backups generated on 10/1 and 10/5 (earlier today). If I re...
1 It's depend on the situation on which path you are trying to restore the backup. If you restore the 10/1 backup at the same path where your secnd copy 10/5 is present, then it will delete that same copy Share Improve this answer Follow...
make server backup, and keep owner with rsync
I recently configured a little server for test some services, now, before an upgrade or install new software, I want to make an exact copy of my files, with owners, groups and permissions, also the symlinks. I tried with rsync to keep the owner and group but in the machine who receives the copy I lost them. rsync -az...
1 Your command would be fine, but you need to run as root user on the remote end (only root has permission to set file owners): rsync -az -H /directorySource/ [email protected]:/home/myUser/myBackupDirectory You also need to ensure that you use rsync's -o option to preserv...
AWS network, loadbalancer for one production and one backup server
I am using AWS EC2 instances for my API server. I want to prevent the server down situation so I plan to use 2 servers (one production and one backup) I want to config AWS network or add a loadbalancer which could: Normally, all requests go to production server. If production server down, all requests go to backup se...
1 AWS Load balancer doesn't exactly work that way. It distributes the load among all the healthy registered instances. To maintain high-availability I'd recommend using AWS auto-scaling feature. Basically, you put your machines behind a load balancer and if any of them ...
CalDAV/CardDAV Radicale backup
Now that I am runing Radicale on my own Linux server (to manage calendars and contacts), I am trying to figure out how to backup Addressbooks via a bash script (which I could then cron or manually launch). The exporting part is not going to be so difficult thanks to Duplicity. But where the ... is located the Addressb...
1 I've found it. It is in located in the personal directory : ~/.config/radicale/collections/contact/AddressBook.vcf In ~/.config/radicale/collections/contact you there are as well the calendars. Hum. This seems to me to be (remotly) a programing question, since its answer ...
it is possible to backup sql server database in runtime
Can I use the "backup" transact sql command (sql-server 2008) when my database is used (read/write) by other users. Or I must switch to single_user mode before doing this?
1 Yes, it will let you do that. There are considerations though, regarding full and precise restoration of the data should a restore operation become necessary. Best you read up on the whole thing so you can choose the best back-up method for your situation. Sha...
It's possible to make a Batch program that backup a folder files from my external hd to pc hdd, anytime I add or change a file?
I'm a graphic designer and I use my external hd frequently to move psd/jpeg/png/tiff files from my laptop at home to my Work PC and vice versa. But as a precaution before modifying or adding a file I copy it to a folder. It's possible to make it automatically? And it's easy to make on Batch? Thanks for help!
Robocopy is your friend; google it and have a look. It's a very powerful program by sysinternals (owned by Microsoft). Alternatively, if you want a nice GUI to go with it use SyncToy (https://www.microsoft.com/en-gb/download/details.aspx?id=15155) which can be run with a batch file (including arguments) or made into a...
adb backup with build tools v23 fails
I'm trying to view files saved to the internal sdcard on my Android device in order to debug my application. I used to be able to use adb backup to this this. I just upgraded to Build Tools v23, and now when I try to run adb backup from Terminal in OSX, I get a 'Bus error: 10' response and no backup. Any ideas?
This has been fixed in ADB Build Tools 23.0.1.
Creating a backup and getting error only concenate list and not (str)
I'm trying to write a code to create backup of files or directory using Python but there is an error : can only concenate list not "str" Here's my code : import os import time # The files or directory which has to be backed up source = ['"F:\\College Stuffs"'] #The backup must be stored in a target directory target_...
1 You've defined a list #The backup must be stored in a target directory target_dir = ['"E:\\Backup"'] while your usage indicates you'd intended to use a str there: #The backup must be stored in a target directory target_dir = '"E:\\Backup"' Share Improve this a...
Use Robocopy to backup specific users folders
This is my first question on StackOverflow, so please be kind ;); I have several computers to backup at different times, each computer has from 2 to 30 users, I want to backup Desktop, Documents and Favorites folders of a specific computer in the network. Originally, I tried to use XCOPY, but due to the length of fol...
1 I wanted to answer my own question because of the length of the code. I managed to get things working except for excluding directories i wanted to be excluded... Here i am getting source and destination from user input: SET /p source="Hostname : " SET /p dest="Destinati...
SQL Script to compress database backups if version allows it
I currently use a pretty basic backup script to backup my SQL databases to a given directory, zipped with Winrar. I am looking to use the SQL compression command (currently commented out) prior to the Winrar IF the version of SQL the script is being used on is SQL Standard or higher. Here is what my current script loo...
This may not be the full, but I think you will get the point: DECLARE @databaseName nvarchar(100) DECLARE @fileName nvarchar(100) DECLARE @serverEdition int; DECLARE @useCompression bit; SELECT @serverEdition = Cast(SERVERPROPERTY('EditionID') as int); -- Reference: http://stackoverflow.com/questions/2070396/how-can-...
Magento backup folder
i've this strange behaviour on my magento installation: every time i try to launch a backup, the file is saved into var folder instead of var/backups folder, so that is not visible into backups list (whose looking for var/backups folder). Any suggestion? Nothing has been changed since yesterday. Thanks
/** * Get directory path where backups stored * * @return string */ public function getBackupsDir() { return Mage::getBaseDir('var') . DS . 'backups'; } is the function in class Mage_Backup_Helper_Data. You need to log value of whats returned by this function by changing code to ...
How to selectively delete Google App Engine data backup set in google cloud storage via the admin console?
I want to delete old backup in Google Cloud Storage. The 'delete' button is not enabled after items are selected Why 'delete' is disabled?
The web interface is not working (still now). But you can use "gsutil". It is a command line tool to access the cloud storage. For this you have to download and install the Google Cloud SDK. Perform gcloud init and gcloud auth login. Select your project and login into the cloud platform. Now from command line you can ...
WinSCP .NET assembly Skip failures
I'm trying to download a complete folder via WinSCP. However there can be files that I do not have permission to download in them. /www/ /www/file1 <-- No permission /www/file2 <-- Permission /www/ .. /www/file999 /www/folder1/ /www/folder1/file28328 /www/folder1/file342423 <-- No permission etc... There's a few thou...
There's no such option (yet). But you can do it to "manually" by recursing the directory structure, downloading the files one by one, handling the errors as you like. There's an example implementation available in C# and Powershell: Recursively download directory tree with custom error handling.
How to protect Duplicity backups
I use Duplicity for backing up my hosting account to remote server using WebDav. Schedule is daily incremental, monthly full. I want to also protect backups against hosting hack, so I have to be sure that server (where is Duplicity) can not destrol backups on remote server. Is there recommended solution for protecting...
I use Duplicity for backing up my hosting account to remote server using WebDav. Schedule is daily incremental, monthly full. I want to also protect backups against hosting hack, so I have to be sure that server (where is Duplicity) can not destrol backups on remote server. That is not what duplicity is designed for...
Powershell SMO objects
I am trying to learn powershell, recently i was struck in the query that how can find out the objects in the assembly's example: I have loaded the Powershell sql assembly [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.sqlserver.smo") | Out-Null [System.Reflection.Assembly]::LoadWithPartialName("Microsoft...
PoSh is just a wrapper here. For learning what SMO classes and methods are available, you need to look at the SMO documentation. Start with SQL Server Management Objects (SMO) Programming Guide. For a list of all classes in SMO, again I reffer you to the product documentation, please look at SQL Server Management Obje...
Tar and save results directly to an SSH directory
I have a server that I would like to make a tar backup of, but the server itself doesn't have enough disk space that is equal to the data it contains. Therefore, I would like to tar it directly to an ssh directory, such that it would dump the tar data into the ssh target without taking huge temporary disk space from t...
Yes, this is absolutely possible! Do the following from the server you're backing up: tar czv <stuff to backup> | ssh [email protected] 'cat > /home/user/backupfolder/backup.tar.gz' This instructs tar to output the archive to stdout, which is piped and sent over ssh to be saved to a remote file.
Restore a backup site with Drupal
I'am trying to restore a backup site from a copy made by Backup and Migrate module in Drupal, I followed those steps: copy the drupal files to www directory create a new mySQL database install drupal using the new db enable backup and migrate module performed the restore I faced this error : Notice: Undefined index:...
1 My suggestion would be to: Copy files to www Use phpMyAdmin or similar tool to create empty database and import dump B&M created. Change /sites/default/settings.php to connect to your new database. Login to back-end and check on Configuration -> Media -> File system ar...
Powershell + Robocopy Auto backup executing multiple times
I've put together this script to detect file changes in a directory, so that whenever the changes take effect the file(s) changed will get backed up right away. I have also set up an email notification. The backup works. I can see whenever a file changes it gets copied over to the desired destination, however I am rec...
i do not change your monitor script just change send mail and copy with copy-item powershell command $folder = 'c:\sites' # Enter the root path you want to monitor. $filter = '*.*' # You can enter a wildcard filter here. # In the following line, you can change 'IncludeSubdirectories to $true if required. ...
Full backup of GoDaddy site via command-line script
Is there a simple way to do an automated backup of an entire website on a host like GoDaddy via the command-line? So far, I know I need to backup all the files in my home directory recursively. I could possibly automated SFTP to connect and issue a get -R * command to get the full file dump, or just use SCP. The other...
In the end, I found a working solution. First, I used 2 separate expect scripts. Telnet into the server, delete old backups, use mysqldump to extract all tables to a flat file via mysqldump -u db_owner -p --all-databases > output.sql, and create a massive tarball of everything. Logout. Use SCP to pull the newly creat...
How to set AWS EBS Volume Snapshot deletion Policy?
Few of my critical EBS Volumes are being backed up as snapshots periodically. Is there any way I can setup a deletion policy by which ONLY the recent two snapshots are maintained? For example: In one of the environment I have close to 300 snapshots from 10 EBS Volumes. Once I have this policy it should come down to 2...
Here's some code that snapshots ALL EBS volumes, then only keeps the latest 2 snapshots. You could also modify it to only snapshot volumes with a particular tag. Substitute your own Region as appropriate. #!/usr/bin/env python import boto.ec2, os MAX_SNAPSHOTS = 2 # Number of snapshots to keep # Connect to EC2 in...
How to transfer email accounts and email messages from cPanel to Plesk 12?
I was using shared hosting with cPanel. Now I have bought dedicated server and Plesk web pro edition included with it free. Now I want to transfer my cPanel email accounts to Plesk panel. How can I do it? Note: I don't have root access or SSH account on shared hosting. According to this topic I may have root access ...
1 Try to ask free migration assistance here https://sp.parallels.com/products/plesk/how-to-migrate/ Share Improve this answer Follow answered Mar 19, 2015 at 5:32 IgorGIgorG 1,19166 silver...
Can I have multiple image backup?
I am using the image backup feature in windows 8.1 to create a backup of my system. However. If I try to create a new one, the first one is overwritten. So i create a new one, rename it and create a second one. However, when I want to restore an image, I have only one image avaiable, the image that is not renamed. So ...
Use might be better off trying to use a 3rd party application which has many features like full system image backup or backup of a specific folder or drive. I would recommend Acronic True Image.
Backing up source code for a C# solution
I would like to make a backup copy of my Visual Studio 2013 MVC application which is only the source code. Such that I could open the solution on a new machine and have it compile after NuGet has downloaded the necessary packages and so on. I realise that if the project was in TFS or similair I could go to the new mac...
1 Use a version control system such as TFS, Subversion, PlasticSCM, git whatever. Seriously. Distributed VCSs like git or Mercurial will let you transport the whole repository easily. If you insist on a pack&go approach, the ZIP tool of your choice will, most likely, suppor...
backup mysql with emc networker
On a CentOS machine we have mediaWiki + bugZilla installed for internal uses. I'd like to use the EMC Networker that there is in our network to backup the databases. Is it enough to backup the /var/lib/mysql/ directory ? And if yes, do i need to backup the whole directory (ibdata1, mysql, mysql.sock...) or only the me...
If you want to use a file based backup solution for backup MySQL databases it is best to create a dump of the database and backup the dump. You can create a backup by mysqldump -u root -p --all-databases > dump.sql you might also backup you /etc/my.cnf. Having the configuration makes restoring easier.
Exec php tar command to backup website dynamically
I'd like to make a backup of my website using tar command and exec in Php and I wrote a small script to does that but nothing happens... where I fault? I have php 5.6.5 and hosting linux that has exec enabled and tar command available. Here is a Php example what I'd like to do. <?php $root = $_SERVER['DOCUMENT_ROOT'...
$oky and $out are local variables. They are not set outside the function. $sdir, $name and $root are not defined within the function. Method 1 - Parameters: function backup($sdir,$name,$root,$salt) { exec("tar -cvf $sdir/$name $root/* --exclude='$sdir/$salt' ", $out, $oky); return array("oky"=>$oky, "out"=>$...