Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
Offline Backup script for DB2 |
I am trying to do a offline backup for my DB2(10.1.0) using script and schedule it.
db2backup.bat
@ECHO OFF
FOR xxxx IN (OPNACT BLOGS SNCOMM DOGEAR FILES FORUM HOMEPAGE PEOPLEDB WIKIS) DO (
DB2 CONNECT TO xxxx
DB2 QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS
DB2 CONNECT RESET
DB2 BACKUP DATABASE xxxx TO "C:\B... |
0
The problem is the how you deal with the variable. xxxxx is not a valid name, it should be preceded by two percentages: %%xxxxx
@ECHO OFF
FOR %%xxxx IN (OPNACT BLOGS SNCOMM DOGEAR FILES FORUM HOMEPAGE PEOPLEDB WIKIS) DO (
DB2 CONNECT TO %%xxxx
DB2 QUIESCE DATABASE IM... |
Backup MySQL DB along with CarrierWave uploads stored in S3 |
In Rails app I would like to take backups of MySQL database along with CarrierWave uploads stored in Amazon S3. I have looked into S3 object versioning but couldn't find any support in CarrierWave for it.
Has anyone done this before? Or any ideas?
|
class BaseUploader < CarrierWave::Uploader::Base
# Override the filename of the uploaded files:
def filename
return unless original_filename
if model && model.read_attribute(mounted_as).present? && model.changed.blank?
model.read_attribute(mounted_as)
else
ext = File.extname(original_filen... |
Transaction log growing despite regular transaction log backup |
I'm facing a popular issue, i'm afraid : my transaction log is growing and growing again on SQL SERVER. But I can't find the answers on the web.
I have a daily full backup, differential backup every hour and transaction log every 15 minutes. And they work fine, but what about that ldf file ? Is up to 100Go in 2-3 mont... |
0
You will need to shrink your log files regularly. Seeing as how you have a backup strategy including FULL,DIFFERENTIAL and TRANSACTION LOG backups, you will do well to have a SQL job run on a schedule to shrink the log file in question to a bare minimum. I run a stored pr... |
Backup and restore ENTIRE Azure SQL server (not individual DBs) |
We use Azure as infrastructure for our app and its SQL DBs.
Currently Azure provides automatic backups for all tiers (Basic to Premium), but these settings are individual per DB.
How can I set backup for the entire server, with all DBs inside?
|
0
Actually, backups are configured on database level. When you backup all of your databases, the database server is considered backed up. More information on the topic: Azure SQL Database Backup and Restore
Share
Improve this answer
Fo... |
Replicating MSSQL Database to MySQl Through MSSQL Replication |
It is a possible of duplicate question may be but please suggest me some work around
I got this requirement.
I have a MSSQL Database with almost 30 Tables with millions of records.
Now i need to take Replica of the same in MySql.
The Solution which i am thinking are (This may contains loopholes and it may not be good... |
0
I would just create PHP scripts to do it. I would create on script per table and run them from the command line. There are drivers for both MSSQL and MySQL. Since PHP is loosely typed this should be a breeze. You can get the create and insert statements right from SQL... |
backup Android, Windows 7, Windows 8.1 and Ubuntuu Folders to the same server |
i know this question is not typical for stackoverflow, but maybe some of you are willing to help me managing my backup strategy. i want to upload certain folders from my android device, windows 8.1 tablet, windows 7 notebook and ubuntu on my workplace. the best strategy for me would be the following as i figured out:
... |
0
Alright, since no one has answered, it's actually pretty easy. I've literally just done this with my sisters Windows Phone 8.1 (Nokia Lumia 909) - use MicroUSB cable, make sure the phone is unlocked (i.e. you can see the "Live Tiles") and Ubuntu should mount it automagica... |
Rsync recursively only new directories |
I am developing my backup pet project and can't find a rsync feature I desperately need.
Imagine this:
parent1/
dir1/
file1
parent2/
dir2/
file2
If I move "dir1" to "parent2" like this:
parent1/
parent2/
dir1/
file1
dir2/
file2
it leaves... |
0
That doesn't seem possible as rsync need to go in each folder to see what has changed.
The best option remains the --update one, in order to not transfer all files, and skip any files which exist on the destination and have a modified time that is newer than the source fi... |
Sql Server Transaction Log Backup Fails |
I have a Sql Server 2008 Standard version. Mirroring is set up on the server in full safety mode. Its been working fine till today. The transaction log back-up fails every-time with an error
"Error: 2014-09-25 08:34:33.17 Code: 0xC002F210 Source: JuneDB
Log Backup Execute SQL Task Description: Executi... |
Thank you every one for responding and helping me on this. It turns out to be a log file corruption. Below steps solved my issue
Stop mirroring
Switching the database to the Simple recovery model
Performing a checkpoint (which should clear the active log as long as nothing else requires the log to be kept active)
Swi... |
Ansible: Get the name of a file created by a script in the format name-<date>.tar |
I've a script for backup on my host. It's creating a file, that is specified on it's output:
********************************************************************************
Configuration files backup successfully.
Backup file is put to /root/backup_201409111318.tar.
***************************************************... |
0
I was able to achieve this by creating a wrapper for my script that only outputs the file name to stdout and then using that on ansible:
- name: Send backup script
copy: src={{ item }} dest=/tmp owner=root group=root mode=744
with_items:
- backup.sh
-... |
Creating a backup script for database in php |
I want to create a script,to create a backup for every table of a database.Until now i have this:
Connection to database:
<?php
$AdresaBD="localhost";
$UtilizatorBD="root";
$NumeBD="auth";
$NumeBD1="auth1";
$ParolaBD="";
$con1=mysqli_connect($AdresaBD,$UtilizatorBD,$ParolaBD,$NumeBD);
$con2=mysqli_connect($AdresaBD,... |
Try and break your code to a simpler version and work up to find the problem.
I'd imagine its a problem with the file your trying to backup to:
Check the path to file is correct.
Original Code:
$backup1 = fopen('auth_back_'.date('j-M-Y').'.sql','w+');
$CerereSQL = "SELECT * INTO OUTFILE '$backup1' FROM `angajati`,`c... |
Recursively copy/backup all .php files to .php.bak files and keep them in their current paths |
I am not sure how to word this question to find the solution easily online, so after much searching I thought I would ask here.
I access my website's files using bitvise ssh client and I use command lines for various grep and sed functions that I've been recently taught, but I can't seem to find a simple way to do thi... |
Would be awesome to see a solution that uses xargs or find's -exec.
But here is how can do this with a shell loop and find:
Note, this recursively backs up files in sub directories.
For .php files:
find . -iname '*.php' -type f -print0 | while read -d $'\0' file; do cp "$file" "$file.bak"; done
For all files:
find . ... |
Git Repo recovery |
I will try to explain my situation the best I can.
I had to format my computer (Mac mini / running mavericks). Later, while I'm resorting the backup I realized my last project isn't there.
Does someone know how can I recover the project ? I was using git on my computer but I didn't push the repo (sadly). I don't kno... |
Depending on the kind of reformat, tools (like for instance Yodot Mac Data Recovery not free, but there are others) might be able to recover those files.
If the Time Machine partition wasn't erased, the git repo might be there too.
But other than that, a git repo is just a collection of files, and wouldn't be any more... |
robocopy /copyall but not empty folders (/e) |
I'm looking to modify a robocopy script that is taking way too long to complete. The directory it is copying has thousand's of empty folders, which I'm told i cannot get rid of.
robocopy script switches are this:
robocopy /copyall /sec /mir /r:1 /w:1 /mt:24
The log file produces this:
robocopy /S /E /COPY:DATS /PURGE... |
0
robocopy /?
says
/S :: copy Subdirectories, but not empty ones.
Share
Improve this answer
Follow
edited Aug 18, 2014 at 2:15
Felipe Oriani
38.3k1919 gold badges135135 silver badges198198 bronze b... |
How to do a backup of files using the terminal? |
I've already done a backup of my database, using mysqldump like this:
mysqldump -h localhost -u dbUsername -p dbDatabase > backup.sql
After that the file is in a location outside public access, in my server, ready for download.
How may I do something like that for files? I've tried to google it, but I get all kind of... |
0
You can use tar for creating backups for a full system backup
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz /
for a single folder
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz /your/folder
to create a gzipped tar file of your whole system. You might need... |
How do I skip a line in perl if an error occurs? |
I'm relativity new to perl and I'm trying to split and parse out data from a log file. The log file contains information of when a backup was and wither it was successful or not.
However at one point in the log file an entry repeats itself and is causing issues parsing the data. How can I skip the entry if it doesn't... |
0
There are a few problems with your code.
Let's open the file in the normal way, first:
open my $fh, '<', 'backup.log' or die "Couldn't open `backup.log': $!";
my %backup;
my $current_backup;
while (<$fh>) {
# when we see a new date...
# set up a new hash ref for ... |
How to save speicific data of a contact in .vcf file |
I am working in a project that will backup all contacts as a .vcf file in sdcard. At this time, I am able to get all information of a contact ( including number, emails, birthday etc.... ).
But I want to get specific information from contacts. (ex: just number).
How can I do it?
I am trying to modify these codes... ... |
ez-vcard can parse vCard files (disclaimer: I am the author xD )
Reader reader = ...
List<VCard> vcards = Ezvcard.parse(reader).all();
reader.close();
|
Email database backup file from application - android |
I have created the backup file for the SQLite Database i have used in my application. All i want is to send this backup file through email. I have implemented the file sending Intent but when they open, it says, you can only send files like (Image, Coarse Location etc.)
String pathname = Environment.getExternalStorage... |
0
The problem is due to Security reason, you can't email data from data folder, SO before emailing export it to SD card and then send, It should work.
Happy Coding !!!
Share
Improve this answer
Follow
... |
How to use a adb like backup command on android phone |
I'm interested in using a general backup command like: adb backup -f at_all_app.ab -noapk com.at_all_app on an android 4.1 mobile to backup an app (an 'at all' app) to the mobils SD Card.
I try to use this command in the android terminal (shell) to backup something to SD Card but, how wonder, unable to connect for ba... |
0
If your updating your phone's internal system, you may want to backup individual files instead of the entire phone data in a single file. For that purpose, I use adb pull with a little trick. First, I list what I want into a file named folders.txt, then I run this batch... |
.vimrc backupdir several directories |
I would like to create backup file in several directories after :w in vim, if statement is true. Vim :help says, that you need to put commas between directories and nothing else. But it's not working for me. It reads only the first directory. I tried different ways, such as usingset backupdir+=, or ~/. instead of ..
s... |
I do not believe this is possible without custom plugin. If you read the vim help carefully, it says that the backup file will be created in the first directory in the list where this is possible. So the behavior you are seeing is by design.
*'backupdir'* *'bdir'*
'backupdir' 'bdir' string (d... |
How to setup auto backup on a heroku pg follower? |
From pgbackups documentation:
Note that capturing a backup does add some load on your database for the duration of the backup. How this impacts your application will vary with the size of your database and the nature of the app. Consider taking backups on a follower if there is a significant impact from running them o... |
0
The autobackup will run on the primary database -- you can only capture backups on a follower manually.
Share
Improve this answer
Follow
answered Jun 17, 2014 at 16:45
rdeggesrdegges
33.... |
MySQL database backup creates an empty file |
Her is the code I use to back up my database. I succesfully get a "backup.sql" file when I run this but when I check it,it's empty. There's no data so meaning I got no backup but an empty sql file instead.
Furthurmore, when I run this program, the system hangs and I have to end the process through task manager.
public... |
I believe it is hanging waiting for you to enter a password, from the mysqldump documentation (http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_password)
" If you use the short option form (-p), you cannot have a space between the option and the password."
Try:
executeCmd ="mysqldump -u root -pr... |
How can i save iMessage conversations on OSX? |
Is there any way to store a iMessage conversation which i wrote on a Mac? I've found lot's of programs which allow to do this with conversations on an iPhone but not on a Mac.
I tried the approach with the ~/Library/Messages/Archive - but there ain't no Archive folder - just the chat.db and a folder called /Attachment... |
I don't know why but in OSX 10.10 it works!
For non-technical folks:
open terminal
type cd ~/Library/Messages/Archive
type open .
this opens the Archive folder for you. You can then copy the content.
|
Backing up specific files and renaming them via Bash |
I want to create a backup script for my CryptoCurrency Wallets using bash. All wallets are in a subfolder of /home.
find /root/ -name 'wallet.dat' -exec cp {} /home/backup \;
This command copies the files; however, I want to do the following:
The wallets are always in a structure like this: /home/<coinname>/.<coinnam... |
A direct adaptation of your command:
find /root/ -name 'wallet.dat' -execdir bash -c 'echo cp "$0" "/home/backup/${PWD##*/}-${0#\./}"' {} \;
Explanation.
Each found file will be set as the 0-th positional argument for bash,
with execdir, the bash process will be executed from the directory containing the found file,... |
Ms sql server, backup and bring it local from aws rds ms sql server database |
we need make regular backup and bring it localy for auditing porpouse.
How we can have ms sql server backup from an aws rds ms sql server database ?
Any automatic way to do it?
|
0
NO – AWS RDS does not give a direct/automatic option of creating a .bak file which you can get in to your local system and audit.
YES – There are ways to do this. If your database is :
small – Generate script from SSMS, with all schema and data. this will create a .sql ... |
How to detect 'live' files during filesystem backup |
I'm writing a Python-based service that scans a specified drive for files changes and backs them up to a storage service. My concern is handling files which are open and being actively written to (primarily database files).
I will be running this cross-platform so Windows/Linux/OSX.
I do not want to have to tinker w... |
0
You could look for the file being closed and archive it. The phi notify library allows you to watch given files or directories for a number of events, including CLOSE-WRITE which allows you to detect those files which have closed with changes.
Share
Improve th... |
Full Weekly Backup & Daily Incremental Backup |
I have Linux Centos 6.5, and I have tried different backup scripts, but I have failed each time. I only have a small amount of experience with Linux, I've only used it to set up a server etc. so I don't know how to do proper backups. I have a 100GB FTP server connected to my Linux server that I can use for backups.
I ... |
0
Assuming that you have installed Centos, you obviously have crond tool. Put your routines into the cron, and it will execute any script at the specified time:
su #login as root
crontab -e
This will run the FTP upload every day at hh:mm:
mm hh * * * curl --upload-file tes... |
Use 7-Zip to Compress folders within a directory and then delete the source folder used to create the .zip file |
I need to run a script to compress all folders within a folder that is 2 levels within a directory structure. I want the script to compress all folders within the log folder and then delete the original folder, thus saving loads on space. To illustrate the folders I wish to compress, see below:
Drive Location-->machin... |
I eventually went for
REM compress folders to zips
for /d %%x in ("C:\Logs\*.*") do start "C:\Program Files (x86)\7-Zip\7z.exe" /b /low /wait "C:\Program Files (x86)\7-Zip\7z.exe" a -tzip "%%x.zip" "%%x\"
REM delete the original folders used to create zips
for /d %%F in ("C:\Logs\*") do rd /s /q "%%F"
|
Rsync seems to erase EXIF data from photos |
Trying to set up a simple backup solution for my wife's computer. Have a volume on my server upstairs mounted locally using OSX automount, so it should just be a simple
rsync -a sourceDir targetDir
When I look at the files it syncs over though, all metadata is lost on jpg files. The created date is preserved on th... |
0
This can't be a rsync problem, there should be something else going on. rsync just does a binary copy from source to destination, the most probable explanation is a simple user error (e.g. you copied from the wrong source directory, source files where already without EXIF... |
incremental backup in codeigniter |
I am using this function for getting full backup of my mysql db.
function backup()
{
date_default_timezone_set("Asia/Kolkata");
$date = date("d-m-Y, g:i A");
$folder = "application/backup";
$prefs = array(
'tables' => array('tab... |
Codeigniter Database Utillity Class doesn't allow you to make a Incremental backup of the database. If you need that you should create a custom library for that. Library should be able to run sql commands. Please read for details about Incremental backup in mysql: http://dev.mysql.com/doc/mysql-enterprise-backup/3.7/e... |
Creating continuously backups with duplicity, uploading them later |
I would like to use duplicity as a second and primarily as a remote backup for my macbook air. I would like to setup the backup as a regularly cronjob. I am traveling a lot so i can not ensure a fast or even an internet connection to my remote backup space at all.
Has anyone an idea how to to create regularly backups ... |
0
Try duplicity along with Dropbox. So you copy your data to the local Dropbox directory.
When you have internet connection the dropbox client will sync your backup
Share
Improve this answer
Follow
... |
Bash/Shell Script for automatic backup of website |
I'm brand new to shell scripting and have been searching for examples on how to create a backup script for my website but I'm unable find something or at least something I understand.
I have a Synology Diskstation server that I'd like to use to automatically (through its scheduler) take backups of my website.
I curren... |
Answering each of your questions in order, then:
Several options, the most common of which would be one of wget http://mywebsite.com/dump.php or curl http://mywebsite.com/dump.php.
Since you have ssh access to the server, you can very easily use rsync to grab a snapshot of the files on-disk with e. g. rsync -essh --d... |
Project backup along with database to removable drive |
I am developing with netbeans.
I am using MySql database.
I want to move my project on my another laptop.
But when i copy my project to removable drive i don't get database files with project.
Please tell me how to move whole project along with database files.
I am copying from hard disk, is that a problem???
|
0
You could use the export function from the open-source program "MySQL Workbench" and then import it on your laptop.
MySQL Workbench: http://www.mysql.com/products/workbench/
And how to use MySQL Workbench to export & import:
https://www.beastnode.com/portal/knowledgebase/... |
How to Backup from mongoDB without locking tables |
There is a Replica set (primary, secondary, arbiter) with 300GB data. i want to make daily backup without lock. The Replica is placedWe use Windows 2008R2, so seems not possible to use lvm tools.
If i want to make folder copy on secondary, it needed to shut down mongod first (because its not possible copy mongod.lock ... |
0
I don't know if it is feasible for you, but you can add another member to replica set. This member would be hidden, so it would not be used for queries or writing operations. You can stop this server every day for make your database backups.
Share
Improve this a... |
MySQL MyISAM tables - Is it possible to just copy the .MYD, .MYI and .FRM files for backup? |
I currently have a database with 3 MyISAM tables containing very large number of rows (~400,000,000). Even though the rows are not complex and consist of maybe 3 or 4 integer fields, I would like to be able to most effectively backup the database and restore in case of failure.
I have tried using mysqldump, but when I... |
Looks like it: http://dev.mysql.com/doc/refman/4.1/en/copying-databases.html though I'd probably stop the engine first...
|
Huge sql server database with varbinary entries |
We have to design an SQL Server 2008 R2 database storing many varbinary blobs.
Each blob will have around 40K and there will be around 700.000 additional entries a day.
The maximum size of the database estimated is 25 TB (30 months).
The blobs will never change. They will only be stored and retrieved.
The blobs will b... |
Take a look at the "piecemeal backup and restore" - you will find it very useful for your scenario, which would benefit from different backup schedules for different filegroups/partitions. Here are a couple of articles to get you started:
http://msdn.microsoft.com/en-us/library/ms177425(v=sql.120).aspx
http://msdn.mic... |
Error "TF400998: The current user failed to retrieve the SQL Server service account information" when trying to configure backup plan in TFS 2012 |
I'm at a loss with trying to find a solution to this issue. When I am trying to create a backup plan in TFS 2012 I get "TF400998: The current user failed to retrieve the SQL Server service account information. Please make sure you have permissions to retrieve this information."
My TFS server and SQL server are on sep... |
0
So I found that you have to check several things.
List item
Run TFS admin tool with the service account credentials or login to the server with the TFS service account.
List item
Make sure all your database names are [TFSServerName. Assuming it's installed on the curre... |
Use Delete Flag when Using Rsync to Backup Multiple Git Repos? |
I have a huge number of git repositories on an on-site linux server that I need to back up daily to an off-site windows server. Because there are so many files, I want to use rsync instead of plain copy to save time and network bandwidth. (I will use rsync after mounting the windows destination drive.) I also want ... |
0
The issue isn't so much about the --delete option (which I would use to keep a consistent image of the repos on both sides), and more the risk of corruption when copying so many files.
One solution would be to have a job updating incrementally local (to the server) bundle... |
How to construct a Git repository out of old code backups |
I have quite recently started to use Git and think it is great.
Earlier I did my backups by creating a zip-package of all code and named it with the current date (e.g. "MyAndroidApp -1- 2013-03-10.zip"). That method resulted in that I stored many duplicates of a lot code.
Now I want to take these backups and create G... |
Half an answer: it's easy to set the commit date (and committer, and author and author date) with git commit:
--author='A U Thor <[email protected]>', --date=<date>
set environment variables:
GIT_AUTHOR_NAME: this is the A U Thor part above
GIT_AUTHOR_EMAIL: this is the [email protected] part above
GIT_AUTHOR_DATE:... |
backup Sql Databases from file system |
Background:
I m using a SharePoint 2010, and now i have to change my window. what i want is to take a backup of all databases of my SharePoint instance of SQ L server 2008.
I have searched, but all methods are proper traditional, that is taking backup from sq l management studio.
Problem:
Actually i have not much time... |
0
One option might be to use the windows Volume Shadow Service to make a snapshot of your C drive. If SQL Server is properly set up, that should also ensure that the database files are in a consistent state.
You can then just copy the necessary files over.
You may also wan... |
Sitecore - Managing Lucene indexes and database backups |
Sitecore.NET 6.6.0 (rev. 130404)
Our production setup contains a separate web server and database server. Web server hosts the sitecore website as well as the sitecore data folder (including indexes). Database server (obviously) hosts the sitecore databases.
In managing DB backups, taking SQL DB backups is not enough,... |
Making file system copies of the /sitecore/data/indexes directory will work just fine, but you need to be careful about how you're backing it up. If you try to take a backup while the site is running, you'll get a bad backup due to the way Lucene manages locking on the index's files. Make sure all aspects of your site... |
File size 0 bytes when uploaded curl ftp |
Help my please. I have got one bug in my backup script. File size 0 bytes when uploaded curl ftp. And cut file name: "siteru=2013-09-27(17". Why?
When the script is executed, there are no errors. Uploading to ftp is completely up to 100%
#!/bin/bash
#
#ver 1.0
#2013-09-09
#
DBHOST="mysql-host"
DBUSER="mysql-user"
D... |
Your filename contains characters ((, )) that would typically need to be escaped.
You need to quote the variable. Say:
curl --upload-file "$ARCNAME" ftp://$WEBDAVUSER:$WEBDAVPASS@$WEBDAVURL
|
Linux Backup Bash |
I am trying to create a bash script that backup the whole /dev/sda1 to /mnt/Backup
/dev/sda1 457G 3.5G 431G 1% /
/dev/sdb1 2.8T 3.0G 2.8T 1% /mnt/Backup
The script that have is :
START=$(date +%D)
FOLDER_NAME=`echo $START | tr -s '/' | tr '/' '_'`
SOURCE_PATH='/media /bin /boot /cdrom /dev /etc /h... |
0
If /dev/sda1 is mounted as your root filesystem, doing a recursive copy on it would also include the mounted filesystems under its directories. You can mount it again on another directory e.g. /mnt/system then do a recursive copy from it. I suggest using cp -a and not jus... |
How to Backup Database on Hive? |
Is there a way to backup an entire DB on HIVE like we do on MySQL using mysqldump?
Thanks,
Vivek
|
0
There is a project TAwarehouse which can be used for doing backups. I don't have much knowledge about it. U can find more details in these link.
backup-hadoop-and-hive
README
Share
Improve this answer
Follow
... |
finding RAILS_ENV when using backup_gem |
I am using the piece of code provided on this link.
For some reason I am not able to get the correct
RAILS_ENV = ENV['RAILS_ENV'] || 'development'
no matter what I do.
What may be the reason? What is the better to get the rails env in this case?
|
For someone else looking to find a solution for the same problem. I could not find a way to pass the rails_env to the gem so the workaround was to have a static file deployed for each of the dev environments hard code the environment as development and or rails in that file and then link to that file using capistrano.... |
Removing old folders in bash backup script |
I have a bash script that rsyncs files onto my NAS to the directory below:
mkdir /backup/folder_`date +%F`
How would I go about writing a cleanup script that removes directories older than 7 days old based upon the date in directories name?
|
#!/bin/bash
shopt -s extglob
OLD=$(exec date -d "now - 7 days" '+%s')
cd /backup || exit 1 ## If necessary.
while read DIR; do
if read DATE < <(exec date -d "${DIR#*folder_}" '+%s') && [[ $DATE == +([[:digit:]]) && DATE -lt OLD ]]; then
echo "Removing $DIR." ## Just an example message. Or we could jus... |
PHP errors on Magento store after restoring backup |
After failing to upgrade my Magento store from 1.4.1.1 to 1.7.02 I decided to go back to the backup I made before upgrading.
Unfortunately this gives a few errors when trying to access my website:
Notice: Trying to get property of non-object in /home/ziezap.nl/public_html/app/code/core/Mage/Core/Model/Config.php on l... |
You can try to clear your cache - delete all of the files in /var/cache/, there's a chance that the config is cached.
|
Restore postgresql from files [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... |
Make sure your backup is safe. So long as we have that we can start again.
Restore the PostgreSQL server software (check package titles)
apt-get install postgresql-8.4 postgresql-client-8.4 postgresql-contrib-8.4
Stop the server
/etc/init.d/postgresql stop
Restore all your data files. Make sure the ownership is corr... |
NServiceBus Database Backup |
I am looking to set up a system that consist of various autonomous services communicating via NServiceBus. This system will be deployed in various configurations (some services may be excluded, services will be setup differently) at client locations. These locations will often be large warehouses and will not have a m... |
If your client sites are not going to invest in some kind of infrastructure to support some sort of fail safe for MSMQ, then you may be able to leverage the Audit/Gateway feature of NSB. With this turned on you could have the client messages audited and stored over to some infrastructure that you manage. You would h... |
How to use 'root = ' in Obnam? |
Using obnam 1.4 how do I get both /etc and /var in the same root to enable me to back them up please?
I've tried 'root = /etc, /var' which backs up /etc but not /var, and I've googled without success.
This is to be used on Debian 7, under Linux.
|
0
Have a try with obnam 1.5 or later, these work fine for me.
You should also make sure that obnam has the right to access those paths (i.e. the user executing obnam has)
Share
Improve this answer
Follow
... |
Application size won't change in iCloud after do not backup flag is set |
I have found several similar questions:
link1
link2
I have added code as described in link2:
I call this method after picture download and saving in directory.
-(BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL {
assert([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]);
if (&NSURLIsExcludedFromBackupK... |
The problem was in method for making URL of file path. Currently I've changed to + fileURLWithPath:isDirectory: and everything works great. Size for my application in iCloud storage is shown as 0.9KB (previosly it was 50.7Mb).
|
Am i allowed to register more than one Backup Agent? |
In my android backup, i want to backup the SharedPreferences and some Data stored in a SQL database.
Is it possible to register two backupAgents in the android manifest (one for each) or do i have to implement my own custom manager which stores both?
If its possible
<application
android:backupAgent=".SharedPrefBac... |
0
I'm no expert at this, as I just started using the Data Backup API.
But, I believe if you declare an attribute twice, it will only use one of them.
So in this case, you would have only actually registered .SQLBackupAgent
What I'd do is have one BackupAgent class, for ex... |
Auto-backup shell github |
I wrote a script to auto-backup a website and this script will push resources to github. I wrote some code in crontab to let it auto-execution. However, I don't know why resources can't be pushed.
I can see the heads from .git that it has been modified (which means commit successfully). I guess the problem is that th... |
0
You should first test that script under your own account, where git config user.name and user.email must be set properly.
Then you should register your script top cron, making sure it is executed as you, not as root, each user having his/her own crontab.
Run cron jobs as... |
After copying live drupal site to wamp server, local site still acts like fresh install |
I recently set up WAMP server on my Windows 7 machine. I copied the code from my live Drupal 7 site to my local folder, and imported my database. However, when I try to access my local site, I get the Drupal install page. I'm not sure how Drupal tells whether it's a fresh install or not, so I'm not sure how to debu... |
0
Most likely, it's because the settings.php file inside sites/default does not exist in your local version (was not copied during the backup).
Make sure that your backup contains ALL the contents of the folder sites/default. There is a probability they are not copied due t... |
MySQL seek-then-scan optimization for Limit Offset |
From the mk-archiver help, we can see there is an option to optimize "seek-then-scan". Any idea how do they do this?
What I'm really looking for is, if I do have a table with one PKey, and queries
SELECT col1,col2 FROM tbl LIMIT 1,10;
SELECT col1,col2 FROM tbl LIMIT 11,20; ...
SELECT col1,col2 FROM tbl LIMIT m,n;
An... |
0
I believe they are playing directly with the index structures, not relying on SQL. Advantage of access to source code of MySQL. It should be possible to have such an option using SQL, per connection, but with multiple users connect through intermediate (web) servers would... |
backup blackberry application data programmatically |
I'm developing an application in blackberry to backup its data, BBM chats, memos, tasks, calender notes, password keeper data etc. which can be synchronized with other blackberry phones (in case a user purchases a new blackberry device). How can I proceed? Please give me some ideas/code to backup the above data. Also,... |
Quite simply, you will not be able to. BBM doesn't allow access for security reasons, and should be tied to a BlackBerry account anyway.
I should think that it is a similar situation for Password Keeper.
|
Trying to have postgres database backup by backup rubygem nad ruby on rails |
My my_backup.rb=>
database PostgreSQL do |db|
db.name = "xxxxx"
db.username = "postgres"
db.password = "*********"
db.host = "localhost"
db.port = 5432
end
store_with SCP do |server|
server.username = "us... |
Well the problem was with postgress - you have to add your ip in pg_hba.conf => host all ip trust/md5(depend on version). And thanks to a_horse_with_no_name for editing it in proper format
|
Can I store a Content Provider in a file? In Android |
maybe my question is a little stupid but I couldn't find this answer.
What I'm doing is a backup of the APNs list.
I want to store the APNs list in a file. I already have the list of APNs but I want to store this list not as database but as a file.
Also this file needs to be read by my device to load all the list eve... |
Good news, you can use normal Java I/O facilities on Android. As well as Android-specific ones. You will need to decide whether to use external storage (SD card) or internal, or maybe shared preferences.
For the Java I/O, you'l need to know how to associate Java streams with files. For things such as shared preference... |
SQL backup loop |
I've built a backup query in SSMSE 2005 and saved as a text query.
Is there a way to loop through DB and write each as a unique file?
What I've done is copy/paste and find/replace database_name and run both in a single pass. That works, but would like either:
Run a single loop script which backs up each DB individual... |
0
Have a look at SSMS Tools Pack. It's free for versions less than 2012 and let's you easily run queries against multiple target databases.
Disclaimer: I have no stake in this tool other than as a user of it for the last few years.
Share
Improve this answer
... |
Azure Backup Restore |
I want to move an existing server 2008 instance from Rackspace/Hostway to Azure. Can I do a full OS/data backup, copy the backup file to the Azure server, and then restore from the backup file? How do you suggest me migrating this server to Azure? Hostway will not let me get a copy of the VMDK file.
|
0
Have you tried contacting the support for providing you with either VMDK or a VHD file? Why are you so sure they won't give it to you?
If they don't you could do a full system backup with either Windows Backup or any imaging software. Get that backup locally. Restore th... |
backup/restore from database with using entity framework |
how to backup/restore from database with using entity framework ?
Is it possible with entity framework 4.0 ?
I am using the c#4.0 and wpf and EF4.0
|
0
Assuming you have SQL Express, and thus no SQL Agent. Maybe that is the reason you want to export using Entity Framework? You can always do it with SQL
I just found a link which explains how you can do it, but until now it is just all based on the fact that i think you do... |
Suggestion about a BASH script for backups |
I have a server(centOS) with plesk installed and I need to planning some backups for each day.
Plesk allows only one planned backup, so I created this solution:
Create every night a backup inside a folder
Launch a script that will read the day from the title of a txt file inside the folder (launched every night via c... |
0
I don't know what you mean with "only one planned backup", could you explain this?
On the other hand, why not doing an rsync and deleting the oldest ones if needed… This is how I do this:
#!/bin/bash
date=`/bin/date "+%Y-%m-%dT%H_%M_%S"`
HOME=/root
/bin/echo -e "\n\n# Ba... |
GAE backup, Blob fields vs. Blobstore |
Google's documentation states the following on their help page for Backup/Restore, Copy and Delete Data:
Note: Blob data is not backed up by this backup feature!
https://developers.google.com/appengine/docs/adminconsole/datastoreadmin#Backup_And_Restore
I did a simple backup/restore with an entity type in my applica... |
0
I would say that it is safe to assume the two are not related. As per the google Blobstore Java API Overview:
Note: Blobs as defined by the Blobstore service are not related to blob property values used by the datastore.
Share
Improve this answer
... |
MS SQL Server Log Utilization never decreases [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
... |
dbcc sqlperf(logspace) shows approximate usage of log space. Usually this value is higher (but never lower) than actual free space. This article describes in short why log space used is not set to “0” after log backup: http://support.microsoft.com/kb/281879. So your log space used may rise up to 25% and then fall bac... |
Magento Backup Error |
I moved my magento site from godaddy to hostgator. I copied all the files to hostgator, then imported the database from godaddy to hostgator.
But, the new site has few problems, like few item pages are missing like - http://119.18.58.85/~homehero/index.php/shop/seating/union-jack-arm-chair (hostgator site), same link... |
0
First of all that 'index.php' in your URL is not pretty - enable URL rewrites in admin config to fix that.
What you might want to do to reset all your URLs and get them to what they should be is empty the core_url_rewrite table. You will need to reindex after that, howeve... |
backuppc method tar no files dumped for share |
Ubuntu 11.10 Server; backuppc 3.2.1
Running cgi-bin version
Installed as user www-data to avoid issues with perl and apache2 with user backuppc
ssh works fine to servers on LAN being backed up
The following commandline is reported in the failure log:
/usr/bin/ssh -q -x -n -l root 192.168.1.70 env LC_ALL=C /bin/tar -c... |
0
your tar command has stdout as file output (-f -)
Is this really what you want to do?
I think you would rather backup to a real file or pipe your command
Share
Improve this answer
Follow
answer... |
Do I have to unmount /dev/mmcblk0 when doing dd over SSH? |
I am using this command to back up my 4 GB MMC card on BeagleBone Black which is running Ångström Linux:
beaglebone:/# dd if=/dev/mmcblk0 | ssh [email protected] "dd of=/volume1/homes/admin/test.img"
It seems to be working great. But I'm wondering, do I need to unmount the SD card? What if things change the SD card d... |
0
If you mount the SD card in read only no, you don't need to umount it.
But if it is mounted RW, in case you make even one operation you're very likely to get an inconsistent filesystem.
So either you umount it or you remount it in RO.
Share
Improve this answer
... |
windows batch script for backup |
I can't figure out how to write script that backpus only files that were created or modified previous day. So if I start script on 25.07 at 15:30, it backups files between 24.07 00:00 and 25.07 00:00.
If it is possible preffered way is by using robocopy. I know for /maxage -1 switch but it works for files that are 1 d... |
Robocopy gives you two options for specifying dates (for maxage, minage, maxlad, minlad) - either relative (n<1900) or fixed dates (otherwise, treated as yyyymmdd). Full syntax here.
You want to include files created or accessed on given date so you have to use min/max lad (last access date) and fixed dates, so let's... |
Can I backup a SQL Server 2005 database using SQL Server 2008 R2 Express |
My goal is to work with a client's 2005 database using SQL Server 2008 R2 Express. When I am finished I would like to restore the database in it's 2005 format.
Could someone post the process for backing up a 2005 database in 2008 R2 and or the link.
Thank you,
Mark
|
0
There is no way, no process, no tools, no "hack", no workaround to do this. It just won't work. If you've "upped" a SQL Server database to 2008 R2 level, there's no way back to 2005. None. Zilch. Nada. Period.
If you need to work with your client's SQL Server 2005 databa... |
How to backup android the calendar file? |
Does anybody know, which files I need to save in order to have a simple backup?
Reason for my question is, that my Galaxy Android smartphone lost all calendar data without any interaction.
I found tons of apps, tons of sync stuff, but NO simple list of files to save.
I do NOT want to save my data remote on Google.
|
0
Was looking for this too, this is the best I could find:
http://comments.gmane.org/gmane.comp.calendars.pimlical/21657
Also, ended up using this app to save a few calendars.
https://android.stackexchange.com/questions/25210/how-to-backup-the-android-calendar-file-is-... |
How to get mysql back up tables starting with specific letter? |
I have bulk data of 2 gb on mysql server and I want to get backup of it.
I tried using mysqldump -u root newspress > /tmp/newspress.sql
But to download from server to my local machine it take very long time. So I want to get specific tables in database that starts with J.
Forexample: Jobseeker, Jobs, Joncategory... et... |
The following shell script will select all tables starting with 'm' and dump them to the current directory in a file called database.table.sql (for example: test.employees.sql):
DB="test"
TABLES=`mysql -uroot -BN -e "SHOW TABLES FROM $DB LIKE 'm%'"`
for TABLE in $TABLES;
do
mysqldump -uroot $DB $TABLE > $DB.$TABLE... |
MSDE .BAK not compatible with SQL Server 2012? |
I'm trying to copy a database from ye old MSDE to SQL Server 2012 Express, since Microsoft decided not to make MSDE compatible with Windows 7. Lo and behold, when I try the osql restore from disk command, I get the message that 8.0.2055 backups are not compatible with SQL Server 2012.
How can I transfer the database ... |
0
I had the same problem. I used the following procedure to accomplish the task.
Attach the MSDE database file to MSSql 2005.
Run SSMS, right click the attached database and select PROPERTIES
Select the OPTIONS page in the dialog.
On the dropdown combobox 'COMPATIBILTY LE... |
Anatomy of an EBS snapshot for Oracle db begin/end backup |
No luck asking this question on the AWS forum, so will try my luck here:
My rough understanding of the sequence of events during an EBS snapshot:
sync (??) < 1s
take snapshot < 1s (atomic?)
copy to S3 the snapshot or any incremental differences from the previous snapshot of this volume (if any) < 1hr (hopefully)
Ple... |
Some useful comments from Eric Hammond in another thread:
After you initiate the creation of the snapshot, your application/database is free to use the file system on the volume, but if you have a lot of writes, you could experience high iowait, sometimes enough to create a noticeable slowdown of your application. Th... |
Error 500 during uploading a backup file into Drupal on pc |
I am beginner in Drupal, I have downloaded site file from the dev server using Git and while I am trying to run these files in the htdocs(xampp) by localhost. I got the below error
Server error!
The server encountered an internal error and was unable to complete
your request. Either the server is overloaded or ther... |
0
The following link has more details but basicly you need to firs backup and download the database used on yor dev drupal site and upload it on your copy of xampp. After that you need to edit your configuration and maybe your .htacess (if not using the default one that com... |
xcopy /d copy all files every time, even unchanged files |
i try this command line
xcopy e:\myfolder /EXCLUDE:excludeList.txt \\192.168.158.15\public\comp\myfolder /E/I/D/R/H/Y
the command copy all files every time even unchanged files
i use /d that suppose to copy just newer files.
|
a small test shows it does work. you must have other problem ...
edit
in netwoek enviroment - you should add /z
|
Backup Isolated Storage as whole and recover |
I am developing a Windows Phone 7.1 application. The app serializes objects to JSON and saves them to the IsolatedStorageSettings file.
The objects also have images that the user may capture with a camera. These images are saved to Isolated Storage as a jpeg file with the "Extensions.SaveJpeg" method. Images are refe... |
0
I recommend you to use Perst as the local database solution for your windows phone application.It can be imported or exported as xml which you can upload/download to/from SkyDrive or other cloud system.
Home page of Perst:http://www.mcobject.com/perst/
Share
Imp... |
SharePoint 2010 Restore-SPSite problems |
I have create SharePoint 2010 site collection backup through Power shell, by using the command
Backup-SPSite "http://sitename:85" -path "C:\backup.bak" -Force
and i am restoring this backup on same SharePoint 2010 server/same machine on different port by using the command
Restore--SPSite "http://sitename:81" -path "C:... |
1
I had similar issue migrating SPF2010 to different server.
Sollution: database upgrade on source server.
How: Open Sharepoint PowerShell, and type Upgrade-SPContentDatabase command, hit R(maybe Y) when promt.
Cheers
Share
Improve this answer
... |
Is iCloud only meant for UIDocument and CoreData(How to Take Back up of any folder with its data on iCloud) |
I read the apple documentation and some other links and found there are examples of using iCloud with only either UIDocument or Core Data.
I am having a folder created in documents directory named "backUPFolder" and it contains some images and other files in it.
I want to ask , if it is possible to move this backUPFol... |
I have also only seen the UIDocument and Core Data examples. What comes to mind is to transform your pics and docs into Core Data blobs and store them with core data anyway. This could also be very efficient.
Alternatively, you could check out the Dropbox APIs.
|
Can a MozBackup backup file be converted into a FEBE file? |
I recently switched over to Ubuntu and removed Windows 7. I backed up my Firefox stuff using MozBackup, which appearently does not work on Linux. I tried wine and still not working.
Now regarding the question, I would like to know if there is any chance to "convert" a MozBackup file into a FEBE backup file.
|
0
I know that the question is old and might not be helpful for the op, but for the others: MozBackup just creates a zip archive containing your original profile folder. So, you can open the .pcv file it creates as an archive (eventually change it's extension from .pcv to .z... |
sql and mysql automatic backup and .net hosting |
Hello this is a two part question
1) Can someone recommend a way to automtically backup sql and mysql databases? Preferably if there is an online service (free or paid). Would be nice if the software or website could handle sql and mysql.
I am currently hosting my .net MVC 3.0 application hosted on arvixe. We are on t... |
0
For a Linux host, if they provide shell access and cron jobs, then you can automate most things. Your host, arvixe, seems to provide both. As far as I know, every host that allows cron jobs allow at least one a day, but I seem to recall that a few do not allow more than ... |
Android BackupRestore example not working on Android 2.3 Nexus One |
I've created a sample project using BackupRestore. I went to register for a key at Android Backup Service. I got the following:
Your key is:
AEdPqrEAAAAIW4p30C1GTNjzBOqWrb0clI7_OCWxm3ddIgkKhw
This key is good for the app with the package name:
com.example.android.backuprestore
Provide this key in your Android... |
0
When you uninstall the app the backup data got removed. Lookup logs for
BackupManagerService: Removing backed-up knowledge of <app package>
Seems that backup/restore process can vary from manufacturer and device. Testing Backup and Restore document can simple work by ... |
Trying to transfer older version of mediawiki to new server |
So, in college I had a Debian server which used to host a wiki, with mediawiki version 1.9. This server stopped working, and all I have now is its HD. I want to transfer this wiki to a new server, which also runs Debian, but I can't do that with Debian's current stable version of mediawiki, 1.15, because it is not pos... |
0
Like you commented yourself, it would certainly be worth a try to using your existing configuration. The configuration is typically some site preferences and database configuration, so make sure dat your database is setup in the same way as before.
Regarding your configur... |
Is the pgbackups addon for Heroku fully managed? |
I am using the pgbackups addon from Heroku and trying to figure out what the best option is for me: http://addons.heroku.com/pgbackups
I want to basically backups to happen on a daily basis, so I am basically trying to do the daily automatic backups, retains 7 daily backups, 5 weekly backups.
The key question I have f... |
Heroku fully manages backing up the database daily for you without you having to do anything.
All backups (whether manual or automatic) are available for you to export. You can get a list of those by typing this at the command line:
$ heroku pgbackups --app your_app_name_goes_here
You can find more information on re... |
SQL Server backup failing with Error 64 |
I'm useing SQL Server backup to an unc path. I'm getting the following error on a fairly regular basis now:
BackupDiskFile::RequestDurableMedia: failure on backup device 'the unc path\filename here' Operating system error 64(The specified network name is no longer available.).
Is there any way to get this consisten... |
0
SQL Server is notorious for being delicate with network shares (this is supposedly supposed to improved with SQL Server 2012). If there is any loss of transmition or minimal timeout then SQL Server will abort the backup.
Your best bet is to backup to a local disk and the... |
Backup Failed for Server 'xxxxx/SQLEXPRESS' |
I am using this code for backup database from .mdf file.
Backup databaseBackup = new Backup();
databaseBackup.Action = BackupActionType.Database;
databaseBackup.Database = CvVariables.Catalog;
databaseBackup.Devices.Add(new BackupDeviceItem(new NecessaryFunction().MsSqlBackupFileName(this.backupTextboxPath.Text), Devi... |
It looks like the security context that you are executing on the client PC is different than that on your developer PC. Verify that your client PC credentials have access to the Cafeteria database, otherwise it would get you that same message that it couldn't be found (because it doesn't have access to it).
My guess ... |
Schema backup in oracle |
While taking backup of a schema, will it also copies the permissions granted on a table in that schema?
Consider a schema sch_1 and this schema has a table test_table which has read access granted to an user tst_usr. So, if i take a backup of sch_1 will it copy the schema along with the access granted to tst_user on t... |
You can use full export or export data pump to get schema.
export:
ROWS=N
GRANTS=Y
export data pump:
CONTENT=METADATA_ONLY
|
WCF Keep Alive and Backup Strategy |
Is that possible (using behavior and IClientMessageInspector.BeforeSendRequest) to change the comunication channel before send a message ?
I need to change this, because i have a backup/primary strategy for my proxy.
|
Based on your comment, it sounds like you want to be able to switch service endpoints in mid-call if the primary service is offline. I don't think there's any way to do that - at least not elegantly.
Once a communication channel is established, it's pretty much set until it is closed (or aborted). There's no way to ... |
Backup of images that aren't in the repository |
I have the code of a website in a subversion repository.
The admin of the site can upload images via a CMS.
These images go to different directories inside "webroot/uploads/".
This directory forms part of the repository, too.
I have a cron task to backup periodically (via svnadmin dump) the repository, but the images... |
Usually, binary contents (exe, dll, images, ...) which don't benefit from version control features (diff, labels, merges, ...) aren't under version control.
However:
if those images doesn't change much (ie the same image doesn't get modified over and over), and
if their number is limited (ie you don't upload to web... |
BackUp Strategies and Tools for MS SQL 2008 |
I would like your opinions and thoughts on best practices/strategies and Tools to Backing Up a WebSite with its DataBase. Here I posted some ideas, but I'm not sure what really works in real world scenario and what is feasible (I have a limited experience with DB).
My Web Site and DB are hosted on an external Server A... |
0
I had this is same requirement a few months back. Here is my approach
I wrote an application on my local machine and using Windows Task Scheduler I had it run every day. What the application did was make a connection to the database server where my database was residing. ... |
android : how to fetch default application for backup process? |
I'm trying to fetch the default applications (video, images, contact, sms) for backup process. How can i do this? Is there any default method for to do this?
|
0
I dont think there is any difference between the default(apps installed along with the android OS) and apps installed later by user. As far as I know there is no way you can know that. Ask or Search this in Android Developers google groups to get a confirmation.
EDIT:
F... |
VS 2010 pc backup coding [closed] |
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 10 years ago.
... |
I think you should look into the existing HDD image creators (quick googling gave me XXClone, but you may need something else).
You basically need to
create an image of the entire PC's storage (i.e. all logical disks)
upload the image to the internet area
A relatively small program may perform the tasks 1 and 2 for... |
errors when backuping ubuntu11.04 with tar |
I've been trying to backup my ubuntu11.04 with the following tar command
sudo tar -cvpzf /media/TOSHIBA\ EXT/backup.tar.gz --exclude=/backup.tar.gz --exclude=/lost+found --exclude=/proc --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev --exclude=/home/manuzhang/Music --exclude=/home/manuzhang/Videos --excl... |
0
The error `"Exiting with failure status due to previous errors" means exactly that. There was an earlier problem which, while not fatal to the running of the program, is reason enough to exit with a failure code.
Given that you're backing up from the root level, this is a... |
performing backup for tree of directors and applying certain operations on files |
What I want to do is to backup my personal data (on a Linux boy) possibly using rsync. I want to include only certain files (jpg,nb,pdf,..) and exclude everything else. This is easily possible with rsync. What I also want to do is to apply certain operation on those files I backup since I need to save some disk space.... |
0
First question how much space do you have at the destination?
mkdir -p /storage/backups/`date +\%Y-\%m-\%d`-`date +\%A`/$host/$username
rsync -avz /storage/backups/`date --date=yesterday +\%Y-\%m-\%d`-`date--date=yesterday +\%A`/$host/$username/ /storage/backups/`date ... |
Backups of RSA public and private keys |
I was wondering which is the best way of making a backup of RSA key pairs. I have them in the same server I use to make backups in order to encrypt and by now this is a SPOF. I can't find any good solution googling around.
|
0
Save the key pair into a password-protected key store.
Share
Improve this answer
Follow
answered Feb 24, 2014 at 20:31
divanovdivanov
6,24133 gold badges3434 silver badges5151 bronze bad... |
Why would a nightly full backup of our SQL Server database grow 30 GB over night and then shrink again the next day? |
We run SQL Server 2005 and have a database that's about 100 GB (the MDF is 100GB and the LDF is 34 GB).
Our maintenance plan takes a full database back up every night. It's set up to
This backup size is usually around 95-100 GB but it all of a sudden grew to 120 GB, then 124 GB then 130 GB then back to 100 GB over 4 ... |
0
If your backup is larger than the MDF, this means you have a lot of log activity recorded too. SQL Server notes data changes that happen during a full backup and does a "mini" log backup to capture this.
I'd say that you need to change Index maintenance and backup timings... |
Xcode 4 / Git - backup |
What is the most simple way to backup my project? Can I just copy XCode project (with hidden .git) directory to USB stick and copy it back when needed?
|
0
It will work fine, but it is rather inefficient. I've done it with timecapsule and this just works.
You can also create a "bare" repository on the stick and regular push your work to it.
This is a lot smaller than the original, but you will not have all your branches (unl... |
Specifics on backing up Android OS [closed] |
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
... |
For a full system backup, you can use Nandroid. But this tool is a bit advanced. It requires rooting the phone, and some other tweaks. Basically, this is very much used by people who install alternative ROMs. However, after backing up with Nandroid, you still need to backup the SDCard.
Using cp to copy the /data folde... |
PHP and CRON based MySQL database dump-to-email backup system? |
Can anyone recommend a reliable and simple PHP based MySQL database backup system that can run on the same virtualhost, creates a dump file from a specific database and sends it as an attachment to an e-mail address with frequency I can adjust (or depending on CRON).
Thanks!
|
0
For the first part you can set up a CRON job with this command:
mysqldump db_name > path_to_file.text
replace the placeholders with your database name and the path to the file you want to dump to. As for the e-mail part. I'm not sure.
Share
Improve this answ... |
SSH backup via PHP problem |
I am trying to backup all the files on our server using some SSH commands via PHP and I have a script working to some extent.
The problem is that only some of the folders actually contain any files but the folder structure seems to be correct though.
This is the script I am using:
<?php
$output = `cd /
ls -al
... |
ls -l / | grep home
the output will be like this:
lrwxr-xr-x 1 root wheel 8 Mar 30 14:13 home -> usr/home
In my case, the owner is root, and the root user its primary group is wheel, so now we add www-data user to wheel group so he can list files in there:
usermod -a -G wheel www-data
You can download som... |
Mysql - backup partial data |
Is there an easy way to backup and restore partial data from a mysql database while maintaining the FK constraints?
Say if I have 2 tables
| CustomerId | CustomerName |
-----------------------------
| 12 | Bon Jovi |
| 13 | Seal |
and
| AddressId| CustomerId | City |
-------------... |
0
You could replicate specific customers manually and by adding an FK constraint on the address table replication will fail to insert/update these records.
For replicating specified tables in the db http://dev.mysql.com/doc/refman/5.1/en/replication-options-slave.html#opti... |
Is it ok if index length and data length are shorter after a backup |
I created a backup of my mysql db 5.x using wp-db-backup plugin. I noticed that the rows, auto-increment counter all look like the original. Except, the data length and index length which shows smaller values. Do you know if this is a sign that the backup is not good?
Thanks,
|
0
Yes, because, when you restore a database the data are written from scratch in your tables and you have no unused space in the data-store, it's like running an OPTIMIZE table on the tables of your database. Your data and indexes are re-created.
Unused space is normal when... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.