Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
Creating a log of a backup C# |
So I want to log what happens when I backup files but I'm not sure how to make it work for files in subdirectories aswell.
Right now I have this code that works for all files in the selected directory but doesn't work for subdirectory files
private void LogBackup(string sourceDirName, string destDirName)
{
... |
Include the SearchOption.AllDirectories and you will get all sub directories:
DirectoryInfo dir = new DirectoryInfo(sourceDirName);
DirectoryInfo[] dirs = dir.GetDirectories("*", SearchOption.AllDirectories);
when you now loop through the directories, you will have also the first level of subdirectories and for each ... |
Is there an other solution than copy-only full backup? |
I do a full backup once a month and then incremental backups in between.
But meanwhile another users could do full backup and that break my chain. I know that there is a full back up with copy only.
But in my case I can't know when and who will do the backup, so I need to find a solution to implement on my side to avo... |
This code sample is a bit on the verbose side to make it easier to understand, but the table msdb.dbo.backupset can help you with this.
https://learn.microsoft.com/en-us/sql/relational-databases/system-tables/backupset-transact-sql
declare @MostRecentAuthorizedFullBackup datetime
declare @MostRecentUnauthorizedNonCop... |
Vertica backup error |
I try to do full backup on Vertica database. When I execute command:
/opt/vertica/bin/vbr.py --debug 3 --task backup --config-file vertica_backup.ini
I am getting following error:
/bin/sh: 1: ulimit: Illegal option -u
Traceback (most recent call last):
File "/opt/vertica/bin/vbr.py", line 2526, in backup
prepareAll... |
0
I've found workaround, in the Vertica backup file /opt/vertica/bin/vbr.py I have changed ulimit -u to ulimit -n.
Share
Follow
answered Apr 21, 2017 at 10:33
wlodi83wlodi83
12311 silver bad... |
Program that copies only certain files and folders C# |
private void btn_Backup_Click(object sender, EventArgs e)
{
List<DirectoryInfo> SourceDir = this.lbox_Sources.Items.Cast<DirectoryInfo>().ToList();
List<DirectoryInfo> TargetDir = this.lbox_Targets.Items.Cast<DirectoryInfo>().ToList();
foreach (DirectoryInfo sourcedir in SourceDir)
... |
You could write a Copy recursive function like this (Pseudo code)
public void CopyData(string sourceDirectoryPath, string desDirectoryPath)
{
foreach File in sourceDirectoryPath
{
copy to desDirectoryPath
}
foreach currentDirectory in sourceDirectoryPath
{
// recursive function
... |
How to exclude wordpress from magento root |
I have a magento store running on name.pippo.com
Now I am considering to install wordpress for blogging.
Since I would like to integrate magento + wordpress as a fully integrate system (maybe with magento fishpig extension), i would like to knwo how to obtain same result but installing wordpress in a subfolder of my T... |
0
This is possible but it makes no sense and would take a bit of hacking together. This is one of those situations where if you have to ask how to do it, you probably won't be able to do it.
My advice would be to integrate WordPress normally and just have WP as part of your... |
OL3 add backup url |
I'm trying to add a backup route for a tiles with ol3. I would like to test on the errorload event if the source url starting by "http".
If "yes" : replace this tile by a custom tile.
If "no" : change the source url of this tile by another one and retry
I think i need to use something like that :
layerTile.getSo... |
0
Oups, without code my answer is null.
layerTile.getSource().setUrl('file:///local/{z}/{x}/{y}.jpg');
var serverBackup='https://{a-c}.tile.openstreetmap.org/';
var errorTilePath=urlBase+'css/images/error.png';
layerTile.getSource().setTileLoadFunction((function() {
... |
psql:pr_staging.sql:7624: ERROR: relation "res_company" already exists |
Backup command: pg_dump -U username backupdbname -f backupfilename.sql
Restore Command: psql -v ON_ERROR_STOP=1 -f backupfilename.sql -d newdbname;
Actually Tried this command. Backup is working. But while restoring it will throw error psql:pr_staging.sql:7624: ERROR: relation "res_company" already exists. Because f... |
0
If you create a db by using Odoo's db manager (interface) there already will be basic tables (the module base will be installed automatically).
There are some ways to restore the db. For example (template0 is a default template db from postgres):
createdb -T template0 new... |
restoring mariadb using sqldump generated sql file throw errorcode 22 |
I run the following to dump full database
C:\MariaDB\bin mysqldump.exe -uroot -p --single-transaction --flush-logs --master-data=2 --all-databases > full_db_backup.sql
on one computer.
Then, on another machine, I reinstall a fresh new MariaDB 10.1.22. And populate this new database instance with the following:
C:\Ma... |
0
1) I run "chkdsk /F"
2) reboot my computer
3) run "C:\MariaDB\bin mysql.exe -uroot -p < full_db_backup.sql"
Now, it works. My speculation is that is something related to hardware. ErrorCode 22 might not be an MariaDB error code at all. It is some OS errorcode passed to M... |
IOException file already exists C# |
private void btn_Backup_Click(object sender, EventArgs e)
{
List<DirectoryInfo> SourceDir = this.lbox_Sources.Items.Cast<DirectoryInfo>().ToList();
string TargetDir = this.tbox_Target.Text;
foreach (DirectoryInfo directory in SourceDir)
{
foreach (var file in directory.... |
As pointed out by s.m. in the comment above, the call to ZipFile.CreateFromDirectory() will attempt to create a zip file with the same location and file name for all the source directories.
If the intention is to create a single archive containing files from all the source directories, then the Zipfile.CreateFromDire... |
Cassandra back using java code |
Is there a way that i can backup a single table in Apache Cassandra with java code. i want to run such code once every week using a scheduler. Can some one share links to such resources, if there any?
|
0
Have a look at this answer.
Fetch all rows in cassandra
It's just a matter of adding code to export let's say every row to csv or some similar format that would be fine for you.
You will also have to write script to load this data, but those are just simple inserts.
... |
How do I loop through an array of ip adresses to get the hostname of each machine in bash? |
I'm trying to learn to write some simple bash scripts and I want to create a backup script that will use rsync to fetch predetermined directories and sync them to a backup machine. Here is the code:
#!/bin/bash
#Specify the hosts
ip=(192.168.1.40 192.168.1.41 192.168.1.42 192.168.1.43)
#currently unused
webdirs=(/et... |
0
is your desired output is something like:
$host/mnt/synology/Torrents/Games/
where $host is the name of each one of these ips: (192.168.1.40 192.168.1.41 192.168.1.42 192.168.1.43) ?
when building the path for mkdir you are doing $(hostname) but that command's output wil... |
Best way to backup (automatically, cron) google drive docs |
I have a google drive for my company, and I would like to backup all theses data (mainly documents...) every days (in case of sb would delete them accidentally)... Is there an easy solution to do that ? I mean to copy all theses data, automatically to another google drive account or to my local disc ?
Thanks you,
|
0
Checkout Multcloud. This website allow to manage all your cloud spaces together. You can add your company's drive a/c and other drive a/c or dropbox or anything, then sync company a/c with the a/c that you want.
Share
Follow
... |
file writing failed sporadically with antivirus or backup program from windows |
we have java code creating, writing and deleting new files to the disk on windows, but the file operation failed sporadically;
sometimes files are created/deleted with a delay, sometimes it just failed
I suspect the antivirus or backup program caused this, and it happens more often with AVG, Symantec or Carbonite ins... |
0
I am a technology consultant for Symantec. And I have a lot of customers who are using java code for creating applications. If you add exceptions for the application and path to Symantec AV, you will be able to work hassle-free.
Share
Fo... |
Difference between archivelog options in rman |
What is the difference betweeen those two commands regarding archivelogs:
BACKUP DATABASE PLUS ARCHIVELOG;
and
BACKUP ARCHIVELOG ALL;
|
0
BACKUP DATABASE PLUS ARCHIVELOG;
Backup entire database along with archivelogs
BACKUP ARCHIVELOG ALL;
Backup archivelogs alone.
Share
Follow
answered Mar 10, 2017 at 7:28
Dinesh... |
Date Comparison and copy only new files |
Good morning,
I'm a beginner in programming code, so i'm sorry if I do something wrong.
I've wrote a code in VBS for backup some files from a folder to another.
My problem it is to compare the files date in both folders and allow the copy only if the file is new or the date has been changed.
Here my code, someone can ... |
0
.DateModified is not VBScript. Start reading here. There is DateDiff, but as Dates are Doubles under the hood, comparisons with < will work too. In code:
>> Set f = CreateObject("Scripting.FileSystemObject").GetFile(WScript.ScriptFullName)
>> dlm = f.DateLastModified
>> W... |
Service Fabric : Restore to a particular version? |
I have Backup and Restore implemented with service fabric.
My backups go into folders on azure with time stamp and the service name.
At the moment I just search the latest backup, but what if I want to restore to an older version?
I invoke the data loss using
await fabricClient.TestManager.StartPartitionDataLossAsync... |
0
You could store that information outside of the cluster, like in Table Storage, and read it from there during restore.
edit:
I've been working on an open source project that will help make this simpler. Feedback & contributions welcome.
Share
... |
shell backup script renaming |
I was able to script the backup process, but I want to make an another script for my storage server for a basic file rotation.
What I want to make:
I want to store my files in my /home/user/backup folder. Only want to store the 10 most fresh backup files and name them like this:
site_foo_date_1.tar site_foo_date_2.tar... |
The main issue with your code is that looping through all files in the directory with ls * without some sort of filter is a dangerous thing to do.
Instead, I've used for i in $(seq 9 -1 1) to loop through files from *_9 to *_1 to move them. This ensures we only move backup files, and nothing else that may have acciden... |
Restoring a MySQL dump with binary blobs |
I am moving a MySQL database from a now inaccessible server to a new one. The dump contains tables which in turn contain binary blobs, which seems to cause trouble with the MySQL command line client. When trying to restore the database, I get the following error:
ERROR at line 694: Unknown command '\''.
I inspected t... |
0
If I remember correctly, you need to set the max_allowed_packet in your my.cnf to a large enough value to accommodate the largest data blob in your dump file, and restart the MySQL server.
Then, you can use a restore command like this one :
mysql --max_allowed_packet=64M... |
For Loop Breaks after wrapping with Platypus |
Below is a snippet of a script I am working on for media backup. The script runs as expected when called from the Terminal command line. However, after wrapping the script with Platypus in to an App, the destination directory is created but the For Loop does not run and no media is copied to the destination folder. An... |
0
#!/bin/bash
DEST_PATH=/Volumes/PrivateMain/Media
mkdir -p $DEST_PATH
SAVEIFS=$IFS
IFS=$(printf "\n\b")
for i in $(find "/Users" -iname "*.jpg")
do
FILENAME="$(basename $i)"
MD5="$(md5 -q $i)"
cp "$i" "$DEST_PATH/$MD5-$FILENAME"
done
IFS=$SAVEIFS
Thanks to all who... |
netbackup port openinings - does it require bi-directional communication? |
Our backup guy asked me to open up a firewall ticket to open up connections from our terrestrial data center to AWS. He asked for ports 1556, 13782, 13724 to be opened up bi-directional between the backup server in our data center to the subnets in AWS.
My question is, why is he asking for bi-directional communicatio... |
0
Bidirectional Communication will be needed as Private Branch Exchange will not work without it. More over to transmit data from Client to Master server 2 way communication is needed. Firewall Plays a role in it but still Ports needs to be opened bidirectionally.
If you ... |
Run bash script on schedule |
I have some problem with bash script. I need to add some content to it. My script need to run at a certain time but I don't know how to do that. It should work like this:
I have a variable then I assign a time like 3200s. When I run the program, then the script will create backups every 3200s but only if some files ch... |
here i have added that feature to your script:
usage:
./yourscript.sh 3200
script:
#!/bin/bash
# make sure you gave a number of seconds:
[ 0$1 -gt 0 ] || exit
while true; do
SOURCE="/var/www/my_web/load/"
BACKUP="/home/your_user/load/"
LBACKUP="/home/your_user/load/latest-full/"
DATE=$(date +%Y-%m-... |
rsyncing to a new destination, but files are already there. Can I rsync know not to resend the all the files? |
Our current setup consists of about 100 remote sites that gather data and then once a week transfer that data to a local server using rsync over a cellular connection. The data is stored at the remote sites for 12 months before it is deleted. All remote sites have been operating for more than a year. (They have a y... |
0
We found that using rsync to copy the data from the old server to the new server fixed the issue. Apparently rsync whatever metadata was being looked at by the rsync program. Our first two attempts used scp and a USB stick to copy files. These methods did not work.
... |
Backup myIsam .MYD only |
Is it possible to backup the .MYD file only? (and rebuild the .MYI if/when there is a catastrophic failure)
I'd like to backup rather large tables offsite while minimizing bandwidth usage. Data is critical, index files (5G+) are not. The idea is to run regular backups of the .frm and .myd files and rebuild the indexe... |
To fully restore a MyIsam table without the .MYI (i.e. solely from the .frm and the .myd files), run:
REPAIR tableName USE_FRM;
To make a fast and compact backup of the structure+data, run:
FLUSH TABLES tableName WITH READ LOCK;
[make a copy of the .frm and .myd files. No need to copy the .myi]
UNLOCK TABLES
Copyin... |
Simplifying batch backup script |
I've made this script (minus all my ECHO for your readability) to backup certain user folders to an external device. It's working flawlessly, but I'm wondering if anyone has any ideas as to how I could simplify it (eg. more 'clever').
I'm new to this site and coding. Please bear with me!
All help appreciated.
@ECHO OF... |
If possible, don't repeat yourself
:chooseYes
for %%a in ( Desktop Documents Favorites Pictured Downloads ) do (
robocopy "%userprofile%\%%a" "%driveLetter%\%%a" /E /COPYALL /ZB /MT:20 /XJ /R:2 /W:5
)
CLEANMGR /C: /SAGERUN:65535 /SETUP
TIMEOUT /T 1 /NOBREAK >NUL
DEFRAG /C /H /V /W
PAU... |
Sharing data between several Google projects |
A question about Google Storage:
Is it possible to give r/o access to a (not world-accessible) storage bucket to a user from another Google project?
If yes, how?
I want it to backup data to another Google project, for the case if somebody may incidentally delete all storage buckets from our project.
|
Yes. Access to Google Cloud Storage buckets and objects are controlled by ACLs that allow you to specify individual users, service accounts, groups, or project role.
You can add users to any existing object through the UI, the gsutil command-line utility, or via any of the APIs.
If you want to grant one specific user ... |
Wbadmin backup failed due to a file system limitation |
I'm trying to setup and learn the Wbadmin command line prompts for making my own backups. I'm created a test on Server 2008 R2 in VMWare, I've created a separate B: drive for backups. I'm trying to target specific files, and I've created 6 testFile# .txt files in the C drive under the !Test folder.
The command that I... |
So after some research, I found the cause of the error message. The proplem came from within the Virtual Machine itself. The VM or the Operating System was not configured, so Wbadmin would not accept the destination of //localhost/NetworkShare
When I tried backing up to a real network drive, everything worked as plann... |
Not able to download multiple dynamoDB tables by using dynamodump |
Not able to download multiple dynamoDB tables by using dynamodump
$ python dynamodump.py -m backup -r us-east-1 -s 'DEV_*'
INFO:root:Found 0 table(s) in DynamoDB host to backup:
INFO:root:Backup of table(s) DEV_* completed!
But i'm able to download if i give single table name and "*" (download all DynamoDB tables).
... |
for i in aws dynamodb list-tables | jq -r ''| grep 'QA*'| tr ',' ' ' | cut -d'"' -f2;
do
echo "======= Starting backup of $i date =========="
python dynamodump.py -m backup -r us-east-1 -s $i
done
The above script will work if you want to take multiple dynamoDB tables backup. prior running the script you have to downl... |
Prevent Payments during server backup |
I am working on a shopping website where users are redirected to paypal for payment.
On the server I have a scheduled backup task running once a month that last something like 15 minutes. During backup the website will be suspended.
However, if a user has just been redirected to paypal before my server is suspended t... |
If you'd like to prevent any downtime, you can have the purchase information stored in a queue, separate from the "main" server that you back up regularly and have a job that reads from that queue and store in your "main" server. Use a persistent queue that doesn't need to be backed up (as long as it is consumed as so... |
Windows script to backup specific files from directory to another on same machine |
I need a help with mine school project scipt. I thought it would be easy, but apparently found myself a bit confused with it.
The task is to:
Write a script, which gets as parameters two directories. First directory must exist. From the first directory and its subfolders the backup will be done for files such as .c,.t... |
You aren't usually provided homework/tasks for which you have not previously been provided sufficient information. When you are the intention is usually that you actually put in some time and effort researching.
For that reason I will only provide this. You can put in your own time and effort to look up the commands a... |
dump directory data to a file for new/modified comparison later on a linux server |
Is it possible to take some kind of "dump" of a directory on a Linux (Ubuntu) server that I can later use to compare against for new/modified files?
The idea being something like this:
Dump directory data (like file hashes)
24 hours later I take another dump and compare against #1 to find new or modified files
|
0
Well, this is not the answer you might be looking for but I would use GIT to track down the changes, or may be even git-annex if the files are too big for example.
Initialize the git repository in the directory you want to track: git --init
tell git to track all files: g... |
mongo (3.2): Backing up with fsyncLock() files still being modified on the filesystem |
When backing up the mongo file system using tar, using a secondary in a replication set, tar is saying files have changed during the tar process even though the lock command has been run. For reliable backups this should not happen. What I am missing?
devtest:SECONDARY> use admin
switched to db admin
devtest:SECONDARY... |
0
I'm guessing mongodb still needs to continue saving data while it's running, but from what you say it seems safe to backup your data as nothing is changing your collection data.
However if you're unsure you could always db.shutdownServer() which will force a flush to disk... |
How to Create vcf file of the contact which are in sim or in google account iPhone objective c |
i want to get the backup of the contact files which resides in sim or google account or in iPhone, according to the users selection ... is it possible to do such thing...
|
0
You might try to use the Retrieving all contacts from the Google Contacts API:
To retrieve all of a user's contacts, send an authorized GET request to the following URL:
https://www.google.com/m8/feeds/contacts/{userEmail}/full
With the appropriate value in place of user... |
Enter drives for backup via keyboard |
What I am trying to do is a backup by cmd commands but the problem is when I am taking the USB backup to another PC to back up the drive names are different.
For example when I do:
XCOPY G:\*.BMP X:\ /h/i/c/k/e/y/r/d
In the other computer the drives will not be G and X.
What I am seeking to do is if it is possible ... |
Yes, it can be done using a PowerShell or batch-file script (cmd tag seems to imply Windows OS).
Let's choose the latter. Next batch-file code snippet would do the same as the command in question: XCOPY G:*.BMP X:\ /h/i/c/k/e/y/r/d:
set "DriveIn=G"
set "DriveOu=X"
XCOPY %DriveIn%:*.BMP %DriveOu%:\ /h/i/c/k/e/y/r/d
I... |
psql error for restoring pgsl backup on cmd |
I'm having a hard time understanding what this error means. The command I used was:
psql -U postgres -d app -1 -f postgres.sql
and this is the error:
psql:postgres.sql:1879: ERROR: current transaction is aborted, commands ignored
until end of transaction block
ROLLBACK
psql:postgres.sql:0: WARNING: there is ... |
0
As joop explained, your SQL file is inconsistent.
There is a foreign key constraint from raffle.user_id to "user".id, which means that for every value in raffle.user_id there must be a row in "user" where id has the same value.
Now there is no row inserted in "user" with ... |
Ploop snapshot is in old format |
When I try to make snapshot of my ploop container I have an error:
# vzctl snapshot $VEID --skip-suspend
Creating snapshot {6ea44de0-68ff-4044-9264-3dc7e818200d}
Storing /vz/private/ploop/$VEID/Snapshots.xml.tmp
Error in is_old_snapshot_format (snapshot.c:39): Snapshot is in old format
Failed to create snapshot: Erro... |
0
It is related to ploop version, which used in creation of ploop device and its TopSnapshot.
So, we need to update ploop to recreate its TopSnapshot.
For example:
online openvz6:
vzctl set $VEID --diskspace $SIZE --save
offline ploop:
ploop resize -s $SIZE DiskDescriptor.... |
Prompt Windows - Script Back up |
I need to back up some files processed. For this need to move my files from the C:\xml\UPLOADING to the C:\xml\UPLOADED. Files that have been moved to C:\xml\UPLOADED have to be compressed (.rar or .zip) to a folder with the default name in10xml_uploaded_YYYYMMDD_HHMMSS. For this did the following command:
cd "C:\prog... |
0
You can move files directly to an archive using the rar m command:
rar m C:\xml\UPLOADED\in10xml_uploaded_%date%_%time%.rar C:\xml\UPLOADING\*.xml
After the above command completes, the files will no longer be in the UPLOADING directory.
cmd.exe doesn't have any faciliti... |
Can I backup Hyper-V replica Virtual Machines instead of main VMs? |
I backup my Hyper-V machines on my main server periodically. I have also turned on replication on different machine where I have also more storage space so my backup VM images go to this secondary machine.
Question is - when I backup replica will I have problems with restoration of VM if I would like to restore replic... |
Can I just backup my replica VMs and avoid unnecessary file transfer between servers?
You can backup replica VMs , but the result might be not as you expected .
Because :
"
-Only crash-consistent backup of a Replica VM is guaranteed.
-A robust retry mechanism needs to be configured in the backup product to deal w... |
TYPO3 RealURL does not work after Backup |
My RealURL path segments do not work anymore since a Backup.
I had TYPO3 7.6.10 on my Windows PC.
Then i installed TYPO3 7.6.11 on my new Mac.
I made a dump file of the database and copied all files of my TYPO3 Project.
After finishing, I could successfully login into the backend.
The only problem I have is, that my ... |
Problem solved:
Since OSX is hiding some sepcial files like the .htaccess, i had to make them visible so i could copy them.
Now everything is working as it shall!
|
How to skip "Access Denied" Folder when zip folder with command-line? |
I have a batch file to copy data between 2 Disk below:
"C:\Program Files (x86)\WinRAR\WinRAR.exe" a -ag E:\Backup C:\NeedBackup -ms
Maybe use Winrar or 7-zip but they cannot copy folder with Deny for all permission. I want to skip that folder and continue to copy other files.
Anyone help me???
|
Start WinRAR and click in menu Help on Help topics. On tab Contents open list item Command line mode. Read first the help page Command line syntax.
Next open sublist item Switches and click on item Alphabetic switches list. While reading the list of available switches for GUI version of WinRAR build the command line.
... |
If a table is dropped from pg_class accidentally then how to restore it from backup? |
I accidentally dropped a table from pg_class and I have the same table present in a different server inside a schema. How do I restore it?
I have tried this
psql -U {user-name} -d {desintation_db} -f {dumpfilename.sql}`
This is what i'm getting -
ERROR: type "food_ingredients" already exists`
HINT: A relation ha... |
That's what you get from messing with system catalogs.
The simple and correct answer is “restore from a backup”, but something tells me that that's not the answer you were looking for.
You could drop the type that belongs to the table, all indexes on the table, all constraints, toast tables and so on, but you'd probab... |
Delete files and folders not containing file ownd by a user |
Hi I want help with a rm command that can remove all files and folders not containing any files created by a specific user
so say i copy a "public" folder where lots of users store there files and this "user1" wants a copy of all his files and folders (not the empty folders)
|
0
Try to copy only the files of user1.
find publicdir -user user1` -exec cp {} somedir \;
When you have used cp -p you can still remove the files using
find user1dir ! -user user1 -exec rm {} \;
Share
Follow
... |
Unix backup script [duplicate] |
This question already has answers here:
How do I set a variable to the output of a command in Bash?
(16 answers)
Closed 7 years ago.
I am trying to learn scripting in Ubuntu.
I nee... |
0
As suggested by @Cyrus and using shellcheck, you keep the following error
To assign the output of a command, use var=$(cmd)
Then you get some errors to correct and here a working script
FILENAME=user_archive.tar
DESDIR=/home/user
FILES=$(find /shared -type d -user user)... |
Backup database in drive C cause an error |
I have a question. Why is it i cannot backup my database in drive c using vb.net?
This is the messagebox error:
My Stored Procedure that i will execute in vb.net
BACKUP DATABASE DatabaseNameTest TO DISK = '\\DSA02\Users\DSA_02\Source\Sample.BAK'
But if i try this to another drive like:
BACKUP DATABASE DatabaseNameTes... |
You must open the Visual Studio as Administrator to do this.
then, go to the Project propieties and click in view Windows settings. You should see somthing like this:
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
Your should change this statement to:
<requestedExecutionLevel level="requireAdministr... |
how to backup solrconfig file from running solr |
I have a single core solr server. when solr was running, in one collection solrconfig.xml and schema.xml files replaced by mistake.
now collection worked correctly and correctly response to request but valid file in conf folder is replaced by mistake files. surly if i reload collection, new bad files load and my colle... |
You can read the current running schema and config through the Solr schema API and Solr config API.
Pay attention: the results of this APIs is not the original schema.xml or solrconfig.xml files but from that you can rebuild the originals.
Again, pay also attention that Solr config API is available only in recent ver... |
Automatic download via ftp [duplicate] |
I need to connect to a host with username, password, implicit TLS encryption and port number to download files to a folder daily on windows server standard. Is there a third party command-line application that I could download, install and use for this (preferably free)? I'm not absolutely sure if this could be done w... |
17
You can use WinSCP, it supports both scripting and TLS/SSL.
See automating file transfers to FTP server.
A simple batch file to download files over an explicit TLS/SSL (note the ftpes://) with WinSCP looks like:
winscp.com /log=c:\path\ftp.log /command ^
"open ftpes:... |
Backup single folder from Azure VM |
I've set up a Windows Server 2012 R2 Azure virtual machine with SQL Server Web Edition.
I've set up a recovery services vault used to fully backup the Virtual Machine once a week, to be able to restore the installed software.
In SQL Server Management Studio, I've set up a Maintenance Plan that backs up the DB to a spe... |
Yes, it works without any issues on Azure Windows VM just the way it works on on-premises VM. If you want to backup a specific folder only, use the article you mentioned.
|
Backing up AWS to Dropbox |
Several weeks ago, I had the answer to my question: Install Dropbox for Linux command line, use Andrea Fabrizi's great Dropbox-Uploader script, and finish up with mover.io (which I used to move the files from the app folder, which is not shareable, to a shareable folder).
Sadly, as of the middle of August, mover.io is... |
To copy/sync files from S3 to a local folder (synced by Dropbox) use the AWS CLI.
AWS CLI: https://aws.amazon.com/cli/
AWS CLI S3 Copy Folder: http://docs.aws.amazon.com/cli/latest/reference/s3/cp.html
AWS CLI S3 Sync Folder: http://docs.aws.amazon.com/cli/latest/reference/s3/sync.html
If you just need to backup S3 ... |
Error after moving MySQL DB to another computer (both Ubuntu, 14.04 and 16.04) |
I'm trying to move a MySQL DB from version 14.14 Distrib 5.5.50 to another machine with 14.14 Distrib 5.7.13 (both machines are Ubuntu, 14.04 and 16.04 respectively)-
I've always managed to do it with these commands:
1) Backing up on origin-computer:
Users:
$ MYSQL_CONN="-uroot -ppassword"
$ mysql ${MYSQL_CONN} --skip... |
0
Just in case someone else had the same problem:
Using the mysqldump command instead of the one I posted in my question worked fine:
$ mysqldump -uroot -ppass --all-databases > databases.sql
However, because of MySQL versions on both computers I also had to go through thi... |
How do I script making a backup copy of a spreadsheet and its values not its formulas to an archive folder? |
I am new to google app scripts and I have been looking for a way to back up a sheet. I am currently using.
DriveApp.getFileById("146qFnrQoNPBcDhV6QB0bscHFp8TquXJoAC1qg_esy4E").makeCopy("DailyArchive" + Date() + " backup");
The problem is its making a daily backup and those backups are updating just like the origin... |
0
Here something quite simple for one sheet (you can adapt it for several sheets)
var source = SpreadsheetApp.getActiveSpreadsheet();
var data = source.getActiveSheet().getDataRange();
var cible = SpreadsheetApp.create(source.getName()+" backup");
cible.getActiveShe... |
Batch script for backup hosts file |
I'm writing a batch script which does the backup.
It needs to make a copy of the "hosts" file with the following condition:
"if system "hosts" file contains any uncommented entries, then copy it".
Any ideas?
|
As a commented line begin with this "#" string on your hosts file, so ,
you should use Find /V "#" to display all lines NOT containing the specified string "#"
For more help about Find /?
You can do something like this :
@echo off
Rem Batch script to copy uncommented entries of your hosts file
set "BackupHostsFile=... |
Cpanel file permissions change automatically after system backup |
I've configured auto legacy backup.
Every time it does a system backup, all the 777 permissions will change to something like 750 and it causes 500 server error.
Can anyone tell me how to stop this from happening. It resets the permissions every time I do a backup.
|
0
Are you getting this issues for your all account ?
I think it's not due to backup. Might be there is other cron which is changing the account files permission from 777 to 755.
You can test this by disabling backup cron for one day and check account's file permission.
... |
Clone(backup) an Android App with all its data on a real device for better debugging |
I've created an android app which tracks user experiences(for example mood) through days( So it uses databases) and I've installed it on my (real) phone. To truly assess my application I work with the application on my real phoine for some days to see how it works.
The problem is about upgrades : when I make changes t... |
0
The only defining thing about an app in a device is the appId. So you can have two instances of the same app as long as they have different applicationId. You can simply change the applicationId property in build.gradle file to achieve this:
android {
...
defaul... |
Users are unable to login to SQL Server dev database |
I have refreshed the development database manually from production database backup. After refreshing the database, the Dev team is unable to login and access to that database. Please let me know your thoughts to troubleshoot systematically to resolve this issue.
Thanks and regards
|
0
Unable to login coz:
1. users are don't have a permission to access your database.
2. Check Sql service if running on you system Services.
3. if on server or another pc, Check server ip if you'd be able to ping it.(Network Connectivity).
Hope it helps.
Share
... |
Backup and restore LXC container with LAMP stack - MySQL cannot start in container |
I've followed these simple instructions in order to backup and restore an LXC container:
https://stackoverflow.com/a/34194341
The backup and restore procedure go well. I've made triple sure I use the --numeric-owner flag when tar and untar'ing, and the container starts up fine. However, MySQL in the container barfs al... |
For anyone who might bump into this: Typical n00b error on my part.
I had forgotten to update the rootfs path in my config file for the container.
As I was doing a restore test of an existing container, I had untar'ed my backup to another directory in /var/lib/lxc - e.g. /var/lib/lxc/restored - but hadn't updated the... |
MongoDB - making db.fsyncUnlock(); work |
I have a shell script that backs up MongoDB database.
I have to lock the database before backing it up.
mongo --eval "db.fsyncLock();" works fine, but when I run mongo --eval "db.fsyncUnlock();" it just waits and does nothing.
How can I make unlocking work?
edit: I know I have to keep the connection open, but how?
|
0
Executing MongoDB commands from Bash didn't really work, because you have to keep the connection open if you want to unlock the database again.
But when executing commands from Bash it connects to the database, executes the command and disconnects.
I ended up making a Jav... |
navigating directories and sub-directories and moving the files using shell |
Directory structure
MyDirectory
-data/
-DATA-TT_20160714_soe_test_testbill_52940_1.lst
-output/
-DATA-TT_20160714_soe_test_testbill_52940_1.pdf
-Backup/
enter code here
#!/bin/bash
for i in $( ls ); do
echo $i
#cd $i
#cd $i/data/
echo $i... |
0
Have to leave for a meeting. I'll leave you the script I've been working on to help you:
#!/bin/sh
# in your case filename would be the variable used in the for loop
filename=$(find DATA-TT*)
# Part gets the date from the filename
part=$(echo $filenam... |
How to get backup of the file replacing that file using command |
While replacing the folder, the file which has been changed should get backup, then it should get replace.Is any script or command for this work in linux.
|
0
You can use rsync for this case. Specify an --compare-dest so files which are different in the locations gets copied there.
First try an dry run to check your config:
rsync -aHxv --progress --dry-run --compare-dest=backup-change-files/ folder1/ folder2/
If all is good ru... |
Real time backup for a modifying directory (e.g. HTTP server) |
Say I am running an HTTP server with data at /var/www. I want to backup /var/www to /root/backup/.tmp/var/www daily automatically.
Mostly the backup is using rsync technique. The problem is that since the HTTP server is running, there could be file modification during an rsync backup process.
For an HTTP server a cert... |
0
As its name means, rsync command is syncing files between remote and local. So from what you are describing , you want to backup files locally. So I think a crontab job with a shell script will satisfy your demands. A tar command may last sometime, but you can split your ... |
cassandra snapshot restore on different cluster on missing schema |
I have snapshot backup from cassandra cluster 1, and need to restore the same on cassandra cluster 2. Is it possible to do so, without having schema?
|
0
Cassandra table-schema details will be stored as meta data in system keyspaces.
Cassandra snapshot just creates a copy of sstables for the requested keyspace/column_familes. So to restore the snapshot, you need to explicitly create the schema in destination cluster.
... |
How to extract files from an unrooted android (GT-N7000) which is stuck in boot logo? |
I have a Samsung Galaxy note (1) which is stuck in boot logo when I turn it on. I can access Android recovery mode, and have tried wiping cache data and do a normal boot, but it didn't work. I'm trying to avoid factory setting reset before getting hands on data inside and saving them. I've tried to backup through adb ... |
Do "adb pull /data" hoepfully that should work, if not, report it here :).
|
Querying for removable devices in JavaScript |
I'm currently creating a small backup utility in JavaScript (running locally from a .js file, not in a browser) than continuously scans for removable devices and makes backups of them. It's basically finished, but I'm unsure how to scan for removable devices.
How do I query for removable devices in a for-loop?
|
0
Unless you are talking about NodeJS, I do not think that this is possible. Javascript is a client-side language, not a server-side language.
Take a look at NodeJS and this library: https://github.com/nonolith/node-usb. That should put you on the right track.
Shar... |
how to backup oracle databasae when operating system is down |
i am researching on how to backup oracle database when my operating system is down
if you give me some useful comments or introduce me some useful sources and books or maybe video tutorial
i'll be so thankful
|
0
Assuming the database on the downed server shut down cleanly, and you have access to the disk containing all the datafiles, yes you can do this in the same way that we used to clone databases using a copy datafiles and re-create the control file.
Have you got a backup of... |
What's the danger of backing up a database while being used? |
I need to backup my phpBB forum's mySQL database. Should the forum first be disabled so that no new entries are made in the database? Or can I leave the forum live? And in that case, is the worst that can happen that the database would miss some of the newer entries (no big deal)? Or could I end up with a corrupt data... |
0
Use the command
mysqldump -u user -p password --database tables --single-transection | gzip > database.tables.sql.gz
Share
Follow
answered Jul 19, 2016 at 6:40
Badal DudyBadal Dudy
122 br... |
I am trying to backup a database and am getting MSG 3013 |
I have tried to backup in Microsoft SSMS with the GUI backup task, and it fails after a few seconds, so then I tried running this command:
BACKUP DATABASE databasename TO DISK = 'd:\databasename_full.Bak' WITH FORMAT, MEDIANAME = 'd_datbasenamebackup', NAME = 'Full Backup of databasename';
And get a very generic err... |
0
There is a Microsoft support page for this Error Message 3013.
It is apparently caused when a filemark in your backup device could not be read. Resolution steps below:
To allow SQL Server to perform new backups to the backup device, you
must manually delete or erase t... |
Is there a way to split one long insert statement into 2 in SQL backup file? |
Currently I have a backup up SQL file of a MySQL database where the database is already dead. I want to rebuild the MySQL database again but when I import the SQL file, it says Got a packet bigger than 'max_allowed_packet' bytes, which I found the error is caused by the fact that the insert statement is too long.
I do... |
0
You can open that large file using Large Text File Reader , split the file then manually adjust the last part of first file and first part of the 2nd file.
Share
Follow
answered Jul 11, 2016 at 4... |
MS Azure backup failing to backup new versions of files |
We are using MS Azure Backup to backup our files from a specific folder on a local disk to an Azure backup service however it is not updating the cloud version of some files when they have been updated locally.
The errlog has recorded a number of the following errors
Failed: Hr: = [0x80070005] : CreateFile failed \?\V... |
0
It seems like there is a permission issue to the files and folders which you are tying to backup to Azure. Please check if the folders or the drive you are backing up is formatted in NTFS.
Thanks
Hope this help.
Share
Follow
... |
Restoring Firebird 2.5 with fbsvcmgr |
I'm configuring live backup and restore scripts to have "replicated" firebird dbs on main and reserve servers.
Backup doing fine:
"C:\Program Files\Firebird\Firebird_2_5\bin\nbackup" -B 0 "D:\testdb\LABORATORY_DB.FDB" D:\testdb\lab_FULL.fbk -user SYSDBA -pass masterkey -D OFF
Copying file to the remote server as well... |
You can't restore over an existing database using nbackup. You either need to
delete the old database first and then restore,
or restore under a different name, delete the old database, and rename the new database to its final name.
See also the nbackup documentation, chapter Making and restoring backups:
If the sp... |
How to Backup Database with Vb.Net without SSMS? |
Currently I used to back up my files in the way that, when user click on Backup the program will ask,
To Backup you must close your current session. This application will be closed now. Do you want to continue?
So the application will be closed and a new application will be launch in which if you click Backup it ... |
I tend to see a performance boost when using SqlCommands to backup databases.
Sub Backup()
Dim con As New SqlClient.SqlConnection("data source=DATASOURCE;initial catalog=NAME OF DATABASE;Integrated Security=True")
Dim cmd As New SqlCommand()
Try ... |
Azure webapp backup fails |
I have a webapp scaled at S3 Standard with 50GB storage. Trying to setup a backup and ran a manual backup but failed saying "The website + database size exceeds the 10 GB limit for backups. Your content size is 15.9 GB." Any idea?
|
0
Take a look at this link.
The maximum backup size is 10gb.
You can scale up to premium but the max backup size will stay the same. Half way through the article they describe how to exclude files/folders from the backup (if that helps).
Share
... |
Microsoft Azure Backup Server |
I'm going to trial MABS. I've set-up azure Resource Group and this is registered in MABS.
However, when trying to set-up a local storage group, I have no available disks to add? I'm obviously missing something really simple...but what?
|
0
Have you setup the Azure backup vault?
I found this guide pretty useful. It details each step to get it all set up.
https://azure.microsoft.com/en-us/documentation/articles/backup-azure-microsoft-azure-backup/
Share
Follow
... |
How to get all photos(>200) from device and send to server for Backup |
I need some help to get all photos from local storage and send those to server for Backup purpose. I am able to get those by using AssetsLibrary framework, but app got crash due to RAM memory usage. Is there any way to upload all my images to server and later based on time(Daily backup) I need to send only which are n... |
This require a well designing of 3 tier architecture of your app.
Will give you a short info on how you can achieve it,
But it requires an R&D and effort if you are working alone.
Step 1. Create a column in your local storage (sqlite or coreData) which will represent timeStamp.
Step 2. Create Helper class in order to ... |
SQL Server express backup |
Can I use a SQL Server Express database backup file to restore that database on a full fledged version of SQL Server. I am particularly looking at SQL Server 2008 Express to SQL Server 2012 Enterprise. And if so how?
|
Lets be clear about one thing first, SQL Server Express , Standard and Enterprise are the Editions.
SQL Server 2005 , 2008, 2008 R2 and 2012 are SQL Server versions.
Now coming to your question whether you can restore a database from 2008 Express to 2012 Enterprise?
The Simple Answer would be YES you can.
A couple ... |
Flashback, backup, checkpoint, redo logs |
I was searching over the internet to find good explanations of flashback, backup and checkpoint, but I find it hard to understand the difference.
Both flashback and backup can revert database to the previous state. Flashback can fix logical failures, but not physical failures.
Redo logs - store all changes made to the... |
0
Search for Oracle DBA concepts on the internet to find many helpful documents.
For example, here is a link to a .pdf that does a good job of explaing Oracle concepts:
Oracle Database Concepts
NOTE: links don't always stay valid, of course, so go ahead and download the .pd... |
Azure Backup fails after installing Kaspersky Total Security |
Since installing Kaspersky Total Security two days ago, my Azure backups keep failing. This is the process: Taking snapshot of volumes; Preparing storage; Estimating size of backup items; job failed. The error message for each volume is 'unable to find changes in a file. This could be due to various reasons (0x07EF8).... |
0
Try to exclude all VHD files and adding cbengine.exe to the Trusted applications list, see this article:
http://www.cantrell.co/blog/2016/3/21/microsoft-azure-backup-feat-kaspersky
Share
Follow
... |
rclone "--files-from" scans a lot of other files? |
I'm trying to use the "--files-from" options to limit scanning disk access.
I provide a list of 10 files, but with the verbose option I see that rclone is scanning thousands of files, is it the normal behavior?
Thanks in advance
greg
rclone v1.25 - debian 8.2 kernel 2.6.32-39 i686
target is hubic
|
0
The author gave an answer here:
https://github.com/ncw/rclone/issues/498
Seems to be related to the server software.
Share
Follow
answered Oct 19, 2016 at 13:55
greggreg
71711 gold badge99... |
Mongodb restore some collections |
I have a mongoDB remote and I want to restore only some collections to the remote mongodb. Any suggestions how to do that.
mongorestore -d DBNAME -c categories DBNAMENEW/heroku_mb4p0d3s/categories.bson
The above command works because it is in local. But same command doesnt work for remote
'mongorestore -d DBNAME -c ... |
0
Try this:
mongorestore --db DBNAME --collection categories --host host.mlab.com --port 1111 --username username --password password categories.bson
It will restore specific .bson to that collection
Share
Follow
... |
MYSQL - Database backup every transaction |
I'm doing a project where users upload money on the system, after the database queries will increase and decrease this initial amount.
I have to do a backup that allows me, in case the server is broken, to reconstruct the identical situation before the break without losing EVEN ONE TRANSACTION.
Considering that the da... |
0
A daily snapshot (using mysqldump) on a remote server plus one or many slaves in different geographical location is enough:
If you loose the master: the slave have up-to-date data
If you loose some data: The master and the slave store queries in replication binary log
If... |
File History in Windows 8.1 |
I know this question has been apparently asked here and here
But mine is different.
Do file histories include only extensions such as pdf, jpg, mp3, doc
etc
File history for moved files is available not just deleted ones?
At preset I am accessing C:\Users\Myname\AppData\Roaming\Microsoft\Windows\Recent folder
But he... |
0
I found this when I was trying to help somebody else find a file they recently accessed
In Windows 8.1 there is something called "Recent Places" under Favorites in File Explorer. This was in the same favorite list where I had kept Recent Items and still did not notice it ... |
Restore Azure Service Fabric backup |
I have been using the code from https://github.com/Azure-Samples/service-fabric-dotnet-web-reference-app to create backups for our current project, but I am unable to invoke the data loss method using power shell script to trigger the restore.
Does anyone have experience with this or have another method for creating ... |
0
What is the issue you are running in to?
The documentation for specific CmdLet is here.
You will need the Azure Powershell Cmdlets.
Guidance on how to install the Azure Cmdlets is here.
You will also need to login to Azure and make sure you are pointed at the right t... |
BATCH - Create a backup, then after n created, delete old backups |
Premise:
Script to run every n seconds which will create a backup of a defined file to a defined location.
After n backups have been created, clean(delete) out dated ones.
Problem:
I have managed to get working a version of this to backup a folder and delete older verisons, but when I attempt this with a specific file... |
0
To make a backup, the easy answer is to just use xcopy. To delete old files/directories, use the below command
forfiles -p "C:\what\ever" -s -m *.* -d <number of days> -c "cmd /c del @path"
Share
Follow
... |
Performing Hotbackups of Gogs |
This question is related to this question which targets only the gogs-repositories component of gogs / git:
Hotback of Git Server Using RSync?
Gogs also performs 'health checks' on the git repositories. What do these health checks do? Could they mutate the state of the repositories? If so could that cause corruptio... |
Ultimately I wanted to be able to perform efficient Cron based nightly backups while minimizing the chance of data corruption and being able to move the backup of site with encryption. I also needed a time machine capability in the event that for some reason something something did get corrupted (Even though going ba... |
How to restore specific datebase from total SQL backup? |
I'm moving a website and I backed up all of my databases from the old host into one total sql backup file.
I need to restore a specific database inside this file to my new host that is used for the wordpress site.
How would I achieve this?
cheers
|
0
Open SQL File using a Text editor then search for the specific database, in my case there was a comment declaring where it began. Then copy all the tables into a seperate file with extension .sql
Share
Follow
... |
Restoring Database in local node Cassandra |
Regards community,
I have the files (folders in a usb) from a cassandra database such as: /var/lib/cassandra/data/keyspace_name/table_name1/table_name2, and I want to know the way/process to restore in my local cassandra node.
Thank you
|
0
Its pretty straight forward. Use cqlsh to log onto your local Cassandra node, create the same schema (describe schema from node your copying) and copy the data from your table_name1 dir to:
data_dir/keyspace_name/table_name1/*
on local system. for each table.
Sha... |
could not open tablespace directory "pg_tblspc/132528327/PG_9.1_201105231" while cold backup restoration which is having two different tablespace |
I'am facing an problem while restoring and recovering of cold backup with WALS. Actually my database storage as two tablespace. I have created one seperate tablespace located in another disk which takes data from it ie., tables which are in other tablespace not default tablespace. I'am getting error while restoring th... |
0
WAL recovery assumes you have the same starting out point for your data directory in including tables, tablespaces, etc. If you have lost a tablespace before applying your wal segments, you need to see what you can do to get the right database backup. If this was missed... |
How can I rollback to earlier versions of a Visual Studio project while developing locally? |
In the process of building an ASP.NET Core MVC rc1 application with SQL databases, c#, bootstrap, angular, css, javascript, javascript dependencies, package managers like bower, or any visual studio project for that matter, I sometimes break the application and would like to roll it back to a previous state when the a... |
If anyone else has this question: I found Git to be a great way to achieve this purpose. Unlike many version control systems, it keeps the change repository on the local machine and only places it on a server when the project is merged. As of 2015, it integrates well with Visual Studio and TFS. Here is a video from th... |
How to set up rotational full and incremental innobackupex? |
Innobackupex provides both full and incremental backup of mysql servers.
But i am looking for a script that automate the process of daily full backup and incremental in certain hours.
The script will remove old backup files and mail the status etc.
Any idea or readymade script ?
Thanks
|
0
Nothing ready-made that I am aware of. You should just code this yourself in bash and call the script from cron. Use find . -type d -mtime +5 -maxdepth 1 -exec rm -r {} \; to remove backups older than 5 days. Incremental backups using innobackupex are based on a full back... |
How to take Back up of LocalDB C# my database file name is MyDatabase.mdf |
string dbpath= System.Windows.Forms.Application.StartupPath;
string dbp = dbpath + "\\MyDatabase.Mdf";
SqlCommand cmd = new SqlCommand("backup database ['"+dbp+"'] to disk ='d:\\svBackUp1.bak' with init,stats=10",con);
cmd.ExecuteNonQuery();
|
0
Error was that "The identifier start with---- is too long. Maximum length is 128"
so I Make the "MyDatabase.mdf" with small Name "MyDb.mdf".So the identifier becomes less than 128.
My code is
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings[... |
Force eth1 for FTP connection |
I have this code for backups:
#FTP folder create
ftp -n -v $ftp_server $ftp_port << EOT
binary
user $user $heslo
mkdir $datum
cd $datum
mkdir $cas
EOT
Server is connected to VPN with one adapter and to local network with secondary adpater eth1. I need to backup files to local network but when I set local IP as $f... |
I already solved it wih CURL upload:
curl --interface eth2 --ftp-create-dirs -T file.zip ftp://$user:$password@$ftp_server:$ftp_port/$date/$time/
But thanks for your answer ;)
Simon
|
Anyone implemented Android Backup Service with android:backupAgent? |
In Android 6 it looks like Google has finally got its automatic backup service to include pretty much all app data in it's backups to a nominated Google account as long as android:targetSdkVersion="23".
However in versions of Android prior to 6, as I understand it, you need to implement a custom BackupAgent in order t... |
0
Looking at the docs it seems all of this is configured via your AndroidManifest.xml (configurable via tiapp.xml in Titanium) and res/xml files (stored under app/platform/android in Alloy 1.8+). So you should be able to use this with Appcelerator Titanium.
Share
... |
Run before & after scrips with .Net Web Deploy |
We have an ASP.Net 4.5.2 WebForms application in Visual Studio 2015. We want to create a Web Deploy package that:
Backs up certain folders & files on the target system/IIS server
Deletes the old files
Copies the new files
Copies the backup up files back
Possibly sets some folder file permissions
Is WebDeploy the rig... |
0
Yes, you can use the preSync and postSync MSDeploy operation settings:
msdeploy -verb:sync -preSync:runCommand="net stop w3svc" -source:webserver60 -dest:auto,computername=serverA -verbose -postSync:runCommand="net start w3svc"
https://technet.microsoft.com/en-us/library... |
Restore iOS iCloud Backup via iTunes |
I have a question concerning iOS backup-restore. Is there a way to restore an existing iCloud Backup, that I made, via iTunes and not directly over Wifi?
And vice versa. Can I make an backup via iTunes and save it as an iCloud backup or can iTunes only store backups locally?
Thanks in advance!
|
0
-regard you first question you can restore previous backup from iTunes ,there is not need of wifi
-Step 1 - connect your phone with iTunes choose ->you's iphone
-Step 2 - choose backup --> click on Restore Backup
- step 3 ->
Find My iPhone must be turned off befo... |
Restore one table only in SQL server |
Problem:
I need to restore only one table from a backup. How should I do it in a course of action?
Thanks for you help!
|
0
There are 3rd party tools that can assist in what you are asking for:
APEX SQL Recover
Idera SQL Virtual DB
They may require registration but offer a fully functional trial to get the job done.
Share
Follow
... |
How to transfer large database dump VERY FAST from remote aws machine to local machine |
I am using aws amazon machine for my web application. currently my database dump size is 15 GB. I am trying to download database dump with scp command to my local machine. to download 15 GB database dump it is taking around 1 hour.
i want to know the fastest way to download the database dump from remote machine to loc... |
0
First, ZIP it
Second, you can try to upload it to S3 and then either download it directly from there, or create a CloudFront distribution for that S3 bucket and download it through CloudFront.
I'm not sure that all in all it would be faster (because it would also take tim... |
what includes the cPanel website backup? |
I own a web app and I need to download the latest backup of it. I don't need the media like images, audios (lots of it), videos, etc. I only need the code, and specifically, only the code that was built by us, don't need the server config files and other low-level stuff.
As you know I have several options: Full Back... |
0
Every system I know that stores large numbers of big files(Media) stores them externally to the database. So you will have reference of actual media file.
Also, if you're going to have thousands of media files, don't store them all in one giant directory - that's a perfor... |
backup and restore files from .git |
I have a project use git on local ,
if I want to back up to another hard disk, should I have to copy all files and .git folder.
I tried git clone /projectpath/ /backuppath/ but that still create a copy folder with the source code files.
Can I just copy the .git folder and there is a way recover all files from it save ... |
0
This depends what you want to backup.
If you want commit history, then copy .git.
If you need only newest status of source code, 'git achieve' is ok.
Before doing all these, be sure all your modifications have been committed.
Share
Foll... |
Powershell - delete old folders but not old files |
I have the following code to keep on top of old folders which I no longer want to keep
Get-ChildItem -Path $path -Recurse -Force -EA SilentlyContinue|
Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } |
Remove-Item -Force -EA SilentlyContinue
Get-ChildItem -Path $path -Recurse ... |
Well look at this bit:
Get-ChildItem -Path $path -Recurse -Force -EA SilentlyContinue|
Where-Object { !$_.PSIsContainer -and $_.CreationTime -ge $limit } |
Remove-Item -Force -EA SilentlyContinue
It's basically saying "everything not a folder and older than specified is removed". So your first step is to remov... |
sqlite backup memory database c++ |
i want to have some sqlite database running in memory.
I can load a file based database into a memory database,
i can do a backup of file based database but what fails is
backing up a memory database to a file.
I checked both samples, exposed here:
https://www.sqlite.org/backup.html
I mean, i used these examples.
The ... |
0
The in-memory database has no pages because it is empty.
An attached database stays separate, i.e., its data is not merged into the backup.
To backup an attached DB, you must give its name (and not "main") to sqlite3_backup_init().
Share
... |
Use FileSystemWatcher to backup files |
I want to use FileSystemWatcher to immediately push newly generated files to the cloud.
My concern is that if the app which is doing the watching is shut down for some time then it will miss some files and they'll never make it to the back-up.
Is there anyway around this? Or should I use a message queue?
|
You could have one process with two FileSystemWatchers.
1. The first watches an incoming file location, and moves (not copies) files from the incoming location to an outgoing location.
2. The second watches the outgoing location and pushes files to the cloud.
In addition to the FileSystemWatchers, the process scans ... |
backup database using gem "backup" in rails |
I had a problem to backup database by using backup gem in rails.
this is my daily_db_backup.rb
Model.new(:daily_db_backup, 'Description for daily_db_backup') do
database SQLite do |db|
db.path = "home/ec2-user/project/db/production.sqlite3"
db.sqlitedump_utility = "/usr/bin/sqlite3"
end
... |
0
The error logs said unable to open database
"home/ec2-user/project/db/production.sqlite3": unable to open database file
Please check your production.sqlite3 path.
I think it should be "/home/ec2-user..."
Share
Follow
... |
second ms sql server as backup |
As a small medical ngo we would like to have a copy of our sql server (ms sql 2010 express) on a laptop.
So if the power goes down we can at least read (no updating) the data.
Because it's unpredictable when the power goes down and we need the latest available data, the backup sql-db should continually be updated (l... |
Without moving to a new SQL Server version (Express supports none of the technology you need here); you could schedule regular/frequent backups with Windows Task Scheduler to push backups onto a shared drive on the laptop. Then either manually restore (on power loss), or schedule regular restore jobs on the laptop us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.