Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
C# Managing a file backup |
I've got a small problem that consists in following: In my C# application, I have a function named MakeBackup() which as it says, makes the backup copy of a txt file in my case. My application also saves some information in a file called settings.txt, so when I launch my application, it checks if this file exists, if ... |
I'm a little unclear, but if you don't want to change file names then I'd suggest either putting the backup file in a subfolder, named after the date, or having the backup in the application folder and have previous version in subfolders named after the date.
|
Emacs create broken dot hash filename symlink when editing [duplicate] |
When I modify a buffer, Emacs automatically creates a temporary symlink in the same directory as the file being edited (e.g. foo.c):
.#foo.c -> [email protected]:1296583136
where '12345' is Emacs' PID (I don't know what the last number means).
Why does Emacs create these links, and how do I prevent it from doing that... |
Update: Emacs 24.3 has been released with full support for this new setting!
In the current trunk of emacs, you can simply customize the variable create-lockfiles:
C-h v create-lockfiles
Documentation:
Non-nil means use lockfiles to avoid editing collisions.
In your init file, you can set
(setq create-lockfiles nil)
... |
How to write a file to a folder in Desktop using write_file in CodeIgniter |
I am using this code for write file in CodeIgniter.
$backup =& $this->dbutil->backup($prefs);
write_file("application/backup/backup.sql.gz", $backup);
But I need to write that specified file backup.sql.gz to another folder in desktop.
How it is possible using this write_file() in codeigniter.
|
Specify the path on write_file function
$backup =& $this->dbutil->backup($prefs);
write_file("/home/my_pc/Desktop/NewFolder/backup.sql.gz", $backup);
Give permission to NewFolder. It will work.
|
Unable to send email from a bash script |
I have a script to send out email from a particular email address. Still mails are going as username@hostname of the server.
#!/bin/bash
# script to send simple email
# Email To ?
EMAIL="sending_to_address"
# Email text/message
EMAILMESSAGE="/mailmessage.txt"
/bin/mail -s "SUBJECT" "$EMAIL" < $EMAILMESSAGE -- -f from_... |
0
#!/bin/bash
# script to send simple email
# Email To ?
EMAIL="sending_to_address"
# Email text/message
EMAILMESSAGE="/mailmessage.txt"
/bin/mail -s "SUBJECT" "$EMAIL" < $EMAILMESSAGE -- -f from_email_address
Are you sending the email for your lan? Are you port forwarde... |
Periodic snapshots/backups for openshift instance |
I want to configure daily snapshots for my Openshift instance and save those snapshots to Amazon S3. When I tried to accomplish this task, I faced several difficulties:
Openshift instance can't create snapshot of itself, so you have to have separate instance to create this snapshot for you.
When I've created separat... |
Then you'll most likely want to use this https://www.openshift.com/blogs/introducing-a-new-backup-cartridge.
|
Backup directories in home with tar |
I want to make a backup of each directory in /home separately and each directory tar (backup) files to enter into a specified directory. Under linux ubuntu.
|
To clarify ... I want to make a backup of all directories, for example to /home/user file is named backup-2014.02.02.tar and is located in the directory /home/user /backups. I'm doing a backup of the entire /home directory with the following script:
#!/bin/bash
today=$(date '+%Y.%m.%d')
tar czf /var/backup/backup_"$to... |
MySQL database backup using PHP |
I have used the following to check if exec() is enabled on my server:
public function exec_enabled() {
$disabled = explode(',', ini_get('disable_functions'));
return !in_array('exec', $disabled);
}
And I found out that it was enabled on my server. Now I am trying to run the following, and the database isn't gett... |
0
This should work -
exec('mysqldump -u foo --password=bar --host=localhost foobar > backup.sql');
Share
Improve this answer
Follow
answered Feb 20, 2014 at 11:23
CS GOCS GO
91266 silve... |
Copying of mysql binary log files |
If I copy mysql binary log files (/var/lib/mysql/mydb the .frm and .ibd files) from one mysql instance to another, will the databases be copied over correctly (assuming using the same mysql server version)?
|
You should use a utility to do this, something like MySQLDump. You way of copying the files will require manually correcting the conf files and possibly missing something.
look Here for Mysqldump
|
Backup server for a NAS with web interface |
I'm evaluating the features of a full-fledged backup server for my NAS (synology). I need
FTP access (backup remote sites)
SSH/SCP access (backup remote server)
web interface (in order to monitor each backup job)
automatic mail alerting if jobs fail
lightweight software (no mysql, sqlite ok)
optional: S3/Glacier supp... |
0
Before jumping on the full server backups, please clarify these questions:
Backup software's are agent and non agent based, which one do you want to use?
Are you interested to go for open source or proprietary software?
Determine your source and destination are they in t... |
How to control growing SQL database day by day |
I have an SQL database which has a main Orders table taking 2-5 new rows per day.
Other table which has daily records is Log table. It receives new data every time a user accesses the login page of the web site including time and the IP address of the user. It gets 10-15 new rows per day for now.
As I monitor the da... |
0
I typically export the rows from the production server, and import into a database on a non-production server (like my local machine), then delete the existing rows from the production server. Also run an optimize on the production server table so the size is recalculated... |
Restoring phpbb forum from locally stored(not backup) files |
I have downloaded phpbb forum folder to local system. I have all the files in the system. I didn't take any backup in any conventional ways. Now I want to restore my forum using these files. I have tried to install phpbb again and after wards tried replace forum folder with my local folder.
Problem: I have deleted my ... |
Posts are stored in the database. There is no way to restore them from the forum files.
|
Creating a backup batch script |
I'm trying to create a backup batch script. Here's what I have so far:
@echo off
set drive=E:\zaloha\Backup
set backupcmd=xcopy /s /e /h /y /q /i
echo ### Copying the files...
%backupcmd% "%APPDATA%\Mozilla\Firefox\Profiles\6jmi87vr.default\jetpack\jid1-xUfzOsOFlzSOXg@jetpack\simple-storage\store.json" "%drive%\RES_... |
0
These are hints for you to search for more information, not a full solution.
1) if you are copying a single file then use the copy command
2) You have foreign characters in your path and you will need to deal with them, as code pages and unicode may be the issue.
3) Rar s... |
Automating DB Backup Copies |
I have a specific task to accomplish and doing it manually takes many hours, so I'd like an automated way to do it.
Relevant Info:
- DB is 80GB (35GB compressed with best compression in WinRAR)
- DB is across a VPN connection in the cloud
- Want to compress DB, copy back to Enterprise
- Copying via SMB almost always ... |
0
Windows has an FTP.EXE which uses passive file transfers and can be scripted with the -s:file switch.
If you use 7-Zip instead of WinRar then you will probably get superior compression on the highest settings, and it can create ZIP and well as 7z files.
Another advantage... |
PowerShell script: Zip yesterday's log and move it to a network path |
I am new to PowerShell and I need to create a script (that will also work through the scheduler) that will:
-mount the network path as a drive (I think I did this with the code below)
#Machine hostname - needed for archive creation and identification
$hname = hostname
#Map network drive
$net = $(New-Object -Com WScri... |
0
Since you are already using dastardly com objects you could try the following for zipping up:
$zipFileName = "c:\temp\logs.zip"
$shell = New-Object -Com Shell.Application
New-Item $zipFileName -Type f
$zipItem = $shell.NameSpace($zipFileName)
$zipItem.CopyHere( "Path... |
Shell Script Not Finding File |
Hello I am trying to write a simple shell script to use in a cronjob to copy a backup archive of website files to a remote server via FTP.
The script below works when I type the file name in by hand manually, but with the date and filename specified as a variable it returns that it can't find ".tar.gz" as if it is ign... |
This is because it is looking for a variable name NOW_website_files which does not exist, and thus the resulting file name evaluates to .tar.gz.
To solve it, do:
#!/bin/sh
NOW=$(date +"%F")
FILE="${NOW}_website_files.tar.gz"
^ ^
instead of
FILE="$NOW_website_files.tar.gz"
This way it will concatenate the va... |
Sql Server 2008 R2 Database backup and restore functionality by C# Windows Application |
I develop a windows application for a small shop for generating invoices.
Now I want to give a functionality for the user to make backup of each day database on a button click from the windows application. Also he should be able to restore the database from these backup.
Please help me i searched many topics but not w... |
0
You have to use the using Microsoft.SqlServer.Management.Smo name space and use the BackUp Method provided. It has various backup options.
Please See this link
Share
Improve this answer
Follow
... |
How to create a new database from a backup in mysql |
I used MySQL enterprise backup but I have to restore one table now.
I don't want to touch my existing tables butI want to restore one database into a new databases so I can view the old values and take only couple thigs out of it.
I have apply-log to the database that I want to restore.
then I created a new database c... |
0
You can't just move files around under the data directory and expect InnoDB to notice them.
InnoDB maintains a "data dictionary" which can be thought of like a table of contents for a book. This is how InnoDB knows what tables exist. The data dictionary is updated by DDL ... |
How do I ensure data integrity of ISO images? |
I want to create a long-term data archive of old stuff I don't need daily, but don't want to throw away either (e.g. all raw data of my thesis work). Optical media have failed me too often in the past, so now I am using an external USB disk and - to protect against accidental modification of the archive - I create ISO... |
0
First of all this question should be on SuperUser.
Nevertheless you strategy is is pretty solid. I would use disks in raid for added protection.
I you want to make sure the isos haven't changed you can take their md5sum when you store them and compare it to their md5sum w... |
Delphi checking date to make backup files on a scheduled |
I have a program that writes to a log file and zips it. I want to set it up so that it will take the log file and zip it after a month and clear the file and reset it to do it again if another month has passed
procedure SendToLog(Const MType : twcMTypes; Const callProgram, callPas, callProssecs, EMessage, zipName : St... |
0
You would have to either:
keep track of the last write date somewhere, persistently across app restarts.
query the last write date of the log file itself using the Win32 API GetFileTime() function.
put the current date on each log entry that you write, then you can seek... |
Quicker backup in windows azure |
We are using windows azure for a software and when we release a new version of the system we usually takes the site down and we take a backup with the code below. (CREATE DATABASE databaseCopy AS COPY OF Database;)
The backup is taken to ensure that nothing goes wrong and that we can rollback to the latest version if ... |
0
Alternatively you can use SQL Database Import Export Service - http://msdn.microsoft.com/en-us/library/windowsazure/jj650016.aspx
NOTE: There are many other ways as mentioned here - http://blogs.msdn.com/b/wats/archive/2013/03/04/different-ways-to-backup-your-windows-az... |
How can I backup target files with xcopy? |
I change my project files on live by copying only the changed files with one xcopy command. Is it possible to back-up the target files (only the changing ones) into another location with xcopy? Or with a batch script?
Sorry, my question is not clear enough, here are some further explanation:
I have files in folder A t... |
0
xcopy /d
from the xcopy help
/D:mm-dd-yyyy
Copy files changed on or after the specified date.
If no date is given, copy only files whose
source date/time is newer than the destination time.
Share
Improve this an... |
Best way to automatically move files from google drive to local storage? |
My phone fills up the google drive with pictures and videos. I would want automatically move new files from google drive to local storage instead to free space from the drive. What would be the best practice using Windows as local machine? I'm open to some alternatives as well :).
|
you need to develop application with google drive SDK
Check This
and check this is also
|
How are delta file backups encoded? |
With a backup application, a good and space-efficient way to back up is to detect changes in files. Some online services such as Dropbox do this as well since Dropbox includes version history. How do backup applications detect changes in files and store them?
If you have a monumentally large file which has already bee... |
0
to detect changes, you can compute the Hash code (such as MD5) for the original and the modified versions of the file. if they are identical, no changes are made.
I think DropBox has its own protocol to detect which part of this file is modified.
you can figure out to fi... |
Bash backup script. Need help finding a file and reading it |
Hi my fist time trying to write a bash script so im kinda bad at it.
I need help with locating a file in a home dir( this file contains a list of files i want to backup). After this i want to loop all lines in the file and make copies of the files.
this is what i have tryed but it dont seem to work:
find /home$n -name... |
If you use the "-T" option with "tar" you can specify the name of a file that contains the names of the files you want to back up.
tar -cv -T filelist -f tarball.tar
|
Simple backup of folder on usb stick with AppleScript |
I'm a new user of AppleScript and I try to settle an script to backup a folder from my mac to a folder on a usb stick.
I started to create this script but it doesn't work.
tell application "Finder"
duplicate folder "/Users/alex/Desktop/test/" to "/Volumes/myusb/test/" replacing yes
end tell
Thanks for you hel... |
0
This should work:
set SourceFolder to POSIX file "/Users/alex/Desktop/test/"
set TargetFolder to POSIX file "/Volumes/myusb/"
tell application "Finder"
if exists SourceFolder then
try
duplicate SourceFolder to TargetFolder replacing yes
... |
get database from xampp (not via phpmyadmin) |
I would like to ask, if it is possible to get my database from an offline (not functioning) xampp ?
You see, I have backed up my database earlier but I am not sure whether there are all the data I need now and the DB is pretty big (like 50 tables). I wanted to go for a local implementation of apache, mysql and PHP for... |
0
First go to localhost/phpmyadmin and create a database as before you have. Then import your database file through browse.
If your database name exmaple.sql then create database name will be example and import example.sql
Share
Improve this answer
... |
Is it possible to not back up some of the files saved in nsdefault? |
I used NSDefault in my app to backup some images and got rejected because it uses 6mb of storage.
Can anyone help me add the donotbackup attribute into it? I would like to keep userdefault directory if possible so old users don't lose their images. Any help would be really appreciated :)
My current code is:
to save:
... |
0
So you want to back up images? NSUserDefaults isn't really meant for that.
Why not try adding iCloud support instead?
Share
Improve this answer
Follow
answered Dec 30, 2013 at 3:16
valh... |
Backup MySQLdatabase to remote server |
I need to backup my MySQL database to a folder under my website root automatically with Cron.
I search about it and finally come to a point as the cron job below.
0 1 * * * /usr/bin/mysqldump --opt --all-databases -u USERNAME -pPASSWORD | gzip > /backup-folder/db_bckp`date +\%Y-\%m-\%d`.sql.gz
However, nothing happen... |
0
I would have cron execute this .sh file. Make sure to validate your public ssh key on external server...
#!/bin/bash
## List of databases to backup
declare -a arr=(database1 database2)
##use something like this to get full list of databases to loop through
#databases=`... |
Can back up specific files automatically from FTP to a specific folder using PHP? |
I have lots of backup files in my FTP.
The file name like : index.php.bk-2013-12-27
I want to back up those files to the folder named /backup/
so inside of my httpdocs folder looks like this.
index.php
backup/index.php.bk.2013-12-27
the following both methods are fine to done this.
01. if any file contain name .bk t... |
0
It can be done (Both solutions).
But you need to tell if the solution (01) need to be recursive or Not. I suppose you know php has got a "time" to run (standard are 60 seconds), so you know that the file you need to backup cannot require more then 55 seconds to get a ba... |
Backing up a MySQL database using PHP |
I was trying to make a backup of my MySQL db called "backup" using a PHP script below, but for some reason, it doesnt work. Any ideas what is wrong? I wanted to create a file called test.sql in the same folder that would contain the data (because the db is quite big I only selected values of Temp>35, but I could chang... |
0
Just Try.
$query = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName WHERE Temp>35";
$result = mysql_query($query) or die(mysql_error());
Share
Improve this answer
Follow
answered Dec... |
Backup/Restore Core Data with iCloud iOS7 |
I am trying to create an iCloud backup of my core data database in my application. I would like to be able to save a 'snapshot' of the database to iCloud and then restore that snapshot to another device that installs the application.
On a side note: I've gotten iCloud syncing to work, but was having problems dealing ... |
0
Saving "snapshots" of your Core Data database to iCloud is not its intended purpose so you are looking to swim upstream.
Having said that, to create a snapshot you could create a second persistent store, connect that second store to iCloud and then copy your current data ... |
How to take backup of all table's last ten days record? |
I want to take backup of my database xyz.
Tables of this database should contain all records for last ten days only.
Is it possible? If yes then how I can achieve it?
|
0
You could check the answers posted here.
Or if you specify 10 days because that was the date of the LAST backup operation, you can use MySQL Backup's Incremental backup operations.
If you need to capture some of the DB to synchronize it with a different DB, this SQLyog i... |
Conditional maintenance plan for backups |
I've set 2 schedules on a maintenance plan (SQL Server) for backups.
One of the schedules is set to run each 1 hour for a full database backup, and the other is set to run each 20 minutes for a differential backup.
The problem is that they will execute at the same time when the first schedule runs.
How can I set the... |
0
You could create 3 Maintenance plans:
One to do the Full Backup hourly Starting at eg. 08:00,
another to do the 1st Differential Backup repeating hourly starting at eg. 08:20
lastly another to do the 2nd Differential hourly starting at eg. 08:40.
As these can then r... |
Running a batch file in powershell |
I am using the application LabTech to write scripts for Leo backup. I have a batch file on my local C drive (backup.bat). I need that file to run when a backup fails. How would I do this in powershell with commands? I looked on Google and could not find anything concrete.
Any help is appreciated. Please let me know if... |
Try this, used the -wait switch so that your powershell script pauses until the backup.bat is complete and the hidden switch so that it runs invisibly.
Start-Process -FilePath 'C:\Backup.bat' -Wait -WindowStyle Hidden
|
Are plists in var/mobile/Application/xxxxxxxxxxxxxxxxxxxxxxxxxxxx/Documents/xxxxx.plist saved during app updates? |
As the question states, I want to know if the plist files in this directory :
var/mobile/Applications/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Documents/sample.plist
is saved when an update is released. From this documentation
It seems that it does get moved when an update is installed. But I still wanted to confirm t... |
Yes, files in your app's sandbox are kept during an update. Though it is possible that files in the Library/Caches folder could be purged.
Keep in mind that the value for XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX will change during an update.
If you are keeping a reference to a file, be sure you only store a relative refer... |
Remote duplicate on FTP server |
I have a server 1 (running Ubuntu), on this server, a website.
I have a server 2 (running Win Server 2012), on that server some application are running and I have space for my backups.
Server 1 has limited space, so I keep backups of both my MySQL database and Webserver file for 1 week only (daily backups).
When doing... |
well, some more research suggested me to go to a web service, so I ended up with the following setup.
in my cron job on Server1, after pushing the backed up files to the FTP server, I call (using curl) a php script on Server2, this PHP script will then call a batch file to do the copy/duplication job all on Server2.
|
EC2 automate backup requires volumeid parameter and already provided |
I downloaded this EC2 automate backup tool and upload it on ec2-user folder. I used SSH to execute it
/home/ec2-user/ec2-automate-backup/ec2-automate-backup.sh -v "vol-XXXXXXXX"
and returned:
The selection method "volumeid" (which is ec2-automate-backup.sh's default
selection_method of operation or requested by usin... |
0
Remove the double quote, you only need them if multiple volumes are to be selected.
Share
Improve this answer
Follow
answered Sep 17, 2014 at 5:48
Andrew FengAndrew Feng
1,94011 gold b... |
Making backup from database to another server |
I have a host on a server and that contains an SQL Server Database.
I have another server in another country and i want have a backup from the database every 5 minutes or after each transaction only insert new row to another database.
After some research i found out i can use linkedservers for this goal.
Is this proce... |
0
I don't know what the linkedserver will do for you.
You are connected from both server via a vpn?
You are in different network (domain) probably?
If you are using a linked server, it means you will probably create trigger or stored proc. You will have to configure msdtc (... |
Get data from installed android app |
I recently wrote and installed an Android app on my device. The app wrote data to the local SQL database and uploaded this data to my webserver. But due to network problems, there are a few records that were skipped, so they aren't on my webserver.
Now i want to get those rows (or my full SQL database) from my android... |
0
You may get access using DDMS.
Share
Improve this answer
Follow
answered Nov 26, 2013 at 8:50
BaschiBaschi
1,1281111 silver badges1414 bronze badges
3
my device is no... |
Using PowerShell to automatically run Library Expansion Option backup |
I am trying to think of a good way to write a PowerShell script to run a backup if it had failed. I am not primarily a PowerShell programmer, but networking has been complaining about the number of emails they are getting from LabTech when a backup fails.
I have the script that checks for a successful backup
I am wan... |
0
I am not familiar with LEO, but a quick search shows they have a command line interface. So use powershell to handle all the logic of when and what backup to restore and then call the LEO command line utility from powershell.
You already have a script to check for a su... |
ubuntu FTP script - hetzner |
I am trying to backup of my application directory, database backup and then sending it to my ftp server at hetzner by using the following script and I get few errors
My server details: ubuntu12-04 (in hetzner)
database: postgresql8.4
my ftp server: hetzner
Trying to take backup at ubuntu12.04 server and copying in ftp... |
I second the suggestion by petrus4, lftp is way better suited to scripting than ftp.
The ...usage open host-name... error and what follows is because you use the variable $site_ftp which is empty. The variable you set is $site. And if you do it with the open command, you must remove the ftp:// prefix.
The warning abou... |
apache error log backup auto |
This is my first question. I don't know how to config error.log has 2 function as below:
The log generated by current day will output to one fixed name log file. e.g error.log. This current log contains the current generated log only.
The previous log will back-up to single log file. e.g:
yesterday is 11/22/2013, so... |
0
You can make use of the rotatelogs command to log rotate the apache logs. Try to put the following as a crontab.
crontab -e
Add the following there.
/usr/local/apache/bin/rotatelogs /path_to_apachelogs.%Y.%m.%d 86400
/usr/local/apache/bin/rotatelogs This path is meant f... |
Backup dead MySQL server |
My computer went almost totally down and I now need to get the data out of it, before I reinstall it. One of the data I need to backup are those on the mysql server. However, I can't run it, so I just need to know, which files should I copy on external drive.
I have instaled MySQL with the xampp bundle. In the xampp m... |
Although it should go without saying that backups are something you make before your computer dies, mistakes happen.
What you should do is image your drive, copy it to something else, in preparation for your reinstall. I'd recommend copying everything as authentically as you can, even if that takes a while. That feeli... |
wordpress backup and restore |
We have a wordpress site installed on cPanel in hostgator server.
We want to remove it from our account because it is not updated from along time and we do not need it at this period. But we want to keep a backup in case we need it in the future.
Could you please tell me if it is enough to:
1\Export the DB from phpmya... |
That about covers it. The only thing you need to be careful of is if the domain changes, or you plan on re-installing everything to a different directory or subdomain.
If the URL changes in any way, that change needs to be reflected under the wp_options table under the site_url option after importing your database. Up... |
Automatically create alias in linux |
I need to create script which would be ran by cron each day. Purpose of that script would be to create alias for one directory that each day has different name. The directory name changes it's name each day like 2013-11-11, 2013-12-11 etc. Actually, new directory get's created.
I figured out that I can list that rec... |
0
Almost ... if I understood your initial request correctly the invocation
should be the other way round (the -f forces the link, saving you the need
to delete the old link first):
ln -f /disk/backup/$dirname /disk/backup/test
Share
Improve this answer
... |
SVN restore from a backup |
I used ftp to copy all files folders which were on a svn server I pulled these off via ftp just copy them on to my external hard drive thinking I can access the files like normal but I cannot all I have is hooks, db, conf etc rev folder which are large but the files are all numbered.
How do I get to the svn data files... |
You did a copy from server files. So, this structure (hooks, db, etc.) is correct.
To obtain your repository files, you should use the Export command from TortoiseSVN, or simply copy-and-paste your repository from the client.
If you don't have this client repository, I suggest you to boot another SVN Server and restor... |
Itunes backup and restore for iPad |
I have an iPad app which stores some images inside Library directory of app.
If I backup my iPad with iTunes and restore the iPad from backup, I can see the images in the previously saved location but My app does not show those images If I try to read the images from same path.
Any idea why is this happening?
I can no... |
Thanks for the responses.
I was installing the app using the xcode and not iTunes which was causing the issue.
I created adhoc build and installed using he iTunes and everything worked fine.
Thanks
|
List of source files - naming convention |
I want to update few of my Makefiles. I want to add backup recipe. It will just create two zips, one for sources and second for binaries (+headers).
For that reson, I want to create file containing list of source files I want to add to archive. I am wondering about filename for that list.
Is there any standard for nam... |
0
NAME = StackOverflow.exe
VERSION = 0.1.0
BASE_NAME = $(basename $(NAME))
.....
PKG = $(wildcard $(BIN)/*.dll) $(BIN)/$(NAME)
PKG_SRC = $(SRC) README.org makefile
pkgdir:
@mkdir -p pkg
pkg: $(PKG) | pkgdir
tar -jcf pkg/$(BASE_NAME)-$(VERSION).tar.bz2 $^
zip ... |
drush: no path to user login after archive-restore |
I'm having the following issue:
I backed up my Drupal7 project on my localhost via
$ drush archive-dump --destination=/var/backup/example.com.tar.gz
using drush 6.1.0 on my Ubuntu 12.04. (apache2/php5.3.10/mysql 5.5.34).
I then tried to restore it to my Mac (OSX Lion) via
$ sudo drush archive-restore /var/backup/exa... |
0
Solved - see comment from Deepak Srinivasan.
Share
Improve this answer
Follow
answered Nov 12, 2013 at 13:57
queerdancerqueerdancer
3511 silver badge55 bronze badges
Add a ... |
SQL Server 2012 does not allow to restore 20GB database |
I've got a 20GB backup of a sql server database and I need to import it into my sql server 2012. But when it starts the imopr process, the following error appears:
Error en CREATE DATABASE O ALTER DATABASE. El tamaño de base de datos acumulado superaría el límite de licencia de 4096MB por base de datos.
I understand ... |
0
I am not sure that this is the case, but because each database is created from model database check if there are no set restriction on the model database.
Also check if you have necessary space available on that drive (I suppose you already check this).
If the limit is 40... |
Mysqldump connecting issue |
I'm trying to make dump with next command:
mysqldump -v -u root -p -h 127.0.0.1 -P 3308 -x --add-drop-table
--add-locks --create-options -K -e -q -A > database.sql
The result (after password input) is message "Connecting to 127.0.0.1...". After this is nothing (no any errors, just waiting).
database.sql is empty f... |
0
From http://linuxcommand.org/man_pages/mysqldump1.html
The password to use when connecting to the server. If you use the
short option form (-p), you cannot have a space between the option and
the password. If you omit the password value following the --password
or ... |
Where should a well-behaved daemon store auxiliary files? |
I have a daemon that backs up some system files before it does anything else and restores them afterwards. What is the right place to put these backups? I'm thinking somewhere in /var or /var/opt, since I don't want to pollute /etc with a bunch of backup files that aren't really doing anything.
If it matters, I'm spec... |
0
If they are not to be maintained after a reboot or between invocations of the program why not use /tmp
This directory contains mostly files that are required temporarily. Many programs use this to create lock files and for temporary storage of data.
Share
Impro... |
Backup and Truncate-Mysql |
I have a requirement that there is one MySQL table with 50 million rows of data.I want to take backup of last month data and want to insert to a new table.After successful backup,that much data need to be truncated.Each second I am getting packet from a device and inserting to this table.So load everything need to be ... |
0
reset the counter and clean the table
TRUNCATE TABLE "table_name";
Share
Improve this answer
Follow
answered Oct 5, 2013 at 5:46
Juan Castro LuritaJuan Castro Lurita
5311 gold badge11 s... |
Read inside .DAT file using C# |
I have .DAT from SharePoint, to recover some of the data I need to read the .DAT file using C#.
Some of the options are
StreamReader objInput = new StreamReader(filename, System.Text.Encoding.Default);
string contents = objInput.ReadToEnd().Trim();
string[] split = System.Text.RegularExpressio... |
0
You can read .dat file using c#, but it depends on the structure of data how you have inside the .dat file
take a look at this link
How-read-data-from-DAT-file-using-C
how-can-i-read-data-from-dat-files
Share
Improve this answer
Follow... |
Automated MySQL DB backup and restore on local server |
I have several websites on several hosting packages utilizing several MySQL DBs. What I want is to get daily instances of ALL these databases and restore them on a local server. So I will have all my databases locally updated from the online ones.
Which is the best way to achieve this.
Thank you.
|
0
I am facing the same issue. My plan is to automate fetching the database backup from a sftp location and then restoring the database in the next location. There are probably several intermediate steps to make sure this happens, like drop database if exists, etc. But I ... |
HBASE backup - how does the java api for export/import work? |
I am working on backing up a ~70TB HBASE datastore. We have decided to go with single table backup to HDFS (for now). I have come across the Java API for export/import here: http://hbase.apache.org/book/ops_mgt.html#export. There is not too much information on Apache's website, and I was wondering if people had any mo... |
0
export/import are actually MapReduce jobs and hence will behave like any other MapReduce job. If NN crashes export/import will fail. To be precise, your Mappers/Reducers will get killed. And you will probably encounter java.net.ConnectException.
Share
Improve th... |
Unable to perform database backup using sybase central |
Error:
The storage control block address is invalid unable to determine disk freespace
SQL Anywhere 9
Sybase Central 4.3
Windows XP
How to resolve this problem?
Button to choose dir is not activated.
I tried also type local and network dir, both the same result (error above).
|
Problem was because, I typed wrong DIR path.
I tried to perform buckup not directly on server, but by the local workstation.
I typed my local machine DIR path and network DIR path.
However correct DIR path, was the local SERVER machine DIR path.
|
How to backup the iPhone app data, permanently |
In my app in document directory, i have two things, first is sqlite to manage database and i have some images directly saved in document folder by user(only local database).
I updated and inserted the images information through sqlite, now the project requirement is that I have to keep that data alive when app get d... |
Since you are concerned with images you should look into using the Flickr API. Flickr will let you store images on their server. The images will persist even if your app gets deleted. Here's some links to check out
http://www.flickr.com/help/mobile/
http://www.flickr.com/services/api/
|
Scheduled Cloudbees MySql Backup |
This may be a stupid question, but after hours of googleing i cant find a suitable answer to this..
We have a buisness critical application running on cloudbees. The sourcecode is backed up properly and we want the same for our db. Cloudbees doc says:
"CloudBees MySQL databases are backed by EBS volumes on Amazon EC2... |
0
You can use a command line script that backups your Databases to your S3 account quite easily, and run it as often as you like. I had exactly the same problem a while back, and wrote up this handy tutorial. It should be perfect for what you want to do.
Share
I... |
Issue with Exchange 2010 - Get-MailboxDatabase -status |
I have 3 mail servers.
1st mail-server for the CAS.
2nd mail-server for the Hub-Transport.
3rd mail-server for the DR/DAG.
I am backing up my 1st and 2nd server with CA ARCServ 16.5 with the following conditions:
Daily Incremental.
Weekly Full.
Weekly Verify.
When the backup job is running, I check everytime that ... |
0
Sounds like your backup software isn't doing an Exchange-aware backup. You may need to install or configure a specific agent/component of the software to do an Exchange-specific backup. Only then would Exchange itself know that it's been backed up -- if you are just doing... |
bat file to backup folder files only if changed increment name |
I'm trying to create a bat file (xp/7) to copy all files in a local folder to a network drive folder but only if the files have changed. If they have changed I'd like to increment the file name by one or put a date (this seems like people have said it's easier).
For example, I have a folder called database which conta... |
0
This is untested - it should copy the changed files by adding a date and time stamp of when the bat was launched, and also copy files that don't exist.
Wmic which is used to get a robust date stamp requires XP Pro and above.
@echo off
cd /d "local folder"
set "remote=\\se... |
How to backup more than 1 database in once in MYSQL using command line on ubuntu server 10.10? |
I am backupping some databases, but NOT ALL from my old Computer using ubuntu 10.10 and MySQL installed ofc.
so i go for
sudo mysqldump "DBNAME" -u root -p > DBBACKUPNAME.SQL
after entering the password, the backup is successfully stored in the dir I am currently in.
Fine.
But now i want to backup more than one DB. I... |
Solved it, using :
sudo mysqldump --databases DBNAME1 DBNAME2 -u SQLUSERNAME -p > SQLBACKUP.sql
|
Incremental backup tar error |
I'm making a backup system.
I have 2 servers : the main sends data to the backup server, then, the backup server compress the data. To save disk usage, I just compress the files that have changed thanks to a flag-file that stores the last backup time.
Sometimes it works fine, but sometimes my script is exiting with an... |
I solved the problem with the following code :
find /home/* -name "."
-not -path "/home/*/www/cache/*" -newer /var/backups/data/flagfile -print0 > files.txt
Then the tar command :
tar czvf /home/backups/incremental/H14/backup.tar.gz --files-from files.txt --quoting-style=shell
The --quoting-style=shell escape... |
Socket connection to serial port |
I needed connect by serial port to APC backup and get any value from it.
How can I connect with PHP to serial port?
I'm using S.O Ubuntu 13.04, and this testing is in my pc directly connect to APC.
|
0
Test you with this:
<?php
/**
*
*/
/ Set up serial open -
$fp =fopen("/dev/ttyUSB", "w");
//check the GET actions variable to see if something needs to be done
if (isset($_GET['action'])) {
//Action has been requested
//Issue the command we wish to send to... |
File access using microsoft.sqlserver.smo.dll? |
I'm using a C# application to Backup and Restore DBs on a remote server using the microsoft.sqlserver.smo.dll.
Testing with my local machine, I can browse backup files to select the backup to use. Can this be done through code for the remote SQL Server using the SQL credentials similar to the way MSSMS does it?
My bac... |
SOLVED: Based on a comment for another question I ran SQL Profiler to determine what functions MSSMS was using, found it was using master.dbo.xp_dirtree, was able to duplicate this in my app.
|
Run commands through Shell Scripts in linux |
I'd like to set up a backup.sh file that executes these two commands when run:
cp ~/SURV/plugins/iConomy/accounts.mini ~/backups/
cp ~/SURV/plugins/CoreProtect/database.db ~/backups/
I want it to just run these 2 commands and display the text "Backups creados con éxito!"
|
Use && between commands: it will execute the next command only if the previous command execution is a success. The || does the inverse => echo "error" will be displayed if one of the both cp fails.
#!/bin/sh
cp ~/SURV/plugins/iConomy/accounts.mini ~/backups/ &&
cp ~/SURV/plugins/CoreProtect/database.db ~/backups/ &... |
How to most easily make never ending incremental offline backups |
I have for some time being thinking I can save some money on external hard drives by making this backup scheme: If I have 3TB data to backup, where less than 1TB changes from one backup to the next and I always want to have 1 copy out of the house, it should be enough to have 3 2TB external hard drives. The idea is th... |
0
If I were in your shoes I would buy an external hard drive that is large enough to hold all your data.
Then write a Bash script that would:
Mount the external hard drive
Execute rsync to back up everything that has changed
Unmount the external hard drive
Send me a messag... |
How to view list of backup files on a particular date [closed] |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog... |
find . -type f -newermt 2013-08-02 ! -newermt 2013-08-02
See here for more info
|
Google backup service doesn't work |
I have problem, else I wouldn't be here.
I am making backup service, but so far, it doesn't work at all. Dunno what problem it is, but when testing (via emulator or via phone, explained way), the data won't be restored. Maybe someone can help?
MyAppsBackupAgent
public class AppsBackupAgent extends BackupAgentHelper {
... |
0
It's an old question but maybe you still need an answer. In your AppsBackupAgent implementation remove onRestore() and onBackup() methods.
Inherited BackupAgentHelper implementations use dispatcher for delivering restore/backup events to registered helper. Your implemen... |
Refreshing tablespace using RMAN incremental backup from one DB to Other |
If I have two DB's having same database structure and every schema has its separate tablespace then can I use RMAN to take tablespace level backups and apply them on other DB's tablespace?
Example: say I have DB schema 'scott' which have been assigned tablespace 'scott_ts' (on both databases), I take backup of scott_t... |
0
RMAN is a backup&recovery tool. You can't use it for that purpose. You can use it only as part of "transportable tablespace" process in this context. You can try to use logical standby DB for that purpose but it's little bit overkill.
Share
Improve this answer... |
Alfresco: unable to backup alf_data |
I am an alfresco 3.3c user with an instance supporting more that 4 million objects. I’m starting having problems with backup, because to backup the alf_data/contentstore folder even in a incremental mode, it takes to long (always need to analyze all those files for changes).
I’ve noticed that alf_data/contentstore is ... |
2
Yes, you can assume that no objects will be created (and items are never updated) in old directories within your content store, although items may be removed by the repository's cleanup jobs after being deleted from Alfresco's trash can.
This is the section from org.alfre... |
GIT remote server backup onto aws server |
Need you help in getting the correct approach to sync/backup all my remote repositories located at one server to another aws server. Basically I need to take a backup on regular basis and host it on aws server. This aws server is going to be used simply for backing up the GIT and not for regular git pushes/pull`s.
Let... |
0
Open bare repository on the remote AWS machine, set it as a remote on the local repo, and do a "git push --all" every day/hour/whenever you want.
Share
Improve this answer
Follow
answered Jul... |
SQL Server Backup fails in drive where OS is installed |
We create an Sql DB Bakup through application using the code below:
ServerConnection srvConn = new ServerConnection(HostName);
srvConn.LoginSecure = true;
Server srvSql = new Server(srvConn);
string FileName = Environment.GetFolderPath(Environment.SpecialFolder.Desktop)
+"//Closing Back-Up");... |
0
Not sure this will work or not but You can try to run the program as administrator through code. There is a good article how to run program with admin rights.
How to force my C# Winforms program run as administrator on any computer?
Share
Improve this answer
... |
rsync remote to local automatic backup |
I would like to auto backup my server monthly and weekly. My server is running Centos 5.5 and while searching the web I'm found a tool named rsync. I got my first update manually by using this command in terminal:
sudo rsync -chavzP --stats USERNAME@IPADDRES: PATH_TO_BACKUP LOCAL_PATH_TO_BACKUP
I then prompt my passw... |
this command worked for me. Combine it with a cronjob
rsync -avz username@ipaddress:/path/to/backup /path/to/save
|
Import only specific rows from hsqldb backup |
I'm trying to create a function in my java application, where the user could select a prior made backup but only import table-rows that aren't in the current database instance. With a MySql database I could dump my tables, rename them inside the .sql to create temporary tables when imported again, and then simply cros... |
0
You can do this:
open the backup database
create a text table that is a copy of the main table, e.g. CREATE TEXT TABLE yourtable_copy AS (SELECT * FROM yourtable)
set a file for the table SET TABLE yourtable_copy SOURCE 'filepath'
copy the data to the new table
set the s... |
Running a series of daily PHP scripts in multiple processes |
Hoping you can help! I am currently building and testing a PHP script that ports data from one web system to another (think data backup) that needs to run daily for an indefinite number of users. The script is fairly intensive, depending on the amount of data that needs to be pulled (the longest execution time I have ... |
0
I'd recommend using proc_open to execute multiple commands asynchronously. If the backup process is itself a PHP script, it can be run using the php binary (e.g. php mybackupscript.php)
Share
Improve this answer
Follow
... |
Setting range properly in DoCmd.TransferSpreadSheet (VBA Access in Excel)? |
For Each Page In Worksheets
PageName = Split(Page.Name, " ")
If UBound(PageName) > 0 Then
Worksheets(Page.Name).Activate
lRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
LCol = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column
Fullrange = Worksheets(Page.Name).Rang... |
I have modified your code a bit, have a look see if you can see where youve gone wrong.
Dim Page As Worksheet
Dim lRow As Long, LCol As Long
Dim fullRange As Range
Dim PageName As Variant
For Each Page In Worksheets
PageName = Split(Page.Name, " ")
If UBound(PageName) > 0 Then
' Worksheets(Page.Nam... |
bat file debug "back up used files" |
Here is what I want to do: I want to write a "bat" file that will check all the files in a single partition to determine whether any file is revised/created today and if any, I would copy these file to a folder. So, if I run this bat everyday before I leave my office, I can backup all the files I used in a single fold... |
0
Can you just use robocopy? This line will copy all files in c:\source and its subfolders that have been modified in the last day, to d:\test.
robocopy c:\source d:\test *.* /s /maxage:1
Of course if you forget to run it one day, you'll miss any files touched that day. ... |
I have encrypted iPhone backup in Windows and its Encryption Password. How to open SQLite DB files from the backup manually without using iTunes [closed] |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by prog... |
Try out this python script here.
python backup_tool.py
|
How to create a MySql Job to create a database backup and a maintenace plan? |
How can I create a MySql Job that runs daily to generate a database backup and stores in on the server?
Also How can I create a second Job that does a maintenance on the database to keep it running without problem?
Thanks
|
0
one possible way is run the following as daily cron.
mysqldump -u <db_user> -p <db_password> <db_name> -h <db_host_if_any> > /home/backups/backup_<timestamp>.sql
gzip it and store it(just a mechanism to reduce size)
gzip /home/backup/backup_<timestamp>.sql
Share... |
Oracle and rman recovery catalog |
I have been handed an oracle database (10.1.0.5.0) with no documentation and very little rman information and I need to change the existing the backup location drive for rman backups.
Before I do that I want to check if the database has a recovery catalog. How do I do this?
If no recovery catalog exists how to do I qu... |
0
What platform are you on?
The CATALOG option will be on the RMAN command line or in the recovery script file. Just "grep" for catalog as a start.
Share
Improve this answer
Follow
answered Jul ... |
Backup my app data |
I've got an application that lets the user make objects of type 'Kind'. In this objects, there are fields like id, date or name. There is also a field called 'bildid' which contains a path to an image on the phone.
All these data are written to a SqLite database. What would be the best way to let the user backup data... |
0
Just zip the whole sql database and let the user choose a folder on the sdcard to safe it.
Share
Improve this answer
Follow
answered May 31, 2013 at 10:04
danijoodanijoo
2,84344 gold b... |
Sql backup to network drive [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 10 years ago.
Improve this question
... |
A few things I can think of:
Make sure that the path in the command is fully qualified (C:... etc) and wrap it in double quotes to avoid issues with spaces in path names. Paste the path into a command window and make sure Robocopy opens OK.
Make sure that the account that the SQL Server instance is running under (pro... |
Copy entire database from one server to another in .NET |
I am tasked with writing a data transfer utility and one requirement is that I copy an entire MySQL database from one server to another. The user will simply click a button when they want the database transfer to occur.
I am a little inexperienced with databases, but I worked with them enough to know how to do what I... |
0
DataTables take up quite a bit of memory. Be careful with this approach, as database size grows, so does the likelyhood that this method will fill up your memory. I would look at using the mysql command line to backup / restore and call those commands from your code.
Usin... |
Are there any userspace programs to interpret btrfs snapshot diffs? |
I am currently looking into backups and want to speed up the process while staying file-based (as opposed to filesystem-based).
I want to use duplicity as the main backup component.
The idea would be to use the features of the underlying filesystem to narrow down the files that duplicity has to scan to determine the d... |
0
The OpenSuSE tool 'snapper' appears to show diffs between btrfs snapshots: http://en.opensuse.org/Portal:Snapper
Share
Improve this answer
Follow
answered Jan 6, 2014 at 12:22
ssamssam
1... |
root space full How to take backup? |
I 'm using ubuntu and windows in parallel. In my hard disk I left some space for windows and linux also. Now disk apace is full. How can I transfer some data from root to other derive without affecting any applications? plz suggest me the best approch
I'm attaching the screen shot of disk usage analyzer!
|
0
I experienced same kind of problem and could move the /home partition to some mounted device in 2-steps after logging in as root(On 'Ubuntu 12.04.1 LTS' server).
Step 1: Move /home to /mounteddevice/home
Step 2: Update /etc/passwd file replacing 'home' with 'mounteddevice... |
Azure Recovery Services - Backup not running automatically |
I configured Windows Azure Backup on my VM hosted on Azure. I did manage to create and upload a certificate following this tutorial and this tutorial.
I downloaded the server agent to the VM and configured it, I then managed to perform a manual backup and it worked fine.
However I scheduled it to run every day at 3am ... |
After checking my VM's event log, I figured out that the backup wasn't running as expected due to limited space in the HD. After I cleared some space it started running as expected.
|
How to use knife-essentials to backup Chef 11 |
I'm trying to use knife-essentials to backup all objects in a Chef 11 server to json files. I created a directory "backup" containing .chef/download.rb
transfer_repo = File.expand_path('..', File.dirname(__FILE__))
chef_server_url "https://localhost"
node_name 'chef-importer'
client_key "~/.chef/client.pem"
repo_mode ... |
0
Check your Ruby version. I would recommend using RVM and ruby version 1.9.2.
This should help you.
Share
Improve this answer
Follow
answered Jul 18, 2013 at 19:37
user2597015user2597015
... |
How to backup a complete file? |
What is the most efficient way to make a backup of a file when it's being opened into the program, so that when the user changes and saves it, there is always a way to go back?
Example:
private void open_click(object sender, EventArgs e)
{
ofd.DefaultExt = "";
if (ofd.ShowDialog() == System.Win... |
0
I would generally create a copy of the file itself, place it in a "backup" folder, and apply some naming scheme to it to indicate its age.
Eg: folder/originalFile.xyz ==> folder/backup/originalFile_2013-04-14-12-48.bak
Update/afterthought: I think the efficiency of this ... |
Back Up Documents Folder to iCloud |
My app builds PDFs unique to each individual. Since they cannot be easily recreated, and would need to be used on multiple devices, I want them to be backed up to be iCloud. The ideal situation would be that they are made on one device, and when downloaded with same Apple ID on another device, all of the documents a... |
You are confusing two different things:
Backup of an individual device to iCloud (Backup)
Sharing/syncing of data by an app with other instances of itself through iCloud (Documents and Data)
You want to look into the latter if you expect to upload from your app on one device and download to the same app for the same... |
MySQL Privileges not Restoring? |
I've just reinstalled everything on my machine. I exported all individual databases from my old MySQL server and I'm attempting to reinstall them on the new one.
However, even after importing all tables, including the "mysql" table which I believe should house all the privileges, no users have any privileges other tha... |
The privileges tables are located in the mysql database. Check if the content is the same, especially in the tables user, db, tables_priv, columns_priv and proc_priv. Another question to did you also upgraded the server to a newer version? If so, check the MySQL Reference Manual if there aren't any changes in the p... |
Difficulties creating an automatic file moving script (Powershell) |
I'll start by stating that i'm pretty new to Powershell but from what i hear it can be pretty powerful.
with that said i'll specify the problem.
i'm trying to write a Powershell script destined to run daily and check the total size of a number of specific folders, inside of each of these folders there are folders sort... |
You are missing a space in where closure. It should be:
where {$_.name -eq name_1 -or $_.name -eq $Name_2}
To be sure that is working corectly use () so your statement will be:
where {($_.name -eq name_1) -or ($_.name -eq $Name_2)}
UPDATE
My full (tested) script to calculate sum of selected directories:
$names = @(... |
Cpanel backup freezing in “fixing mail permission” state |
My restoring action stops when it gets to "fixing mail permission" part of restoring Cpanle backup. Any Help?
|
0
Try to Repair mailbox permissions as below, I hope it will help you if you are going to restore backup for already existing account.
WHM > Email > Repair mailbox permissions
Share
Improve this answer
Follow
... |
backing up .thumbnails powershell |
I have written a backup script, which backs up and logs errors. works fine , except for some .thumbnails, many other .thumbnails do get copied!
of 54000 Files copied, the same 480 .thumbnails do not ever get copied or logged. i will be checking the attributes however i feel the copy-item function shouldve done the job... |
0
Are you sure your backUP function is receiving .thumbnails files in $list1? If the files are hidden, then Get-ChildItem will only return them if the -Force switch is used.
As for other recommendations, Robocopy.exe is a good dedicated tool for performing file synchronizat... |
copy content from table into stored procedure for backup and storage |
i've got a question about raising errors and copying the contents from a table into a stored procedure.
What i need to do is move employee information to an Archive table for storage and backup,Raise Error Messages when employee number does not exist, and only move the employee records that have no sales, currently i'... |
0
Create Procedure ArchiveEmployeeTranactions
(
@SaleNumber int,
@EmployeeNumber int
)
AS
BEGIN
IF @SaleNumber is null
BEGIN
RAISERROR ('Please enter valid Sale Number',16,1)
END
Else IF @... |
Detect if cPanel / WHM is currently running, in PHP? |
I have full automatic backups running fine in WHM, and I'm now implementing a script to automatically download content to a database, however they're not playing nicely together.
There's several dozen feeds I'm trying to aggregate, many of them containing several thousand items, so ideally I'd like this a process runn... |
0
If you already know the name of the backup process shown when you type top using SSH, then I think you can use ps aux | grep your_process_name with BASH using SSH.
You may also call this commands using PHP , more info about this : Run Bash Command from PHP
Share... |
What files in Eclipse contains code templates and keyboard bindings? |
I have three common workplaces where I use the Eclipse IDE.
A nice trick when using multiple common workplaces is to copy certain configuration files to Dropbox, and link to them in the original configuration location. This way, all settings and changes are instantly available in your other workplaces.
You've got your... |
I figured it out.
You can copy your ~/workspace/eclipse/.metadata to somewhere. Change a preference, and sync your workspace to your backup in order to find out what files are changed.
You'll find that a lot of settings are in ~/workspace/eclipse/.metadata/.plugins/org.eclipse.core.runtime/.settings/. The javascript t... |
Bash script for files in directory (backup) |
So, I need to write a script in bash which will backup files of directory.
Script gets files (list of files for backup) as arguments, and last argument must be target folder (directory). If target folder doesnt exist, must be created by script.
I was planning to use for loop for moving through list of arguments (file... |
Use getopts and pass the directory as a named argument:
./myScript.sh -d target_folder file1 file2 file3... fileN
|
GIT: restoring server with remote git repository - how to act right? |
The machine where our remote-repositories are stored crashed. Currently it is restored with a two-day old backup.
Can you give us some advice on what to do?
In our opinion, all we need to do is push our local commits in all branches back to the remote-repo.
Are we oversseing something here?
Any advice would be apprec... |
I don't think there was a need to restore the remote. You could simply push your local repo to a new remote one. That's one of the reasons that made distributed source control so popular, isn't it?
|
how to backup some of the existing files present before unzip |
I have some folders which are zipped together. I want to unzip the folders to some location or different, but if there exists the same file in .zip then I want to make a back up of the file in some location and then the UNZIP command will overwrite the file.
|
0
Unzip to a temp location.
Use the <present> selector to make a fileset of files in both original and temp locations (those that would be overwritten).
Use that fileset to <copy> your files from the original location to a backup location.
Copy over all files from the temp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.