Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
MYSQL/MardiaDB 'recycle bin' |
I'm using MardiaDB and i'm wondering if there is a way how to install a 'recycle bin' on my server where if someone deleted a table or anything it gets shifted to the recycle bin and restoring it is easy.
Not talking about mounting things to restore it and all that stuff but litterly a 'save place' where it gets store... |
No such feature exists. http://bugs.mysql.com takes "feature requests".
Such a feature would necessarily involve MySQL; it cannot be done entirely in the OS's filesystem. This is because a running mysql caches information in RAM that the FS does not know about. And because the information about a table/db/proc/trig... |
Laravel Backup to Cloud programming |
I currently own an application developed in Laravel 5.5 deployed in a shared hosting service.
I need to implement an automated backup system with these features:
Run automatically (cron) every day (ideally cron laravel)
Include (laravel files, uploaded files (storage / app) and database)
Copy the backup to the cloud ... |
Have you searched for any package for backup... here is one i am currenlty using and is working fine for me for local backups and has scheduling feature as well, you can explore more...
https://github.com/spatie/laravel-backup
|
Backup Mysql database with shell script - bind-address set to localhost |
I'm using a shell script to backup my databases from a remote server to my Synology NAS. The script is working fine but when I set the Bind Address in de mysql config @ the remote server to 'localhost', the script isn't working anymore. The script needs a SSH verification.
The question: how can I create the SSH conne... |
You need to send the command by ssh. The modified version of your script should do the task.
#! /bin/bash
TIMESTAMP=$(date +"%Y-%m-%d")
PAST=$(date +"%Y-%m-%d" -d "30 days ago")
BACKUP_DIR="/volume1/dir/dir2/$TIMESTAMP"
PAST_DIR="/volume1/dir/di2/$PAST"
HOST="myip"
MYSQL_USER="username"
MYSQL=/usr/bin/mysql
MYSQL_PAS... |
AWS Storage Volume Gateway - Cached volumes |
AWS documentation clearly mentions Gateway Stored Volumes- "This data is asynchronously backed up to S3 in the form of Amazon EBS snapshots."
But there is no mention how the Storage Volume Gateway Cached volumes data is replicated - Aync/Async snapshots ?
The documentation reads
"Cached volumes let you use Amazon Sim... |
1
In Storage Volume Gateway Cached mode, data is written to S3 and cached locally for frequently accessed files.
Cached volumes let you use Amazon Simple Storage Service (Amazon S3) as your primary data storage while retaining frequently accessed data locally in your stor... |
rsync: Exclude specific filetype in only one directory |
I backup my data with rsync and would like to exclude a specific filetype in only one directory (and its subdirectories). For example I have:
$ ls Source/
Folder1/a.tar
Folder1/b.dat
Folder2/c.tar
Folder2/d.dat
Folder2/Subfolder3/e.tar
Folder2/Subfolder3/f.dat
Folder2/Subfolder3/g.pdf
Now I would like to sync all fil... |
rsync manual says
INCLUDE/EXCLUDE PATTERN RULES
...
o use ’**’ to match anything, including slashes.
so you can do
rsync -a --exclude='Folder2/**.tar' Source/ Target
Note this is different from bash's globstar option where you would use Folder/**/*.tar.
|
Backup-friendly Docker volumes |
I want to take a holistic approach backing up multiple machines running multiple Docker containers. Some might run, for example, Postgres databases. I want to back up this system, without having to have specific backup commands for different types of volumes.
It is fine to have a custom external script that sends e.g.... |
2
I'm skeptical that there is a custom solution, holistic, multi machine, multi container, application/container agnostic approach. From my point of view there is a lot of orchestration activities necessary in the first place. And I wonder if you wouldn't use something like... |
Is it possible to backup an AWS EC2 "instance-store" type instance into S3? |
I have a running instance in EC2. Its "Root Device Type" is Instance-store (not EBS).
And I'd like to back it up manually into S3.
Is it possible?
Thank you!
|
1
You could use the dd command and stream the output to s3
From within the instance:
$ dd if=/dev/xvda bs=1M status=progress | aws s3 cp - s3://your-bucket-name/root_device.img
substitute the /dev/xvda with the file system you want to back up
Share
Improve this... |
How to configure vim to save extra copies |
Is there a way to configure vim so that, instead of creating a temporary .swp, every time a save is made, suppose that I'm editing the file name_of_the_file.txt, the program automatically creates a file containing the previous save, named with the data and time of the saving, e.g. name_of_the_file-05-17-2017-11:20.txt... |
This script will do the trick. You could name it vimBackup or anything, do not use existing commands name. Then you could copy the command somewhere into the paths in $PATH variable or append $PATH variable with a custom script folder containing this script. Then you able to use it without using the full path to execu... |
recover backup of firebird fail |
I previously asked how to make a backup of a Firebird database in
I need to backup or clone one remote firebird database or export it to Sql server
Now the backup is complete, but when I try to restore it to Firebird on my computer, I get an error.
I use this command:
gbak -r -p 4096 -o e:\mybackup.fbk localhost:e:\b... |
user and pas[sword] parameters should be before the path to files
gbak -r -p 4096 -o -user sysdba -pas masterkey e:\mybackup.fbk localhost:e:\bddados.fdb
gbak documentation
|
I need to backup or clone one remote firebird database or export it to Sql server |
I have a legacy system using a remote Firebird 2.5 database. I need to clone this database for backup. I do not have access to file system of the server, I can only access it with connection string.
How can I do this?
|
You can use GBAKcommand to backup remote database to local hard disk.
Here's the GBAK command:
gbak -b -v 192.168.0.20:/dbases/mydb.fdb C:\mybackup.fbk -user
SYSDBA -pass 123456
|
Backup options or snapshots of Google Cloud Storage data? |
I pulled data into Google BigQuery tables and also generate some new datasets based on these data daily.
These original data and generated datesets, I would save in Google Cloud Storage for two purposes,
These are the backup copy of my Google BigQuery data.
Also some of these datasets saved in Google Cloud Storage wo... |
1
You can backup your cloud data to some local storage, CloudBerry has option "Cloud to Local".
Share
Improve this answer
Follow
answered Apr 19, 2017 at 12:39
Anton AEAnton AE
12622 bro... |
How to backup XAMPP content? I need to run it on another laptop soon |
I have one Joomla site and one WordPress site in it. My laptop hard drive is failing. I have zipped my htdocs folder but that's about it
* excellent answers, just exported my database right before a crash. *
Thank you so much
|
According to your simple expression, I could only answer below.
If you want to run the exactly the same website in another computer. you will need to backup all the related items including the database and plugins installed and then restore them in your new computer.
|
Authenticate Mongodb and Auto Backup of Database on Server Using Cron Job |
How to secure MongoDB database with authentication?
How automated backup of Mongodb database using Node.js cron job and store on server?
|
Please follow the steps provided on below links.
Secure Your Mongodb Database
Backup of your Mongodb Database on server
|
How to create mysql database backup using one file php script (system() is disabled) |
How to create a mysql database backup using one file php script?
system() is disabled.
I have no cpanel account details, from site admin panel I just can read and write php files.
|
I hope it help you
<?php
$DBUSER="";
$DBPASSWD="";
$DATABASE="";
$filename = "backup-" . date("d-m-Y") . ".sql.gz";
$mime = "application/x-gzip";
header( "Content-Type: " . $mime );
header( 'Content-Disposition: attachment; filename="' . $filename . '"' );
$cmd = "mysqldump -u $DBUSER --password=$DBPASSWD $DATABASE ... |
How to install a bash function containing variables using a bash script? [duplicate] |
This question already has answers here:
How to avoid heredoc expanding variables? [duplicate]
(2 answers)
Closed 7 years ago.
I am attempting to create a bash script that will allo... |
A here document is treated as a double-quoted string, so parameter expansions and command substitutions are evaluated before the command reads from them. Quote any part of the delimiter to have the here document treated as a single-quoted string.
cat <<\EOT >> ~/.bashrc
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
How to prevent long-running backup job from being killed |
How do you prevent a long-running memory-intensive tar-based backup script from getting killed?
I have a cron job that runs daily a command like:
tar --create --verbose --preserve-permissions --gzip --file "{backup_fn}" {excludes} / 2> /var/log/backup.log
It writes to an external USB drive. Normally the file generate... |
2
If you are certain about the fact that - the gets killed due to consuming too much memory, then you can try increasing the swappiness value in /proc/sys/vm/swappiness. By increasing swappiness you might able to get away from this scenario. You can also try tuning oom_kill... |
How to migrate an Azure 'Backup vault classis" to 'Recovery Services vault'? |
I've setup an Azure Backup vault some time ago and made backups of my systems to it. The backup vault is of type 'Backup vault (classic)'
Now there is a new kind of Azure Backup vault that enables alert among other options. I need to make use of that options.
How can I migrate the classic vault (which contains a lot o... |
Unfournately, it's not possible to do that.
Can I migrate a Backup vault to a Recovery Services vault?
Unfortunately no, at this time you can't migrate the contents of a
Backup vault to a Recovery Services vault. We are working on adding
this functionality, but it is not currently available.
https://learn.micros... |
How can I backup mysql database with bareos? |
What plugin I should use for that?
Can you show me your config from bareos-fd.conf and FileSet section from bareos-dir.conf
Thank you!
|
It depends, if it's just a small DB, the bpipe plugin is probably the easiest to get started. There's also the Bareos mysql-python plugin, which is more flexible than bpipe, but like bpipe it makes use of mysqldump. So both of them only do full backups. The third option is the newer Bareos MySQL / MariaDB Percona xtra... |
What does this Ruby code mean? |
I am trying to make a backup restore of gitlab and it kind of works but th command line always says that the restore of the repositories failed. I think I found the conditional statement in the code which responsible for the [failed] statement. Has someone a clue what this is doing or know a direction in which I shoul... |
Kernel.system calls the given shell command. When it fails it return a false value.
In your case it means git clone --bare #{path_to_bundle} #{project.repository.path_to_repo} > /dev/null 2>&1 fails.
You can check why it fails when you execute this command on the command line by hand without > /dev/null 2>&1 .
To get... |
Is there any continuously backup method for elasticsearch? |
I use snapshot method to backup my elasticsearch nodes, it works as follow:
PUT /_snapshot/my_backup/snapshot_1?wait_for_completion=true
but after new data added to elasticsearch, it's not contained in snapshot, so we need to run it periodically, but there will be a data loss if something goes wrong between 2 snapshot... |
If you want to have a "backup" of some sort that is in-sync with the data in the cluster, consider building two clusters. Whatever indexing, updating, deleting operations the "main" cluster has, you need to mirror those operations on the "backup" cluster as well. There is no other way.
|
AWS IAM Policy to allow user access to specific S3 bucket for backup |
I have a NAS which supports backup of files to AWS S3. I have created a user under IAM in the AWS console and I have tried to generate a policy which only allows this user access to a specific S3 bucket with read/write permissions. The following is the policy I have generated:
{
"Version": "2012-10-17",
"Statement... |
2
There is quirk with bucket permissions, where you need to specify the bucket itself and its keys separately, using the /* wildcard specification. Additionally, even for a write operation, a List action may be required.
{
"Version": "2012-10-17",
"Statement": [
{... |
Shell script to backup all databases and www directory |
I have a simple shell script which backup once a week whole www directory and single database. It is working perfectly.. Now I want to extend it a little bit and make it to backup all databases not just one. How can I do this?
This is the current script
#!/bin/bash
NOW=$(date +"%Y-%m-%d-%H%M")
FILE="backup.$NOW.tar"
B... |
You can simple use show databases command. Read all the databases in for loop like this and call mysqldump command
databases=`mysql --user=$DB_USER --password=$DB_PASS -e "SHOW DATABASES;" | tr -d "| " | grep -v Database`
for db in $databases; do
echo "Dumping database: $db"
mysqldump --force --opt --... |
Is it bad to 7zip SQL backups compressed using NTFS compression? |
I've been searching on the Internet for last week but I haven't found anything. I have such a problem:
We have daily SQL backups in company starting from 2012 up to today. All those files are "compressed" using standard disk compression.
It's about ~500 files per month. It's about 24 000 files. It's huge amount of d... |
It is perfectly safe.
The compression provided by Windows is transparent. This means that from the perspective of any application, those are just normal files which can be read from and written to like any other file. Internally, Windows compresses and uncompresses the data on the fly one layer below what is visible t... |
SQL Server LocalDB: after detach and re-attach database to same computer(machine, same path), cannot backup database |
My development environment is C#, SQL Server 2014 LocalDB, SQL Server 2012 Express, Windows 10, Visual Studio 2015.
When users of my application need to move their localDB (.mdf) file to another place, another computer (LocalDB server), detaching from computer A and attaching to computer B and then, we can run BACKUP ... |
In detaching localDB,
we have to run ALTER DATABASE ROLLBACK IMMEDIATE command first to terminate all the incomplete transactions.
Just to explain easily, Before we close a Restaurant, we have to announce to the customers in the Restaurant, 'This Restaurant will be closed very soon, please complete your eating and ge... |
Which Umbraco folders do I need to backup after deploying from VS and adding to version control? |
I did the following steps:
I have created a new Umbraco instance by using the nuget package and visual studio.
I have deployed to Azure, using Azure DB as backend.
Installed the articulate package.
Added my project to version control (including App_Plugins folder, articulate dlls and so on).
I am able delete the umbr... |
Basically I follow the approach as described in the question. I have added the following files and folders to the Visual Studio project and then later to version control (I have just expanded the more interesting folders which are not part of the project file by default, but needed when you redeploy the solution from ... |
How to take a backup of an SSD AWS [ec2]? |
I have an m3 large. Although I can find the other EBS volumes associated with that instance in the Volumes Section.
But I am not able to find my 32GB SSD disk.
How can we take backup of this SSD?
|
It appears that you are referring to the Instance Store SSD volume that is provided as part of an m3.large Amazon EC2 instance.
Instance Store volumes are temporary (aka "ephemeral") and the content is lost when the instance is Stopped, Terminated or fails. Therefore, it is recommended only for temporary files and swa... |
Not being able to exclude directory from rsync in a bash script |
I have written a bash script to backup my project directory but the exclude option isn't working.
backup.sh
#!/bin/sh
DRY_RUN=""
if [ $1="-n" ]; then
DRY_RUN="n"
fi
OPTIONS="-a"$DRY_RUN"v --delete --delete-excluded --exclude='/bin/'"
SOURCE="/home/vikram/Documents/sem4/oop/lab/java_assignments/student_information... |
The single quotes around the name of the directory which is to be excluded were causing the problem(explained in this answer).
Also I stored all the options in an array as explained here.
Removing the single quotes, storing the options in an array, double quoting the variables as suggested by @Cyrus in the comments,... |
OrientDB Backup structure and class value |
I have a big (?) db (more than 3G). I would like to copy to another server only the db structure and the data for one class.
Is there an easy way to do it other than backup + restore of the whole db and than empty all the classes that I don't need?
Thanks
|
please refer to this http://orientdb.com/docs/last/Console-Command-Export.html
You can even export only classes you need.
|
SQL Server backup fails with network UNC share |
I am currently trying to take backup of a database to a network UNC share, but its giving me error.
I have two PCs connected in a simple NETWORK, not a domain.
From both pcs, I can easily create and edit files on either one.
One PC on which SQL SERVER is running and database files are located, is named SERVER.
Another... |
2
On computer "STUDENT-PC2" locate the file share that is destination for backups. In file share permissions add account named as your SQL machine plus dollar sign, like this: "SERVER$" - type that instead of username. Tick write+read permissions for that artificial "user",... |
Migrate data from a data only postgresql docker volume |
I have a data only postgresql container
docker create -v /var/lib/postgresql/data --name bevdata mdillon/postgis /bin/true
I have a running Postgis container
docker run --name bevaddress -e POSTGRES_USER=bevsu -e POSTGRES_DB=bevaddress -P -d --volumes-from bevdata mdillon/postgis
I have made a backup of that database ... |
To the best of my knowledge, you cannot. The file system in your running container only exists for the duration of the run. Without mounting a volume, you have no way to allow a second container access to the backup.
For future backups, you could create a second volume only container that mounts /var/lib/postgresql/ba... |
How to adjust the URL settings when moving a WP site manually to a new host and domain? |
This is my first WP website, in the past I've only dealt with normal html websites which are pretty easy to move around between new hosts and domains.
I'm not using a plug-in to backup and restore, here's what I have so far:
I backed up all the site files via FTP.
I backed up the database by using phpMyAdmin and e... |
The database will have occurrences of the old url within. You need to search and replace the old url and replace with the new url. However you can't simply get a text editor and do a find replace as the WordPress db uses serialised arrays. To account for the serialised data use this tool -https://interconnectit.com/pr... |
rdiff-backup: Backup whole folder instead of his contents |
I have a issue about a backup procedure with rdiff-backup. Let's say that i want to make a backup in the following way:
rdiff-backup foo /media/bar
When I do that, all the contents of "foo" are stored in "/media/bar/", but not "foo" itself. This is a problem to me because I want to backup multiple directories with th... |
Method 1
rdiff-backup foo /media/bar/foo
... just saying. ;-)
Method 2
Create an include list like this:
/home/me/foo
/home/me/other-foo
- /**
Then backup like this:
rdiff-backup --include-globbing-filelist include-list / /media/bar
In other words, tell rdiff-backup to backup everything, but then exclude everything... |
How can we back up KURA installation and configuration on a Raspberry Pi |
I have installed KURA on my Raspberry Pi but my microSD card has been corrupted last week and I hade to re-install and re-configure KURA again after reformating the SD card.
I want to be able to back up my work, is it possible that I can copy KURA files on another location so in case the SD card get corrupted I manage... |
Every time you apply a change in Kura, the changes are saved in a snapshot file. Each file is appended with a timestamp to denote the most recent change. These files are stored on disk at /opt/eclipse/kura/data/snapshots. If you have the latest snapshot backed up, you can:
Reinstall and start Kura
Open the Kura Web U... |
Cyclic backups of a docker postgresql container |
I would like to deploy an application using docker and would like to use a postgresql container to hold my data.
However I am worried about losing data, so I need back-ups.
I know I could run a cron job on the host to dump the data out from the container, however this approach is not containerized and when I deploy to... |
2
Why not deploy a second container that is linked to the PostgreSQL one that does the backups?
It can contain a crontab within, together with instructions on how to upload the backup to Amazon S3, or some other secure storage in the cloud that will not fail even in case of... |
Rsync script does not continue after sync |
Problem: I have a simple custom backup script that is set to run whenever my backup drive is detected, this is done via udev. All is well until about halfway down through the script it seems to hang after the rsync command. My code is below:
#!/bin/bash
#Mount the Backup Drive
wall "backup is starting"
mount -U f91b8... |
It's like a timeout of RUN command in udev.
Instead of running backup script (which normally takes long time to complete) directly from udev, you can run it from separate process, activated by udev.
For example you can use at command:
ACTION=="add", KERNEL=="sd*", ENV{ID_FS_UUID_ENC}=="f91b8373-6349-4de3-86e1-6a2557f2... |
Backing up multi-node crate cluster |
I have seen docs on how to import data but how do I do backups?
Is there tooling, is there an API, or is it safe to copy the files on the file system?
|
exporting data is done via COPY TO. Exports can go to the local filesystem or amazon s3.
every node containing data will export in parallel. you can export to a network attached storage or s3 or simply copy the exported files to another host using scp.
|
IBM TSM - Select command to view size of Daily Backup |
I am working with IBM Tivoli Management Storage and I have to run a a daily report of how much data have been backed-up.
The command below give me the result in Megabytes which is OK, But to save time I would like to have have the result in Gigabytes as my backups are on average bigger than 0ne Gigabyte.
I have tried ... |
You have to add another /1024 and modify the name in "GB Bkp"
SELECT substr(entity,1,20) AS "Node", CAST(sum(bytes/1024/1024/1024) AS decimal(8,2)) AS "GB Bkp" FROM summary WHERE activity='BACKUP' AND start_time>=current_timestamp - 24 hours GROUP BY entity order by 2 desc
Hope this will help you
|
MySQLdump is executing, but not actually working |
I'm trying to back up and restore a MySQL database using mysqldump. With my commands I am making a back up file and then restoring that file, but where I'm restoring the database shows no change.
This creates the backup folder in the same directory as the mysqldump.exe file:
In the windows cmd: mysqldump -u root -pxx... |
For importing you do not need mysqldump rather
mysql -u root -pxxxxxx test < test2backup.sql
|
Backup local Git repository (notes, stashes, reflog included) and restore it on another machine |
As in the title, how can I backup completely a local Git repository and its state, restore it on another machine, and have the new repository to be in the exact state as the one on the previous machine?
I mainly care to not loose local stuff, like:
stashes (that's the most important thing)
reflog (I want to keep my o... |
2
If you copy/paste your whole directory from one machine to the other (including hidden files like .git, ...), you will be keeping:
stashes (that's the most important thing)
all your history, including all local branches, ...
notes
Git always stores the data of one repos... |
Attach database using old .MDF file but current .LDF file |
I backed up a database 2 days ago (but I only have the .mdf file and not the .ldf file).
I want to now create a different database on the same server, using that .mdf file (so I can compare data between now and 2 days ago). Is this possible without having the .ldf file from 2 days ago, but having the current .ldf fil... |
2
If you backed up the database your best bet is to restore from the .bak file. While it is possible to restore an .mdf without the corresponding log it is in no way a sure bet, it really depends on the state of the database. You can try the options in Attaching an MDF fi... |
How to make rsync faster? |
I'm using rsync to sync two disk's (in the same machine, say /dev/sdb and /dev/sdc) sqlite DB files. On each my program start, I must run rsync to backup the 2 disk like that:
$ rsync -rtv /path/to/sqlite_db/ /path/to/sqlite_db_bkup/
Each time, there may be 500G sqlite DB files to be synced, and this will takes about... |
2
The problem is you're trying to sync databases bound in large files, i.e. you're not sync'ing the only values that changed, but the whole database all the times.
If you've got a "last time modified" column in each table you edit, or at least in the tables of the strong en... |
Start running a batch file when it receives a signal |
I have a long backup job running on one server that needs to run before another backup job on another server. Is there any way I could have Server A signal Server B to start? These backup jobs take a long time as need to be done on weekend days when there's no one around. How would I go about having unsupervised serve... |
2
Waitfor sends signals to batch files and waits in batch files for that signal.
See waitfor /?.
It seems about batch to me.
Share
Improve this answer
Follow
answered Apr 9, 2015 at 9:20
Se... |
How to use arcmain to backup table with all his rows and without them(just structure)? |
I need to backup tables and be able to control what to store: full table or just its structure. Unfortunately, I didn't figure it out. So I looked the official site, then tried to look the full guide, but it is so full unnecessary information.
So far I know how do it default way:
logon ZZZZ/YYYY,XXXX;
ARCHIVE DATA TA... |
A dictionary backup will backup the definitions of all objects in the database, included the dictionary entries for stored procedures. If you specify a single object, then only that object's definition will be archived.
/* Dictionary Backup - Object Definitions only */
ARCHIVE DICTIONARY TABLES
(DBNAME.TABLENAME1),
(... |
Amazon S3 sync millions of files to local for incremental backup |
Trying to sync a large (millions of files) S3 bucket from cloud to local storage seems to be troublesome process for most S3 tools, as virtually everything I've seen so far uses GET Bucket operation, patiently getting the whole list of files in bucket, then diffing it against a list local of files, then performing the... |
2
On AWS S3 you can configure event notifications (Ex: s3:ObjectCreated:*). To request notification when an object is created. It supports SNS, SQS and Lambda services. So you can have an application that listens on the event and updates the statistics. You may also want ... |
FTP backup script with hard links using |
Usually I use rsync based backup.
But now I have to make backup script from Windows server to linux.
So, there is no rsync - only FTP.
I like ideas of hard links using to save disk space and incremental backup to minimize traffic.
Is there any similar backup script for ftp instead of rsync?
UPDATE:
I need to backup... |
Edit, since the setup was not clear enough for me from the original question.
Based on the update of the question the situation is, that you need to pull the data on the backup server from the windows system via ftp. In this case you could adapt the script you find yourself (see comment) or use a similar idea like:
U... |
What affects DB2 restored database size? |
I have database TESTDB with following details:
Database size: 3.2GB
Database Capacity: 302 GB
One of its tablespaces has its HWM too high due to an SMP extent, so it is not letting me reduce the high water mark.
My backup size is around 3.2 GB (As backups contains only used pages)
If I restore this database backup ima... |
2
The short answer is that RESTORE DATABASE will produce a target database that occupies about as much disk space as the source database did when it was backed up.
On its own, the size of a DB2 backup image is not a reliable indicator of how big the target database will be.... |
Application for backup a MYSQL |
I'm trying to backup MYSQL automatically on specified time every day, i searched for a free tool but i didn't find any thing !
Is there any free tool or application for backup a MYSQL database from my domain?
|
Solution 1: If you are searching free tool for auto backup mysql then you should check this Auto MY SQL Backup
Features:
Email notification of backups
Backup Compression and Encryption
Configurable backup rotation
Incremental database backups
Solution 2:
Another Solution will be Cron Jobs
5 0 * * * /path/to/mysqldu... |
How can I copy variable file from bash script |
I run the following script:
#!/bin/bash
{
date=$( date '+%Y-%m-%d_%H-%M-%S' )
file="mysql_dump_$date"
echo '###Start DB Backup '$date'###'
mysqldump -h localhost -u 'USERNAME' -pPASSWD 'DBNAME' > /backup/$file
echo '###DB Backuo Finished '$date'###'
} >> /backup/backup.log
As you can see in the mysqldump lin... |
Perhaps I'm misunderstanding your doubt. You seem to think that $file will change its value if it is used a second time.
Bash variables don't change their values. $date and $file are set once in your script, and then they keep the same value until they disappear at the end of the script (unless they are reassigned). S... |
Android: How can I share the contents of a Couchbase database between devices? (And/or how to export Couchbase to XML) |
I want to be able to make a backup of the data in my application, and potentially share this backup between Android devices. I am using Couchbase. I have found many resources regarding exporting an SQLite database to XML, but none for Couchbase.
Does anyone know how to do this?
|
You can use this command to export couch-base to SQLlight.
> cbbackup http://<host>:8091 <backup_folder> -u <user> -p <pass> -b <bucket>
|
securely restoring an ecryptfs encrypted backup |
I'm using ecryptfs to backup the entire contents of my Ubuntu box to an external hard drive enclosure. I've followed this guide and have things properly backing-up and encrypted as I want.
That's all well and good until I have to actually use the encrypted backup, and that's got me wondering. In the event that I los... |
For a backup, you might just need to remember the passphrase and the options you used to set up the encrypted folder, so everything in the example page you linked:
To see the files again, just mount the directory with ecryptfs
filesystem.
# mount -t ecryptfs /home/sk/unixmen/ /home/sk/unixmen/
Select key type to u... |
Backup from linux to Windows Server |
I have a Debian server (VPS) and a Windows server (at home). I would like to backup periodically some paths of my Debian to My Windows server. My WS act as NAS and I use it for my all backup.
Firstly I started to configure a cron task with rsync on my Debian but as there is no native ssh server on Windows server it ma... |
As you pointed out in your question - being that your Windows machine is behind a NAT router, it may be simpler for your windows machine to 'pull' files from your Debian VM, as opposed to your Debian VM 'pushing' files to your Windows machine. Pushing files from your Debian VM to your Windows machine would require yo... |
Android app data recovery |
Recently my Nexus 7 died somehow and had to reflash the factory android image. Luckily, my bootloader was already unlocked so I could save the important data using adb from recovery mode.
I also backuped the data of a game (at least I think so), simply saving
/data/data/com.my.game
I reflashed the factory image, the ... |
Check the owner of all files under /data/data/com.my.game. It is possibly root and it should probably be com.my.game (or more precisely the userId of the app com.my.game, but most of the time they are the same).
|
Business Contuinity for Node.js Web Application during Network Failure [duplicate] |
This question already has answers here:
How can Meteor apps work offline?
(4 answers)
Closed 9 years ago.
I am planning to create a web application using Node.js and Meteor Framewo... |
Meteor actually support this out of the box. I guess I was searching with the wrong terms. Check out the link below for more information.
How can Meteor apps work offline?
|
How to use PowerShell and robocopy to backup files to a server? |
I am just starting with PowerShell, so please be kind.
All I want to do is backup my directories and files from my laptop to the desktop computer, i.e. "server", using PowerShell and robocopy. I am the administrator to both machines (Windows 7).
This fails with access denied on the "server", i.e., desktop, despite th... |
Psdrive is a feature for powershell cmdlet not for extrrnal command , change this line:
robocopy "\\localhost\C$\nova5" "$TargetPath" /e
|
Locking SQLite database file during backup |
I am trying to implement a service to backup the SQLite database of my Android app. I am planning to both schedule this service for frequent backups (every day for example), and add an option to launch it immediately.
My problem is that the service might start while the application is running, or the user might start ... |
If you are not using explicit transactions, SQLite will automatically use a transaction around each SQL statement.
To ensure that the database files cannot be accessed by another database connection while you are doing the backup, open an exclusive transaction around the backup.
|
FoxPro 'Zipped' backup |
I have, what I believe to be, a FoxPro Backup file with file extension .02A.
The first seven characters of this 150MB file are ' !Pƒõ' in hex: 1F A0 21 50 83 9D F5.
Who knows what kind of file this is exactly and how do I get to the contents?
|
2
1F A0
Is associated with .tar based zip files as found at
Wikipedia List of file signatures
Share
Improve this answer
Follow
answered Sep 13, 2014 at 16:52
DRappDRapp
47.9k1212 gold badg... |
.bat or .cmd to move all files except first of month |
Our backup system is running out of space and we'd like to keep every first backup of the month (creation date) and move the other files to subfolder x.
Is there an easy script for this, as I really have no clue on how to do this.
|
@ECHO Off
SETLOCAL enabledelayedexpansion
SET "sourcedir=u:\sourcedir"
SET /a month=99
SET /a year=99
PUSHD "%sourcedir%"
FOR /f "skip=4tokens=1,2,3,5,*delims=/- " %%a IN (
'dir /tc /a-d /-c /od "*" '
) DO (
IF "%%d"=="" GOTO done
IF %%b-%%c neq !month!-!year! (
ECHO(leave "%%e" ".\x\"
SET month=%%b
SET y... |
Plone backup time stamps don't match system |
I am working on a development Plone 4.3.3 site with Zope 2.13.22 on Debian and noticed when I ran my backup using collective.recipe.backup that the backup time in the file name is 6 hours ahead of my system.
Example:
Backup name = 2014-08-06-17-08-15.fsz
System time (and write time according to properties) = 2014-08-0... |
IIRC, this is how the backup script works. Time values are always rendered in UTC, not server local time. This allows for unambiguous ordering of backup files.
If you look at the source of the repozo script used for backup you can see that the date portion of the filename always uses time.gmtime() so this is not som... |
MySQL backup only innodb tables |
How, can I backup only the Innodb tables.
I'm looking for command line solution.
Thanks for your feedback.
|
mysqlbackup utility isn't available in Community installation !
I'll try msqldump.
First I list all the InnoDB tables, then I execute the msqldump on each of these tables (loop).
|
What does the TFS Scheduled Backup Tool do that a database backup doesn't? |
For various reasons, our support are backing up the TFS databases with their own tool, rather than using the built in TFS Scheduled Backup tool (we're using 2012 update 3).
I know the report encryption key is one thing that is also backed up using the tool.
Is there anything else the TFS tool backs up that I haven't m... |
The TFS Backup wizard is the preferred way to do backups because it uses Marked Transactions to ensure a consistent backup set. This is important because TFS data spans several databases (Collection + Config), and you need a way to ensure that the backups are consistent (from the same moment in time for all/both data... |
How to understand iOS "Documents and data" (related to cloud backup) |
My app was rejected by Apple because they said it doesn't follow the "iOS Data Storage Guidelines."
I have updated the app with the following code to flag downloaded content so that it isn't backed up to the cloud...
- (BOOL)addSkipBackupAttributeToItemAtPath:(NSString *)filePathString {
NSURL *fileURL = [NSURL fi... |
Data that the user created or that is private to the user and that must not just disappear should be in the Documents directory. Also, data which is valuable to the user and that cannot be recreated should be in the Documents directory. Files in the Documents directory are automatically backed up to iCloud.
Data that ... |
postfix backupmx and proxy_interfaces |
I have 2 mail server
mail1.domain.com 1.2.3.4
mail2.domain.com 1.2.3.5
I want mail2 to be proxy for mail1 and mail2 to be backup mx for mail1
Is this possible ?
I found in the postfix man the following :
proxy_interfaces (default: empty)
The network interface addresses that this mail system receives mail on by ... |
proxy_interfaces = 1.2.3.4
because 1.2.3.4 is the proxy
mail mail go to mail2 and you will have to fetchmail it.
|
powershell keep last 31 files |
I'm using this powershell command to keep only backup files that are 31 days old.
Get-ChildItem –Path “d:\Backup\hl” –Recurse | Where-Object{$_.LastWriteTime –lt (Get-Date).AddDays(-31)} | Remove-Item -Force -Recurse
My question is if the daily backup was to fail and I checked the backup folder e.g after a month, th... |
1
You can do the following, I'm not sure how this will behave with your recurse parameter but assume it is working correctly so I have left it in the example:
Get-ChildItem –Path “d:\Backup\hl” –Recurse | Sort-Object LastWriteTime –Descending | Select-Object -Skip 31 | Rem... |
How to check the integrity of a SQL Server compressed backup? |
Is there a short T-SQL query or command line option to check the integrity of a SQL Server backup created with "compressed" option?
I need it to make sure I downloaded it correctly from network.
|
Try something like this:
restore verifyonly from disk = 'D:\sample.bak';
|
How to backup and restore data in Titan-Server (with Cassandra and Elastic Search) without sstableloader |
I have the Titan server, with Cassandra, installed here, with multiple keyspaces configured.
I've read many threads about how to back up and restore a keyspace, but all talk about using sstableloader.
However, I didn't find this tool, since the Titan installation I've used came with Cassandra, and there is not an ex... |
One thing you could do is just separately download the version of Cassandra compatible with the one that packaged with your Titan version. I routinely do that to get nodetool and the cassandra-cli.
|
Eclipse Backup - how to get back to a specific date |
I've heard that Eclipse has a few fancy backup options.
I've been working on an Eclipse project (using Pydev), and I would like to somehow switch back to the way the project was a few days ago. Is there such an option?
What I've found till now was only the backup files (specifically what I changed and when), but I don... |
Eclipse has Replace With > Local History for individual files (and Restore from Local History for deleted files).
By default the local history is only kept for a few days, you can configure this in Preferences > Workspace > Local History.
For anything more complex you can use one of the many source control systems su... |
Is there any way to rollback transactions in SQL Server? |
Yesterday I wrote some code module, that wrote wrong data in almost 400 existing records in important database on SQL Server 2008. I didn't make backup of this database (my mistake). So the question is how do I rollback these 400 transactions? Is there any way to do this? Thanks.
|
You can't rollback, but if the database is in full recovery model, then you can restore to another servar with stopat, and recover the deleted rows from there.
|
rsync backup with compression, file size differences |
I am using rsync to backup a folder regularly to another server, like this, creating a duplicate failsafe version.
rsync --partial --progress -avzl -e ssh /backup_source [email protected]:/backup_dest/ >> /backup.log
I understand it uses compression when transferring the files. I've noticed some unusual differences i... |
I think what you're seeing might be a difference in disk usage based on filesystem. Remember, du doesn't really show file sizes , but rather an "estimate" of "file space usage". ls or stat are accurate depictions of file size.
Don't use filesize as a checksum. If you want to make sure 2 files are exactly the same, u... |
Is it possible to restore a Postgres database by simply swapping out some files for speed? |
This is a general Postgres backup and restore method question, based on the following use case for a non production server (i.e. a local testing server).
I have a ~20gb database that I will mangle during the testing of a php script that will result in the need to drop it and recreate it quite often.
Running dumped SQL... |
Your fastest solution is probably to just do this via the file system.
Stop the server and make a local copy of your entire database cluster, i.e. everything under $PGDATA, inclusive. Start the server and do your mangling. When you need to refresh your database, stop the server and copy the files back in from your bac... |
Restore plesk 11 via personal FTP |
I'm trying to perform data migration from server to server.
My hosting provider allow me a personal FTP to backup all my server data everyday.
I just installed the new server with a Plesk 11 panel manager as the old one (same version).
Now I want to use personal FTP to transfer data (databases, websites, domaines conf... |
I've used migration tool of plesk (dont need to use backup files anymore) !!
|
eXist-db embedded mode backup / restore |
I'm attempting to use eXist-db in embedded mode in a Java program to produce an interactive fiction game.
Is there any information on invoking backups and restores from within my own java application, so as to initially load the story and all files, and then to perform a save/restore function?
Also, any suggestions o... |
2
You can invoke the backup directly by passing in the URI of your embedded eXist instance. For example:
import org.exist.backup.Backup;
//omitted for brevity
final Backup backup = new Backup("admin, "adminPass", "xmldb:exist:///db")
backup.backup(false, null);
You can ... |
Is there any way to get backup of running code of azure service |
I want to take a backup of the code of cloud service that is running currently.Is there any way to take backup of current ?
|
To get the backup of the package, do take a look at Get Package operation in Service Management API. This operation takes a backup of package and config file and stores in a blob container of your choice.
|
How can I build an url from a file content on puppet? |
I have a backup script that stores the latest backup timestamp in an url like this http://myaws.com/LATEST, the file contains only a string representing the timestamp, for instance, "201402230400". The same script store the real backups in http://myaws.com/201402230400/mycompany-dump-201402230400.gz and http://myaws.c... |
I think you'll want to use generate to get the LATEST timestamp rather than exec inside of a custom type. Something like this perhaps (note that you need to change the format of the uri for the download as well):
$latest_file = generate(
'/usr/bin/curl',
'-s',
'http://myaws.com/LATEST'
)
define download (... |
Moving files in a directory except file with current date |
I wish to move files contained in a directory but I do not wish to move the file with the current date. eg. Current date is February 12, 2014 translates to 20140212
When I list files in source directory: /source
record_20140209
record_20140210
record_20140211
record_20140212
I wish to move to a target directory :/ t... |
2
To move all the files except current date you can do:
cd /source
dt=$(date '+%Y%m%d')
for f in record_*; do
[[ "$f" != *"$dt" ]] && mv "$f" /target
done
Share
Improve this answer
Follow
edited Feb 1... |
restart rsync in case of lack of connection |
Once a week, I download with rsync remote server backup in my local network.
I created a bash script to do this and I setup crontab to start once a week.
the problem is: if for any reason during the night Internet crashes, rsync stop the synchronizations.
I'm asking that rsync in case of lack of connection retry star... |
1
rsync will return a non-zero result if it fails. So something like this:
backup() {
$RSYNC -avxz --bwlimit=2000 [email protected]:/backup $BackupDIR/
}
backup
while [ ! $? ]; do
backup
done
Share
Improve this answer
Follow
... |
servers for android app to save and share user data - does their exist a service? [closed] |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to ... |
Parse
Parse handles everything you need to store data securely and
efficiently in the cloud. Store basic data types, locations, photos,
and query across them in just a few lines of code.
Pricing: Free < 15 million request a month otherwise 199$ month
https://parse.com/products/data
Stackmob
The StackMob platform le... |
Ubuntu cron not executing, but works fine on command line |
I have a backup cron job that is supposed to run once a week. It works perfectly fine when I execute it on the command line, but it never executes in cron. My other cron tasks execute without issue. I assume it must have something to do with my options or incorrect syntax. Here is the cron entry in question:
10 10 * *... |
crontab has a very small environment, so you have to indicate full paths.
10 10 * * 0 /path/of/php /home/your_user/v2/symfony/symfony cc; tar -czf /home/your_user/backups/schroeder/v2/v2_site_backup_`date +%Y-%m-%d_%H-%M`.tgz /home/your_user/v2/symfony | tee -a /home/your_user/log/weekly_backup.log
^^^^^^^^... |
Backup with mysqldump & rsync |
I am trying to backup my database over the network with mysqldump and rsync.
I wanted to ask if there is any way to know if the database has been modified since the last time I did my old dump, before doing a new dump or update the old one.
Thank you.
|
You could access each database that might need to be dumped and ask for the last modified time. It's available through the information_schema database:
SELECT UPDATE_TIME
FROM information_schema.tables
WHERE TABLE_SCHEMA = 'dbname'
AND TABLE_NAME = 'tabname'
Also see here.
|
Backup from external Datasource to AWS S3 (using Data Pipelining)? |
I am trying to move some Logfiles, which are located on an external Webserver to an Amazon S3 bucket. This should happen every 7 days without manually activating it. Additionally I'd like it to be "failsafe", so it probably would be best if the copying operation would be done in the Amazon Cloud. I have already read s... |
2
I don't believe any of the existing components will do what you want out of the box, but you can always run a script as part of a data pipeline. I've used it that way to run a script that grabs files from an external FTP and then loads them into an S3 bucket every hour.... |
Replacing a empty dropbox's (fresh install) folder with a previously (uptodate) dropbox folder. Is it possible? |
I am about to install Maverick and before I do that I am going to reformat my macbook air. I use dropbox and have about 15gb of (small) files on it (mainly documents/ebooks).
My question is: Is it possible to backup my Dropbox folder now, reformat my SSD and and install dropbox again. After wish I replace the dropbox... |
It's fine to do this - I have done it myself, but not on OSX.
The Dropbox client will index the files that it finds on your computer and compare them to the ones which are already in your account (on the server). I believe that it uses some kind of hash function to do this - the client creates a small hash value for ... |
How to use django-dbbackup? |
I am trying to use the django-dbbackup tool to backup my PostgreSQL database. I have setup everything as written in the documentation. However, when I run in the python shell:
import dbbackup
dbbackup
I get:
module 'dbbackup' from
'/Users/poiuytrez/.virtualenvs/ariseio/lib/python2.7/site-packages/dbbackup/init.py... |
I found that I needed to run the command using the manage.py file:
python manage.py dbbackup
It was not very explicit in the documentation.
|
How to access individual pages in wordpress |
I have installed wordpress on my website and it's working fine (so I downloaded it, extracted it in the ftp-server of my page, and initialized a database).
I'm doing this because I want to be able to backup everything in one-click. The plan was to copy the wordpress folder back to my computer in order to do a backup, ... |
1
Your wordpress pages are stored in database. If you want to backup your wordpress installation, you will have to backup your FTP files AND your database.
Have a look at the docs for more information on Wordpress database structure.
Note you can also use plugins such as Ba... |
imp/exp database in oracle |
I have dmp file for oracle database version "oracle orahome 81" and I want to import just the data not tables or views...etc coz I export the dmp file on pc1 ,and I want to import data on pc2 but pc2 already have old database and I wana to import metadata to pc2 coz the database already exists so, when use this comma... |
1
You should be able to specify indexes=N and constraints=N to ignore.
You can get available options for imp using
imp help=y
There is an option DATA_ONLY=Y, but i'm not sure it is exist in your oracle version.
Share
Improve this answer
... |
iOS: keychain on new devices or on restores |
I thought about storing important and sensitive information in iOS' keychain. But now I read that the keychain is only restored if the backup is encrypted in iTunes (don't know about iCloud backups). This is especially a problem when users buy a new iPhone/iPad and restore them from a backup. The information stored in... |
You can transfer data using the iCloud, but this is NOT really secure! Save this data ENCRYPTED on your server and let the app read this data would be a solution.
Btw. you shouldn't save sensible data unencrypted in the keychain. The keychain can be read really easy after jailbreak.
For more information about handling... |
How to access your /home/cpbackuptmp/cpbackup/daily folder cPanel |
I am a beginner with cPanel and databases and am having trouble finding the /home/cpbackuptmp/cpbackup/daily folder. I just took over a wordpress site and I was moved to a list where I get emails saying that "[cpbackup] Backup complete on [my site]". In the email it says that the files were backed up to the above loca... |
Thanks to the both of you. As it turns out, we actually had a backup server where both the daily and weekly backup folders were located.
|
What do the "drop table" and "create table" options in this backup script do? |
I need a script to back up a MYSQL database that I don't have cpanel, shell, or phpmyadmin access to.
I'm just concerned about the DROP TABLE part of this script and why it would be needed. I do not want to modify the database at all, I just want a backup.
Here is my code:
backup_tables('localhost','username','passwor... |
So this script is generating a file with all of the SQL commands to recreate the current database.
So once the script is done executing you could "import" the file it creates in phpmyadmin and it will drop the tables if they exist and then insert all of the data the was in the tables at the time of the backup.
It will... |
How to get index name, key and description from sybase table |
I want to create index for specific table from Unix shell script, so that I need index name, index keys, and index description for that particular table.
"sp_helpindexes" gives all these details with some unwanted lines, but I need alternative way to get only index name, key and description.
Anyone please help me on t... |
Custom made SQL request
You can find description of the sp_helpindex using sp_helptext command like this :
use sybsystemprocs
go
sp_helptext sp_helpindex
go
This will give you the definition of your stored prcedure. Then you can extract your required SQL request (which could be tricky, another store_proc).
Shell scr... |
C++ Builder - Handle to OS to Iterate Through All Drives |
I'm using Borland C++ Builder for a project which connects to a database.
There is a configuration which does backups to a USB drive. The problem with the current approach is that the drive is manually configured by the end user and sometimes things get messed up. E.g. People move the USB drive to a different port, g... |
I don't think there's much to be gained by trying to do something more advanced than iterating over the 26 drive letters.
Before attempting to check whether or not the marker path exists you could add a call to GetDriveType and compare the return value against DRIVE_REMOVABLE. This will make sure that your code doesn'... |
Heroku PG Backups, how to restore certain records only |
I would like to use Heroku PG Backups to able to restore my data in case anything was deleted by mistake. My question is, what if I want to restore just a certain record as well as its associations. Like a student and his grades for example..
I found a similar question: How do I restore three items from a backup made... |
However, I don't know what it means to cherry pick items.. How do I do that? .. manually?
It's a manual process, yes. You can for example use dblink[0] to connect from one DB to the other and pull in the relevant records.
[0] http://www.postgresql.org/docs/9.1/static/dblink.html
Here's a full example on how to use d... |
Backup database with different name time-related |
My code ,for agent's job on SQL server 2008 , generate the backup file, but it keep OVERWRITE the first bak file everytime the agent's job triggered !!?
how can i make backup with different name time-related
e.g:
testDB201313328.bak
and after 1 minute create file with name :
testDB201313329.bak
instead overwriting th... |
First, backups can contain more than one backup set, so are you sure you are overwriting it and not just appending another set within the same file? Otherwise you need to add the time of day to your filename. Hope this helps. Also if its just one or two db, then there is an excellent (free for limited use) app, google... |
Android SharedPreferences backup |
I'm trying to back up my app data using SharedPreferencesBackupHelper. As I understand it you first start by calling
SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, "KEY1", "KEY2");
My problem is that I'm doing a list application and there I back up the data for each list item using a s... |
The key you pass to SharedPreferencesBackupHelper's constructor isn't the key for a Preference inside your SharedPreferences: it's the name of the SharedPreferences file. That is, it's the String you pass to Context.getSharedPreferences(String,int). If you create your SharedPreferences file by calling Activity.getPref... |
Backing up Java? |
I'm currently using Java and I'm looking for a program that saves a new version of what I'm doing each time I compile. I don't mind if it doesn't run, I can go in and edit the class name to make it match the .java name afterwards. As I'm a beginner, I keep getting caught by overextending myself and then breaking the p... |
What you're looking for is revision control. This works independent of the language you're dealing with, since all the VCS is concerned with is the state of the software at a particular snapshot in time.
Some recommendations:
Subversion
Git
Mercurial
IntelliJ IDEA also comes with a built-in local revision system, w... |
TAR doesn't work properly with the crontab |
First of all, I'm saying that it doesn't work properly with the crontab because when I run the script manually it works fine.
The problem is that when I run the backup script with the cronjob and... it's coming to tar up the mysql dump, the tar archive has only 16 bytes size (and its empty, so it looks like there wer... |
Can you try with full path name for mysqldump and mysql inside your script.
So:
if which mysql is equal to /usr/local/mysql/bin/mysql
and
if which mysqldump is equal to /usr/local/mysql/bin/mysqldump
Modify your script to:
for db in $(echo "SHOW DATABASES;" | /usr/local/mysql/bin/mysql --user=$MySQLuser --password=$... |
Application Folder backup using Codeigniter |
I am trying to create a web app using codeigniter which will be used over a home or office network. Now Im looking for a backup option which can be done from the web protal. For example, in my htdocs folder i have: App1, App2 etc.
i want to backup and download the App1 folder directly from the webapp which can be done... |
1
sorry for the late reply. I found a quite easy and simple backup option builtin with codeigniter. Hope this helps someone
$this->load->library('zip');
$path='C:\\xampp\\htdocs\\CodeIgniter\\';
$this->zip->read_dir($path);
$this->zip->download('my_backup.zip');
i use... |
Is Amazon S3 ever unavailable independent of EC2? |
Currently, we are uploading all of our user-generated-content to a medium-size EC2 Instance, and then from there we run a cron job to sync all of the uploaded content to S3. We have some code that runs on the backend (every time you need to access any uploaded file) that checks to see whether or not the resource has b... |
It's much more likely that your EC2 instance will be down than S3 will be down. For one, you have a single instance running on a single host with a single network connection in a single availability zone. Past that, on a platform level, EC2 (particularly involving EBS) has had several protracted outages, whereas S3 ha... |
What is stored in Packages/User directory? |
How to save/restore Sublime Text 2 configs/plugins to migrate to another computer? states that, to backup a Sublime Text 2 installation, a user should preserve the ~/Packages/User directory (from the user's local data folder on whatever OS they're using).
However, http://andrew.hedges.name/blog/2012/01/19/sublime-te... |
I think that Packages/User is the one in which you are supposed to put settings (according to Sublime's official and unofficial documentation). However, some people put them in the other folders from time to time.
The Dropbox advice may be a hedge against poor practice.
|
Copy file as another name if file exist |
I want to copy specific file from pc to usb
my code :
xcopy /H /Y /C /R "C:\image1.jpeg" "G:\backup\image.jpeg"
i want to do following :
if G:\backup\image1.jpeg exist, copy image.jpeg as image2.jpeg (or as another name),
if image2.jpeg exist, copy as image3.jpeg and ect..
Is it possible to do this?
|
I'm going to assume your source name is "image.jpeg" and your destination has the appended suffix.
I recommend putting a dot before the appended suffix to make it clear where the original name ends and the suffix begins. Your original name could already have a number at the end.
Here is a crude but very effective brut... |
Stuck on a system call with variables |
I'm writing a ruby script that will automate backing up my laptop to my ssh server. I seem to be stuck on a system call though.
$x = "C:\\Program Files\\7-Zip\\7z.exe"
###calibre library###
$library = "C:\\Users\\maste_000\\Documents\\Calibre Library"
system($x, "a library.7z", $library, " -r")
I'm trying to call... |
I'd guess that you want this:
system($x, 'a', 'library.7z', $library, '-r')
That would give you the same effect as this at the command prompt:
C:\Program Files\7-Zip\7z.exe a library.7z "C:\Users\maste_000\Documents\Calibre Library" -r
Assuming, of course, that I haven't completely forgotten how quoting works with t... |
How to backup users permissions and web parts on sharepoint? [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
... |
Why don't you use regular site collection backups? It includes permissions and web parts:
http://technet.microsoft.com/en-us/library/ff607901.aspx
Alternatively you can make regular content database backups:
http://msdn.microsoft.com/en-us/library/ms191304(v=sql.105).aspx
It will also contains all permissions and web ... |
Hot backup DB script understanding |
I'm currently learning what hot backup is on an ORACLE guide which present a generic script for hot backup. I dont understand some point of this script :
PROMPT Path to destination directory:
ACCEPT repertory
PROMPT Path for first file
ACCEPT file
PROMPT Path for second file
ACCEPT spool
SPOOL &file
PROMPT spool &spoo... |
2
The backup script you've quoted is very old, and uses old techniques -- techniques that were old even for Oracle 9i. Even in that version, RMAN (Recovery Manager) was available and the use of RMAN is to be preferred in all cases.
See Tim Hall's excellent site for an overv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.