Prompt
stringlengths
14
160
Instruction
stringlengths
18
2k
Response
stringlengths
8
2k
Migrating SharePoint Product Catalog List at Subsite level
I am trying to Migrate SharePoint Product Catalog List from to a Sub-site using List template backup/Restore and getting error Something Went Wrong. While checking the LOGS with the correlation ID Application error when access /_layouts/15/new.aspx, Error=Value does not fall within the expected range. at Microsoft....
0 As per as my knowledge and understanding , Microsoft has not provide any solution for this, If you will try to create any product catalogue list using stp that too you cant do. Share Follow answe...
How to get a backup of embedded Linux rootfs?
I have an embedded Linux environment working well and want save the rootfs part, then to flash others new board with empty nand. So, what I tried. From barebox (before boot of the kernell), I put /dev/nand0.root.bb to the tftp server of my PC. Then I tried rename it in rootfs.ubifs and at the good place to call the "...
0 vicenet, You should do this differently. A UBI filesystem is not like the other images (MLO, barebox, kernel) on your nand flash, or even a hard disk image. So it can't be just copied by using cp on the nand0.root.bb partition. That's the reason, why your new system doesn...
Synology DSM Backup - configuration file
I have 2 NAS DSM Synology 5.1 system and I want to make daily Network BackUp of first DSM to second one. I am using Backup&Recovery tool from DSM GUI (aready have created shared folders, granted permission etc.) and when I go to the part where I can choose Shared folders I do not have option to select all shared folde...
0 The best way is to get a time backup or a total backup. Timebackups are more advanced then the default software, But therefor you have the option of restoring all the data. A total backup is in case our NAS dies and have to reïnstall the OS. Share ...
Android's Backup Manager to backup a minimal file
is it possible to use Android's Backup Manager to backup a minimal file (A text file with 20 words?) I can't quite understand if this is possible and how to do it. ..
0 As you can read at http://developer.android.com/guide/topics/data/backup.html you can save any type of data, including files. Also take a look at http://developer.android.com/reference/android/app/backup/FileBackupHelper.html Share Fol...
T-sql to find backup folder for specific maintenance plan
I have to check multiple servers daily to find their backup folders (and maybe other data, like backup time, databases and backuptype). Is there anyway to write a script to list the backup folder if I know the name of the Maintenance Plan? I found this helpful, but it requires the backup to have been run at least onc...
0 Configure/Enable database mail. Then just create an operator for each job, everytime the job fail, the operator will send out an email. This link has a detailed approach, on how to configure your alerts. Share Follow ...
Backup Sqlite objects in Android
I am about to implement backup for my Android app, and my issue is: The data resides in an sqlite db. Some of the data are just there for user convenience, and can be recreated from other sources. So in order to minimize the size, I wish to export relevant data only (the limit for backup using the Google API is 1mb). ...
0 I recommend you to use vacuum() in order to shrink the db size, or use the auto_vacuum pragma. If your db is something big, you can try to zip it. Delete all unnecessary libs (compat_v7, for example, if you don't need it). Try to compress images with optipng. Try to con...
Backup of local resources on Azure cloud services
We have a worker role that's using local storage directory to save files uploaded by the customer and we'd need to have a backup of those files. Given that we already planned to change the worker role to the storage services available on Azure, is there a temporary solution that we could use immediately to backup thos...
0 You can use AzCopy to bulk copy files from a local file system to an Azure blob container. If you use the /XO option, that will only copy files newer than the last backup - in combination with the /Y option to suppress confirmation prompts, this is handy for running as ...
On the back-uping of python script
Occasionally working with my python script I've closed non-saved script.py file and part of my script was lost. Taking into account that I still have loaded within the shell python where the full script has been loaded. IS it possible to restore full script? Thanks for help, Gleb
0 Yes, in the normal python debugger, you can: >>> l 1, 100000 <...contents of the file...> Share Follow answered Jan 28, 2015 at 16:50 Jimmy SongJimmy Song 23333 silver badges77 bronze bad...
Sql script generated by management studio gives errors when run as query
I have a huge database. I got script of my database schema using sql server management studio. Script contains 176,000 lines. When I copied script to new query window and executed it. It says 1. Incorrect syntax near 'GO' => This error repeats after 90% of error lines 2. Must declare the scalar variable "@abc" 3. The...
0 SQL Server Management Studio (SSMS) is not great at producing scripts, in particular it does not do a very good job of determining the order in which objects must be created in order to satisfy dependencies. As soon as you have one error the chance of further errors incre...
Easily Mirror Client sites
I need to figure out how to easily mirror a client's site, but the mirror needs to sync if the client makes changes on the site. an example is http://www.nailcotehall.co.uk mirrored here http://nailcotehall-px.rtrk.co.uk/index.html?utm_source=google&utm_medium=cpc&utm_campaign=NailcoteLandingPage
If you have linux/unix servers and have SSH access for both of them you can use rsync to sync modified files/directories from one server to another. For example: rsync -a ~/dir1 username@remote_host:destination_directory See: http://www.tecmint.com/rsync-local-remote-file-synchronization-commands/ This can be make pe...
Can not execute a Full SQL backup
I am new in the SQL. Where I work I got a new type of job about automatize a Full SQL backup. Almost got it, it is working from the SQL Server Management Studio as a query. (by the way I have to do it on the Server) So I am trying to execute this query like this way "- sqlcmd -E -S EUTAX-WS\REMEK -i D:\Programs\FastGl...
sqlcmd -U "username" -P "password" -i D:\Programs\FastGlacier\backupAllDB.sql
Web Services - How to get failed backup jobs from NetBackup
I work with SharePoint. I was given a project where I need to call NetBackup web services and download all the failed Backup jobs. Backup Status = failed or something like it. All I know they (backup team) gave me a url http://netbk004/Operation/opscenter.home.landing.action? I have worked with asmx before but I have...
0 Not sure about through the webservice, but I know you can access the state of backup jobs by running the bpdbjobs command and parsing through the output. Share Follow answered Feb 2, 2015 at 20:0...
SQL Triggers to duplicate update changes to another table
So I have an intermitant problem that I need a temporary fix for. (something is causing issues with two tables intermittently (every 3-4 weeks)) One table gets completly cleared out and another seems to have individual records removed... as this is an ongoing issue we are still investigating the main cause but need a ...
You can try to use this UPDATE trigger to update the rows in tblMainbackup while update row in tblMain table CREATE Trigger [dbo].[MainUpdateBackup] On [dbo].[tblMain] AFTER UPDATE AS BEGIN UPDATE tblMainbackup SET tblMainbackup.col1 = i1.col1, tblMainbackup.col2 = i1.col2, tblMainbackup...
Google Ad exchange and detecting no targeted Adverts
We are using Google DoubleClick Ad exchange (https://www.google.com/adx/) for targeted adverts for a customer, What I am after is a way to find out or detect that no targeted adverts were available for display on a page with multiple adverts. I have setup backup adverts (https://support.google.com/adxseller/answer/126...
0 You tagged this question with google-dfp, if you are using DFP then then solving this problem is trivial. Just setup a line-item for AdX for the required ad units and set a floor-price in AdX. Setup another line-item which fills all the impressions that AdX didn't take an...
Oracle database real-time backup + auto switchover
I am a newbie to database administration. I am trying to get things sorted out but as I study more and more about oracle database backup I get more messed up, so I've decided to ask here. Please accept my apologize if I say something ridiculous :p. Here is my "simple" situation 1: Assuming I have 2 server rack, one i...
As per your requirements, Oracle data guard is the best solution. Oracle goldengate uses replication concept. Oracle data guard is purely for high availability. There are various protection modes exist in data guard. You can set protection mode for minimum data loss. During Active data guard, standby database (here on...
Finding latest TeamCity Backup via REST API
I found plenty of information and example about triggering TeamCity 8.1.2 backups via the REST API. But leaving the backup files on the same server is pretty useless for disaster recovery. So I'm looking for a way to copy over the generated backup file to another location. My question is about finding the name of the ...
0 JetBrains support got back to me with the right answer - I should use a POST method, not GET, even if the request body is empty. Here is an example of a working request: curl -u user:password --request POST http://localhost:8111/httpAuth/app/rest/server/backup?includeCo...
C# Windows Phone 8.1 create file container
I want to add multiple small StorageFiles (5-60 KB each) into one big container (ca. 1-3 MB with all files), that I can afterwards upload to OneDrive in Windows Phone 8.1. What is a good and clean way to do that? Compression and/or Encryption is optional.
What about LocalSettings? You may try to store your files there. public void Save(string key, string value) { ApplicationData.Current.LocalSettings.Values[key] = value; } public string Load(string key) { return ApplicationData.Current.LocalSettings.Values[key] as string; }
How to backup and restore large .sql file about 4GB in MariaDB 10.0?
I have a .sql file size about 4GB. I want to restore this database. However 'max_allowed_packet' option is only 1GB. So, how to restore this database? Someone help me please. Thanks
0 Since this is a sql file (text file). Split this file to for example 10 parts and execute them. Share Follow answered Dec 24, 2014 at 9:54 Atilla OzgurAtilla Ozgur 14.5k33 gold badges5050 ...
sync framework on backup/restore scenarios
I am syncing SQL Server databases using Microsoft Sync Framework. My databases are frequently restored to earlier versions, and I need to keep the father (destination of sync process), updated. Now, the thing is that I have a child A, with a table T1, and a father B with a table T1. Both T1 tables have a table that "r...
0 you need to run PerformPostRestoreFixup after you restore the database and before you sync it. the scopes has a replicaid that identifies each replica. if you restore a db, you will have two scopes having the same id which will result to data not being synched. to illust...
how to get incremental backup for mysql using shellscript
here the given below code it's correctly worked for backup but i need to change incremental backup. i want to take backup every 4 hour. how to set time schedular in shell script ? #!/bin/bash TIMESTAMP=$(date +"%F") BACKUP_DIR="/home/admin/$TIMESTAMP" MYSQL_USER="test" MYSQL=/usr/bin/mysql MYSQL_P...
Take a look into mysql binary logs. Basically two steps have to be done create mysqldump copy binarylog that has all changes after the last mysqldump mysqldump provides you a full backup. The binary log all the changes that happened. That is the closest that comes to "incremental" backups in mysql. See http://dev.m...
Auto backup encrypted in zip file
I take backup my database using mysqldump -u nollyvenon -p caretime> caretime. sql && cipher /e /a caretime.sql but I want to autobackup the database in an encrypted zip file I want to run as in scheduler in windows server
0 you did not specify the platform, but if i assume its *nix, then below solution might work for you Auto backup : Using Crontab sample command : crontab -u username -e * * * * * /usr/bin/mysqldump -u USER -pPASSWORD DB | gzip > FILENAME Thanks Share ...
SQL Server : Backup Error
When we are trying to backup our database we get an error. Front End : VB.Net Back End : SQL Server DB Name : PROFITSTORAGE Backup Location : 'D:\Profit\Data\ProfitStorage.Bak' Code: Dim con As New SqlConnection Dim query As SqlCommand Try con.ConnectionString ...
The query is not creating the folder if its not existing. We should create a folder manually instead. Since we are using VB.Net we had to create a folder with the following code before backup: My.Computer.FileSystem.CreateDirectory("D:\Profit\Data\")
Windows server backup: adding more destination?
I'm using Windows 2008R2 configured with windows backup using a dedicated hard disk: http://grab.by/CPhm and http://grab.by/CPhq . Can I add a second destination (a shared folder) to have two backups every night? If I try I have this alert http://grab.by/CPhC and so it seems I don't have any chance. Thank you very muc...
0 Create a simple batch file that can be setup as a scheduled task to copy the completed backup to another location. Share Follow answered Dec 16, 2014 at 23:44 user4317867user4317867 2,4154...
How do I import a single database from a .sql file that contains multiple databases
How do I import a single database from a backup file that has multiple databases on it? The main issue is that the file is 921mb so I can't successfully open it in notepad or any of the IDE's I have. If I could do that, I would get the SQL that I need and just manually copy it into phpMyAdmin. It would be good if I c...
I had a problem like this with some data loading scripts. The scripts were in the form: insert into table(a,b,c) values((a0,b0,c0),(a1,b1,c1),...(a50000,b50000,c50000)); and contained from 5 to several dozen of these hyper-long statements. This format wasn't recognizable by the system I wanted to import the data into...
Drupal not rendering page content
I'm trying to create a full backup of cyclekids.org. I've backed up all the files, dumped the database, and restored it on another machine (beta.cyclekids.org). However, Drupal doesn't seem to be rendering any page content on the backed-up site. Even pages that 404 on the regular site display the same mostly-blank tem...
0 There can be multiple reasons: First, upload some simple php file containing only php info function (http://php.net/manual/en/function.phpinfo.php), call it and see is everything ok there with the server. I.e. do you have PHP enabled at all. Don't forget to delete that...
Mysql create copy of table and all of the data
I need to create a backup copy of a table and all of the data in it. This is what I have tried so far: SELECT * INTO copy_cust FROM Customers; Any help would be greatly appreciated.
You should use: CREATE TABLE copy_cust AS SELECT * FROM Customers
How to use query in mongodump on embedded documents
I'm trying to do a mongodump with query. Below is my syntax. mongodump --db mydatabase --collection records --query '{ "embedded_document.field_1" : { "$ne" : "Zebra" }}' -vvvv What I'm trying to do is dump all records with embedded_document.field_1 that is not equal to Zebra. I have 100 records with Zebra in it, but...
0 which version do you use? And what's your platform? Try this: mongodump --db mydatabase --collection records --query "{ 'embedded_document.field_1': { '$ne' : 'Zebra' }}" -vvvv Share Follow answ...
Generate MSSQL database script using command line
I have a database on server which i don't have RDP access. I need to create a backup of data, stored procedure and functions of the database on the server. I tried "generate script" but it fails saying there is some "Transport layer error" occurred. Is there any way i can generate script of the database on server usin...
0 Check if you can use xp_cmdshell. If yes backup database and copy bak file USE master EXEC xp_cmdshell 'copy c:\sqlbackup\DB.bak \server2\backups\', NO_OUTPUT Share Follow answered Nov 4, 201...
How to create backup copy of a table including table contents
I'm having problems creating a backup copy of one of my tables (I wish to back up all the contents as well). I tried this SELECT * INTO Copy_customers FROM Customers; Any help would be greatly appreciated,
0 To take backup of single table you can use dump command as follows: Dump and restore a single table from .sql Dump mysqldump db_name table_name > table_name.sql Dumping from a remote database mysqldump -u<db_username> -h<db_host> -p<db_password> db_name table_name > tabl...
backup of database using shellscript using crontab fails?
My shellscript for taking backup of databse works fine normally. But when i try to run through crontab there is no backup. this is mycrontab * * * * * /home/mohan/sohan/backuptest.sh content of backuptest.sh are #!/bin/bash name=`date +%Y%m%d`.sql #echo $name mysqldump -u abc --password=abc my_db > $name backup.sh ...
0 A couple of possibilities... first that your programs/commands cannot be found when run from cron, and second that your database cannot be found when run from cron. So, first the programs. You are using date and mysqldump, so at youir Terminal prompt you need to find wher...
Restoring database back up [duplicate]
This question already has answers here: database restore failing with move (7 answers) Closed 9 years ago. I want to restore a backup from another server to my personal computer, u...
I would recommend looking at the names of the files as well as potentially renaming the db just to rule out more options. If it continues occurring that should at least narrow down one more thing.
AppEngine Backup from one app to another
I can't seem to restore my AppEngine backups to a new app as listed in the documentation. We are using the cron backup as listed in the documentation. I get through all the stages to launch the restore job successfully, but when it kicks of all the shards are failing with 503 errors. I tried this with multiple backup ...
I'm posting this hoping this will help someone, as there is really lack of resources around Google's documentation and the web in general about this. While the appengine documentation says this can be done, I actually found the piece of code that forbids this inside the data_storeadmin app. I managed to connect throug...
Redirected folders: Missing files during a domain change. Where are they?
I need start by explaining the scenario and then I'll ask the questions. Sunday evening all redirected folders are copied and placed on a NAS to be accessed Monday morning to restore user files. Monday morning every employee shows up to work to find that there is a new server cluster running a new domain that every co...
0 did the IT guy delete the old local Username ? if not Have you tried logging in as the "old_username"? not using the domain but using computername\old_local_username . Share Follow answered Oct...
Backup a database in WebSitePanel
I can't create a backup of a database (MS SQL 2005), using WebsitePanel. When I select the database and try to click on the "Backup" button from "Maintenance Tools", the "Backup" button is disabled.
This typically means that your hosting plan does not include the "backup" feature in the database section.
MySQL backing up MyISAM tables by copying the physical files - and automating the process
I have 2 databases with MyISAM tables running on a Windows 2008 Server. These databases are about 20GB in size with a few tables with millions of rows. My question regards backing them up on a weekly basis. Currently I do some updates once a week, and then I go to the data folder and copy the physical folders represen...
0 You must create a replication of your MySQL server (master-slave) and: You will have a runtime copy of your current db on slave instance of MySQL. You can stop slave instance of mysql, run backup process on slave and start replication again, it no affects the master inst...
robocopy based on earliest archived date?
I want to then have "Data Files RC" in "C:\Laptop Backups" zipped with date on end of the file so there will be: C:\Laptop Backups\ Data Files RC 9_22_2014.zip Data Files RC 9_23_2014.zip Data Files RC 9_24_2014.zip Data Files RC 9_25_2014.zip Then I want to look at the earliest date in the "C:\Laptop...
0 To keep the latest 14 .zip files in a folder you can use this: remove the echo to activate the delete command. It sorts the ZIP files by date, always skips the 14 most recent files, and deletes the rest. Ensure that the folder shown already exists. @echo off cd /d "C:\La...
how to corrupt sql server backup database
I want to corrupt sql server database backup in order to test some thing on sql server. I open backup file in notepad and clean some data from it. Does anyone have better solution? Some time backup file is huge and I can't open it in notepad.
0 Notepad is horrible at big files. Use notepad++. Or write a small c# app to open the file, read the bytes and somewhere in the middle, write some random bytes. Similar to this: Open existing file, append a single line Share Follow ...
MySQL Auto Export as .SQL Whenever Data Changed
I am trying to Sync Local and Remote MySQL DB. I have Completed Remote Side Work and need an idea on how to Export MySQL DB locally whenever Database get Change. Any idea or existing Technique.
0 If you want to "sync" between 2 MySQL servers not using replication, you can use the Percona Toolkit and you use the tool called "pt-table-sync". See here : http://www.percona.com/doc/percona-toolkit/2.2/pt-table-sync.html Share Follow ...
How to back up Fedora Linux and restore or load image in VMWare
Good afternoon, I have a task of backing up an entire drive ~20gB of a Fedora Installation (don't know the exact release). I would prefer to back this up into an image on an External Hard drive, so if the system fails, I will be able to easily restore it onto an identical drive. The drive the system is on is not a har...
0 Rsync is a good backup tool, but if you want a complete dump of everything that can only be restored to the same drive, look at the good old dd. It can dump the whole drive to a file that you can later use to restore. Share Follow ...
SQL backup "Operating System error 13", system.Io.error
I lately changed my virtual machine from a Virtual Box to Hyper-V because of better performance on Hyper-V. After I did this I cannot restore a database (2008R2 all environments, same version) from outside a test or production environment, and I could before. I request this error in my SQL log: backupiorequest::report...
I tried to look at the permission for the SQL database, it seems to be ok. Tried to move it back to the original server. Seems that something went in the transaction to the endpoint. The SQL.bak. Tried to do it again got the same result. So something is going on when im transfer it to a shared drive and grabbing it f...
Cron entry to run first saturday of every month
I have a cronjob that runs every saturday at 4am like: 0 4 * * 6 /var/lib/backup_weekly.sh >> /var/log/backup_weekly.log 2>&1 Is there a way to run a different script (backup_monthly.sh) at 4am the first saturday of every month? without running the script above (backup_weekly.sh)?
0 I believe you would just add another line to the crontab and put the script you want to run and the specific date and time. Also here is a link for cron jobs in Unbuntu not sure what flavor your running but i know it works in Debian 4.6 (Squeeze) Share ...
Mysql Auto Backup on ubuntu server
After months of trying to get this to happen I found a shell script that will get the job done. Heres the code I'm working with #!/bin/bash ### MySQL Server Login Info ### MUSER="root" MPASS="MYSQL-ROOT-PASSWORD" MHOST="localhost" MYSQL="$(which mysql)" MYSQLDUMP="$(which mysqldump)" BAK="/backup/mysql" GZIP="$(which ...
0 Why reinvent the wheel? You can just use Debian's automysqlbackup package (should be available on Ubuntu as well). As for cleaning old files the following command might be of help: find /mysql -type f -mtime +16 -delete Uploading to remote server can be done using scp(1)...
OSCommerce rror: Backup directory does not exist. , please create it and/or set location in configure.php
I have a problem in OScommerce database backup manager directory folder. I tried 777, 755, 775 but still the same error, it says Error: Backup directory does not exist. , please create it and/or set location in configure.php. The folder was there and also in the config file: define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'db_...
0 Someone from oscommerce forum just helped me out: This solved the problem: in the admin/includes/configure.php write this define: define('DIR_FS_ADMIN', '/home/"servernamehere"/public_html/admin/'); Share Follow ...
Batch - Copying Files depending on their timestamp
i have two Directories (with sub-directories), A and B. B is a old copy of A, so it's likely that there are: 1) Files in A, but not in B 2) Files in B, but not in A 3) Files in A with a newer 'last modified' Timestamp I want to identify all of these by copying them into another Directory, C I've tried looping over all...
This will use xcopy /l to retrieve the list of files in A that differ from B. Then each file is copied to the adecuated folder in C The initial pushd will allow to use the xcopy command to return relative paths in the form .\file.ext .\folder\file.ext The initial dot is removed by the delims=. and the second for con...
Windows Batch File To Backup Files
I am new to writing windows batch scripts. I am trying to create a batch file that reads Filename and SourcePath from a CSV file & copies the file to a destination path. Destination path is partiall fixed and part of it comes from the source path. I am able to do it if i specify the destination path too in the CSV but...
setlocal enabledelayedexpansion SET BACKUP_DIR=C:\backup_dir\ SET TIMESTAMP=%DATE:~-4,4%_%DATE:~-7,2%_%DATE:~-10,2%_%TIME:~-11,2%.%TIME:~-8,2% FOR /F "tokens=1-3* delims=," %%A IN (list.csv) DO ( SET DEST_DIR="%BACKUP_DIR%%%C" echo f | xcopy /f /y %%B%%C%%A !dest_dir!%%~nA_!TIMESTAMP!%%~xA ) PAUSE
how can i get this script to run without user input
I’m trying to make this batch script automatic. The drive letter changes and i cant find a way in window to force it to use the same one each time. im not using the %date% environment variable because i need the date format to be like this: "YYYY_MM_DD" Is there any way I can i get this script to run without user inp...
This uses: robocopy inside a subroutine to get the current date (an error is forced to get the time stamp of the error in yyyy/mm/dd format) mountvol to enumerate the defined drives vol to test drive accesibility It will search for a "flag" folder (the backup folder) in the drives to determine which to use Once all t...
Optimized Way of Scheduling a Differential Backup
I am working with a data warehouse with SQL Server 2012 and was wondering what would be the most optimized, automated procedure for a backup/restore strategy. Current observations and limitations: 1) Cannot use transaction logs as it would affect my load performance - datasets are potentially huge with large transacti...
Well, there's this ( http://www.sqlskills.com/blogs/paul/new-script-how-much-of-the-database-has-changed-since-the-last-full-backup/ ). I'm just trying to figure out what problem you're trying to solve. That is, if you find that the size is below some threshold, it will be (by definition) cheap to do.
zookeeper synchronization and backup strageties
I am new to Zookeeper and have some doubts: when a leader server is down, what's the backup strategy? does some random follower server become leader server automatically? how much delay will the population of change from the leader server to the follower server? this is due to that the write operation only happens to...
0 Yes when the leader server is down one of the follower server becomes master automatically .In zookeepers an ensemble of 2N+1 servers can take care of N server failure . For creating an ensemble check : what is zookeeper port and its usage? The delay depends on the param...
How to Back Up wordpress.org?
I need help understanding the ins and outs of backing up WordPress. What is the best method to backup WordPress.org files and database? Manually through phpmyadmin -or- a backup plugin? . Can backups done MANUALLY result in corrupted backups? Can backups from PLUGINS result in corrupted backups? Does backup plugins m...
0 The Duplicator Plugin gives WordPress administrators the ability to migrate, copy or clone a site from one location to another. The plugin also serves as a simple backup utility. The Duplicator supports both serialized and base64 serialized string replacement. If you need...
SQL Server 2000 Backup fails with Status = 33
I am trying to take a Full Backup of a database size about 75GB. It is SQL Server 2000 - 8.00.2055 x86 version. I have plenty of disk space where the backup is being created. So disk space isn't an issue. The backup process starts fine but half way through it errors out just saying with status = 33. I have looked...
Further investigation and "Googling" solved the issue, The issue was with drive, It was compressed and SQL Server did not like that. Solution Removed the compression from Drive and this time backup completed without any errors and much faster.
Android SQL Backup
Is there any Android Official way of doing sql db backup to SD or Phone? there are several backup helper classes mentioned in the document but all of 'em are pretty useless. I know that the sql file is a simple db file i can use Java IO class to read and write somewhere. but that is not a wise idea if we have latest ...
1 Have you seen the Backup Manager?http://developer.android.com/guide/topics/data/backup.html Here is an article on how to use it with Gson. https://advancedweb.hu/2015/01/06/efficient-sqlite-backup-on-android/ Not sure if this is the best solution but this will allow yo...
Where to begin with managing web servers / business document file management
I've inherited a couple of web servers - one linux, one windows - with a few sites on them - nothing too essential and I'd like to test out setting up back-ups for the servers to both a local machine and a cloud server, and then also use the cloud server to access business documents and the local machine as a back-up ...
0 Personally I think you should explore using AWS's S3. The better (S)FTP clients can all handle S3 (Cyberduck, Transmit, etc.), the API is friendly if you want to write a script, there is a great CLI suite that you could use in a cron job, and there are quite a few custom...
Export content from a yammer network
How can I export all threads - including attachment - from a yammer-network ? Background we have used the free version of yammer for a while - and it has now been decided to use a paid version. Because of that I need to backup all post/images/etc on our existing network. But so far I have been unable to find a suitabl...
It appears to be hidden on the developer portal, however there is a data export API, which is available to paid networks. You will need to use API credentials from a verified admin account to execute the API. Normal user accounts are unable to execute the data export endpoint.
Oracle Rman configuration parameter
i was backing up the control file though RMAN. i put the database in mount mode and take the backup of controlfile . i configure the controlfile autobackup on.by default it was off. after taking the backup. when i open the sqlprompt and put database in nomount mode, and delete controlfile thinking i ll recover it ,AG...
0 As you said: "... take the backup of controlfile ... configure the controlfile autobackup on ... after taking the backup... delete controlfile thinking i ll recover it" At the time you backup controlfile - the current setting of "CONTROLFILE AUTOBACKUP" is still "OFF", y...
Moving files from multiple Linux servers to a central windows storage server
I have multiple Linux servers with limited storage space that create very big daily logs. I need to keep these logs but can't afford to keep them on my server for very long before it fills up. The plan is to move them to a central windows server that is mirrored. I'm looking for suggestions on the best way to this. Wh...
0 You may want to look into using rsyslog on the linux servers to send logs elsewhere. I don't believe you can configure it to delete logged lines with a verification step - I'm not sure you'd want to either. Instead, you might be best off with an aggressive logrotate sch...
VB.net Backup Program that lists subfolders
First time poster here so please be gentle. I’m using Visual Studio Express 2010 I’m trying to create a backup program to backup specific folders and files each night to an external hard drive. I’m using: Dim dirs As List(Of String) = New List(Of String)(Directory.EnumerateDirectories(dirPath)) To get a list of direc...
0 You need to walk the tree. You need to create a recursive function iterates through the sub-directories of directories. For example Here is the crux of it: Private Sub RecurseDirectories(ByVal di As DirectoryInfo) Try For Each d In di.GetDirectories() ...
T-Sql Script for SQL Server Backup Maintenance Plan?
What is T-Sql script for backup maintenance plan? I want to manage that from app. actually, i want to Configure Automatic Backups with Task Scheduler with T-Sql script from app . Thanks.
ok you should to use sql agent In Object Explorer, Connect to SQL Server, Expand 'SQL Server Agent' node, Expand Jobs; right click ; select menu 'New Job' Type in name of the SQL Agent Job Create a backup job Step Click on 'New' to create a new job step Type in name for job step and T-SQL statement to backup database...
How to backup indexes in Solr 4.9?
I've installed and configured the last Solr release - Solr 4.9. It contains more then 10000000 articles and it works perfect at the moment. But I worried about data loss and I want to back up my Solr indexes so that I can recover quickly in case of catastrophic failure. I've waste a lot of time to find solution or gre...
0 One way of doing it through cron, is to simply back up the data folder of the collection as well as the instance folder with all the configs. If you take the data folder and stick it into another collection with same config it will work fine. However I am not sure what t...
Why points rsnapshot backup to live-system?
I have setup rsnapshot with a cron job and stored 7 daily backups of my online server to a backup storage. Everything seemed to went fine since I could access everything in my backups I mounted via NFS. One day I actually needed to restore a lost important file from my backup. Unfortunately each daily backup just show...
Be aware of symbolic links (aka symlinks)! They get rerouted to the live system - even if you use them in a backup path! In my case I wanted to restore a file from a web project. Since my server administration tool ISPconfig generates a hierachical structure and shorter symlinks I am used to take advantage of those sy...
Got fatal error during xfer (setuid failed) - Backuppc cygwin rsyncd
I am trying to implement rsyncd (through BackupPc) on a Windows 2002R2 server which already has cygwin on it (for accessing mail logs). I normally use a lighter installation with just the cygwin1.dll and rsyncd.exe plus the config files (rsyncd.conf, rsyncd.lock, rsyncd.log & rsyncd.secret) and install as a service so...
Unfortunately I could not get around the setuid error however I found a different implementation that allows me to achieve the same results with my systems. Here is the guide that I followed. The crux of this solution involves using DiskShadow in conjunction with Rsyncd and it requires Diskshadow Scripts to run as par...
svnadumpfilter only the lasts 10 revision
I have a svn repository that I backup with svnadmin dump myrepo | gzip -9 > myrepo-$(date +"%Y-%m-%d-%T").dump.gz hourly (I'm a little crazy). There is a way for dump the last only 10 or 20 revision of the svn? Thanks
svndumpfilter has nothing common with revision ranges, svnadmin dump can be used with -r LOWER:UPPER option, svnlook youngest give you latest revision in repo.
Bulk Log Database query T-SQL
What is the query to bulk log backup a database I have the following for SIMPLE AND FULL, is it something similar to this? USE [master] GO ALTER DATABASE [database name] SET RECOVERY FULL GO exec [dbo].[up_DBA_Create_Jobs_op] [database name] GO
0 You can change the database recovery model to bulk logged with the following command: ALTER DATABASE [database name] SET RECOVERY BULK_LOGGED; Share Improve this answer Follow answered Jun 23,...
want script to upload download files from FTP
hi friends can any one help me script to upload & download Data from FTP and if its possible to create a log report thank you friends i would be very thankful to you if help
This downloads http but also from ftp. It can upload at least http (never tried ftp), see the docs. To upload change the verb and file.send uploaddata. On Error Resume Next Set File = WScript.CreateObject("Microsoft.XMLHTTP") File.Open "GET", "http://www.pepperresources.org/LinkClick.aspx?fileticket=B1doLYYSaeY=&t...
Software: files backup to ftp-server and built in scheduling?
I am looking for a program that will make scheduled backups to a specific ftp-server/folder. I have tried: Create Synchronizity Great for local backup and has scheduling, but lacks ftp. Can not recognize a mapped ftp-drive letter. AceBackup Has both scheduling and ftp backup, but the scheduling is not built-in but tri...
0 Iperius Backup seems to do the trick. Aaaand now I look like a sales agent. Share Improve this answer Follow answered Jun 10, 2014 at 13:05 Emily AdlerEmily Adler 7322 silver badges1212 ...
Script to get Windows 7 backup status of multiple client computers and send email if one fails
I have looked around and not found anything about remotely checking Windows 7 backup status. We have Windows 2008 R2 SBS running our domain with 5 Windows 7 client computers. Each client computer is backing up to a NAS (some programs we have are a huge pain to re-install if a hard drive dies, so we have a system image...
0 There are so many way you can approach this problem. Here is one way: You can schedule a job on each computer that runs a script which checks the status code of the backup job and if it detects failure send an email. Now? How do you get the task results? You might use som...
percona backup and restore
I'm trying to use percona xtrabackup to backup a mysql database. in the restoring the database according to the documentation: rsync -avrP /data/backup/ /var/lib/mysql/ this will copy the ibdata1 as well. what if I have want to restore the backup into an existing mysql instance with some some existing databases? wo...
0 I suppose you have a local http/php server, so in case you don't need to batch import or export information, I suggest you use a database manager app that can import or export as sql, csv or tsv files. I use a web-based admin tool called Adminer and it works great (plus, ...
How to configure SQL Server 2008 to take automatic backup daily?
Hey anyone know how to take automatic backup of a SQL Server database once a day (or it may be daily or periodic bases)? If you know any configuration of SQL Server then please tell me. Or you may have solution by using a C# / .NET Windows application, then please also tell me.
0 Created a scheduled job, and look at the following to create the backup http://www.sqlexamples.info/SQL/tsql_backup_database.htm. It makes use of BACKUP DATABASE @db_name TO DISK = @fileName; Share Improve this answer Follow ...
Bash backup wont work
I'm trying to gzip a file using a script but it will not work and continues to throw errors. Can someone please giveme some guidance on what is wrong with this script? DEFAULTDIRECTORY=”/Backup” if [ -d "$DEFAULTDIRECTORY" ]; then mkdir -p /backup fi # Makes directory if the directory does not exist # Set the times...
0 Redirecting output from the tar command to DEFAULTDIRECTORY isn't doing what the comment specifies. I think what you want to do is save the file in the DEFAULTDIRECTORY. Change the line tar -vczf ${FNAME}-${TIMESTAMP}.tar.gz ${Chosendata} > ${DEFAULTDIRECTORY} to tar -vc...
Batch file to find a file, create a copy in the same location and run this on multiple directories
here's what I am trying to do. I have a few hundred users My Documents folders in which most(not all) have a file(key.shk for shortkeys program). I need to upgrade the software but doing so makes changes to the original file. I would like to run a batch file on the server to find the files in each My Docs folder an...
0 This powershell script works... save as .ps1 Function GET-SPLITFILENAME ($FullPathName) { $PIECES=$FullPathName.split(“\”) $NUMBEROFPIECES=$PIECES.Count $FILENAME=$PIECES[$NumberOfPieces-1] $DIRECTORYPATH=$FullPathName.Trim($FILENAME) $baseName = [System.IO.Path]::Get...
TFS Admin Console
I wonder that about this problem: tfs_configuration & my tfs_testcollection in TFS Admin Console and SQL MS. What is recommended solution for backups and restore tfs_configuration in TFS Admin Console ? I ask because sometimes it happens that collection and configuration are out of sync ? Could you recomend best solut...
0 It's because this out of sync, is recommended you do the backup by Admin console, using the tools Backup! This feature will syncronize all database of TFS, including Reports, Sharepoint, etc.. Share Improve this answer Follow ...
Backup all web files from VPS [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...
Something like this should work: tar czf backup.tar.gz `ls /www/hosting | grep \.com$ | sed 's/$/\/www/g' | sed 's/^/\/www\/hosting\//g'`
After neo4j backup no index hit
I´m running the community edition of neo4j (2.0.1). With spring-data-neo4j 3.1.0.RELEASE. I have no automatic index configured in my neo4j server. spring-data-neo4j is doing the work for me. After shutting down the neo4j service, i made a copy of the data folder and tried to replace it with the one in my local environ...
0 SDN 3.1.0 should not need to create legacy indexes in your database except for fulltext indexes. It only creates and uses schema indexes by default otherwise, which it also recreates at startup if they are missing. How do you "search for something" Share Improve...
Automatic date stamp backup bat file changes stamp by itself after second loop
So I've been trying to make a automatic backup and date stamp bat program for a folder and its contents. The first time it loops it does exactly what i want it to. But the second time the loop runs, it changes the folder by removing the first 3 numbers and the 0 in 2014. It looks like this. First loop C:\users\usernam...
You should not use " in your set statements. This will put the double-quotes into the actual result. Assuming that your first values were parsed correctly, when you next construct date, the result will be: ""26"."05"."2014"" Then, next time "%date:~-4,4%" will give you "14""". Remove all the quotes from set stateme...
Backing up in app purchases like gold or credits
I have implemented in-app-purchases like Mission packs or "full version" before. However, I am now looking into selling in-game credits. What are some ways of keeping track of spent and total credits, even after removing and reinstalling the app Is it common to sync these totals between the different iOS devices of ...
0 I strongly recommend you to keep track of user's data on your server. That way, even if the user deletes the app, the data will still be available after retrieving it from the server. Also, this will make you able to sync the same data between different platforms, not ...
CMD Copy last created items
i have 6 folders with Database backup files named as COMPANY_Backup_DATE.rar . I want to copy every last file into one folder, compress and copy to my PC. SET FECHA=%date:~6,4%%date:~3,2%%date:~0,2% rem Company1 XCOPY D:\BackupBBDD\COMPANY1\COMPANY1_backup_*.bak D:\BackupBBDD\CopiasBBDD\ /d /s ... rem Company6 XCOPY D...
Finally i founded a code who answers my question. SET FECHA=%date:~6,4%%date:~3,2%%date:~0,2% SET DESTDIR=D:\BackupBBDD\CopiasBBDD\ @rem verify folders and copy last file. @echo off setlocal set srcDir=D:\BackupBBDD\COMPANY1 set lastmod= pushd "%srcDir%" for /f "tokens=*" %%a in ('dir /b /od 2^>NUL') do set lastmod=...
How to copy files from source to target with a unattended bash script?
I want to copy files from a source to a target unattended via bash script. I do have options to use sftp, ftp over SSL, rsync, WebDAV, CIFS I do not have the option to install a SSH key pair on the target side (Strato HiDrive), so scp and sftp won't work, do they? I have read about a scp -W option to store the Passwor...
0 I think you have two questions here. Q1 is how should you keep a copy of your files on a remote server. The answer to that is rsync over ssh. Q2. how to supply a password to ssh when you can't put your key on the remote server. This is answered here: how to pass password ...
Archiving Oracle table data after a particular period of time
We have a requirement of archiving data in an oracle table, older than 6 months into a flat file or a db log automatically. Is there a existing way oracle addresses this issue or we need to do some manual work for this? Also can anyone suggest the different ways of addressing this archiving process like writing a bat...
0 I don't think it is a good idea to archive data into a flat file. Consider to use partitioning of your tables. Differnet partitions can be stored in different tablespaces and thus also on different storages (even a tape storage would be possible in theory). Share ...
Where to store a piece of important data (away from users) that will be backed up by itunes
I am currently making an app and there is an important piece of information I need to store. The user can make a one time in-app purchase. My question is, what is the apple recommended or approved method for storing this? No. 1 is most important to me. For example imagine the user can purchase 10 lives. After his pu...
I am not sure there is one answer to this problem. In my case I save the information in the keychain. Other iOS SDKs such as Amazon's or Facebook's do the same thing as far as I can see.
How to compare multiple files (by content, not date and hour) if they are exactly the same
I need to compare 2 folders with files if they are exactly the same, and the files in one folder are not corrupt. I tried with Total commander but it works only with one file. I tried with Beyond compare and it didn't gave me any resoults :/ Any idea?
0 Try this command in CMD FC /B pathname1 pathname2 for more parameters check this http://ss64.com/nt/fc.html Share Improve this answer Follow answered May 9, 2014 at 6:17 KneerudgeKneerud...
help me restore a database
I have a database backup that I'm trying to load so that I can extract some historical averages. I think it was a MySQL database, but with some syntax adjustments I was able to create the one and only table I need in Oracle 11g. However, I'm having problems with the INSERT INTO portion of the backup. Basically, some o...
0 Use phpMyAdmin to reload the database into mySQL. Share Improve this answer Follow answered May 8, 2014 at 22:01 a codera coder 54444 silver badges2323 bronze badges Add a ...
what is used for the directory in a rdiff backup command
I need to delete backups to open space on my server. Though I don't know what the directory I should specify is in the command to delete them rdiff-backup --remove-older-than 20B host.net::/remote-dir. So far my directory looks like this on the backup server. \home\admin\server1\ Then I have a folder inside tha...
0 According to the rdiff-backup man page, you use the destination directory along with the --remove-older-than option. The destination directory is the one that contains the rdiff-backup-data directory. Besides the directory issue, you also have an incorrect time spec for t...
Datastage Backup Configuration
I'm using Infosphere Datastage & Quality Stage 8.5. I need to know how to backup the whole datastage environment including DB2 files, configurations, etc. to prevent crash event on servers. Please provide with the documentation as well.
0 Detailed instructions for backing up InformationServer 8.5 can be found here: 8.5 Backup Later versions of Information Server do have a backup and recovery tool. This tool works against multiple versions of the DataStage product (back to 8.5). See the following link: Info...
What solutions are there to backup millions of image files and sub-directories on a webserver efficiently?
I have a website that I host on a Linux VPS which has been growing over the years. One of its primary functions is to store images/photos and these image files are typically around 20-40kB each. The way the site is organised at the moment is all images are stored in a root folder ‘photos’ and under that root folder ar...
0 Since you indicated that you run a VPS, I assume you have shell access which gives you substantially more flexibility (as opposed to a shared webhosting plan where you can only interact with a web frontend and an FTP client). I'm pretty sure that rsync is specifically des...
Zip high volume of folders & files
I've a huge problem with backup of one share which contain a huge volume (10 000 000 +) small files. As far as I know total MegaBytes of those files are not so big, but the biggest problem is number of files. First things first: - share is more or less "regular" so there is a root directory which contain lets say 30 d...
0 Ok, if you have PSv3 or higher you can remove the $_.PSIsContainer -and and instead add -Directory to the GCI command which should help speed it up by filtering at the provider level instead of afterwards. This will stop it from recursing everything and will just pull al...
Batch script that delete old Backups and keep just one
I start a script --command=STATISTICS --statdata=SAVEPOINTS > C:\Safepoints.txt that generates an output like this. Page count for each save point version: 0: version=0, status=3, ts=2014-03-18 16:24:51.764, page count=68861 1: version=1, status=3, ts=2014-03-18 17:49:25.622, page count=68861 2: version=2, stat...
0 I'm not sure to undertand what/when to ask for savepoint deletion, but.. @echo off set "last=-1" for /f "tokens=1 delims=: " %%a in ('findstr /l /c:"status=3" safepoint.txt') do set /a "last=%%a-1" if %last% geq 0 ( RunWhatEver --command=DELETE_SAVEPOINTS 0-%last% ) ...
Restoring site using .sql backup import
I'm unable to restore my site database and need help figuring out why. The Wordpress site is on my local computer. Here's what I did: • Exported the backup file in a zip format • Made updates to plugins through Wordpress platform • Site crashed from bad update; tried to delete that plugin and made things worse • Decid...
0 To import your database, open it with your text editor like NotePad++ locate (should be at the beginning of the file) and erase the line: "CREATE DATABASE yourdbname" Save it Now try to import it again Also, it seems like you have only one database called Wordpress and ...
How to backup an iOS enterprise app and install on multiple devices
The question is not about programming. It is related to back-up of an iOS enterprise app(not AppStore) and installing it to multiple devices. Can we back-up an enterprise app along with its Document-Directory and then port that backed-up app to the multiple iOS devices along with the data in Document-Directory? I can ...
Got it - Apple Configurator The device back-up feature can be used to restore and back-up an app along-with its data. More is here
Some confusion on backup whole data in redis
Document say: Whenever Redis needs to dump the dataset to disk, this is what happens: Redis forks. We now have a child and a parent process. The child starts to write the dataset to a temporary RDB file. When the child is done writing the new RDB file, it replaces the old one. Because I want to backup whole data, I t...
0 What does the file mod timestamp of temp-21331.rdb say? It sounds like a leftover from a crash. You can delete it. The documentation is definitely correct. When rewriting, all info is written to a temp file (compressed), and when complete, the dump.rdb file is replaced by...
MySQL data migration using .frm .ibd files [duplicate]
I am trying to restore a database in PMA but only have access to frm and ibd files - not the ib_log files which I understand you need. I know I may not be able to recover the database data but is it possible to recover the structure of the tables from the frm files?
I restored the table from only .frm and .idb files. Get the SQL query to create the tables If you already know the schema of your tables, you can skip this step. First, install MySQL Utilities. Then you can use mysqlfrm command in command prompt (cmd). Second, get the SQL queries from .frm files using mysqlfrm comman...
Neo4j enterprise backup Windows 7
I'm trying to run an Neo4j-database online-backup. I am using a Windows 7-machine and Neo4j enterprise 2.0.1. I'm pretty new to all that database stuff, so I need pretty precise advice. So far I have tried various steps to run the backup: I created a clear directory for the backup (C:\Users\Tobi\Desktop\neo_backup) ...
You have to run this from your Windows command line, execute cmd from the start menu, navigate (cd c:\your\path\to\neo) to the Neo4j installation directory and run it from there. Also I think at least on Windows it's called Neo4jBackup.bat (but I'm not sure, having no Windows)
invalid number of parameter Backup file
i want to backup file from C:\ to D:\ but i have some problem about the name of folder .name of folder is "C:\test back" and "D:\new" this is my code @echo off cd\ xcopy C:\test back D:\new a error is invalid number of parameter. when i change name of folder test back to test_back it still ok xcopy C:\test_back D:...
0 This solves the space issue, and should copy the files including folders. @echo off cd\ xcopy "C:\test back\*.*" "D:\new" /s/h/e/k/f/c Share Improve this answer Follow answered Apr 9, 2014 at ...
Is it possible to restore MS SQL backup databases that are in excess of 10 GB for free?
I am currently using Microsoft SQL Server Studio Management Express to restore MS SQL backup file databases. Although the majority of my files are less than 10 GB, there are some that are greater. Is there a possible solution to restore the files greater than 10 GB for free? Thank you all for your help!
0 No there is no way you can do this if the data file is greater than 10GB. The size limit is for the data file(log file excluded). The database size limit was raised to 10GB in 2008 R2 and 2012.Remains the same in 2014 too. This 10GB limit only applies to relational data, ...
Backup SQLite database to email?
I have an app with SQLite database. I want to add an oportunity to do backup/restoration of database. I see a lot of answers about backup to SD card. But what if a device has no SD card? How to implement backup? Or maybe I can send database.db file to email, that user pointed, and download it from there when it's need...
0 I'm not aware of any way that can help you do that. however you can do a select on all your tables, put them in a CSV,XML or JSON file and then compress them. Share Improve this answer Follow ...
OpenVZ Web Panel Daily Backup
I am using OpenVZ Web Panel to manage my virtual machines. For some reason, OVZ Web Panel's "Daily Backup" option will only store a daily backup of each virtual machine. I have configured the Backups to keep to more than 1 under the User's Profile settings - setting it to values higher than 1 and "unlimited" - but t...
0 the easiest and lazy-est way to do this, IMHO, is to write a script and then a cron job to run that script. e.g. cd /path/to/files mv filename filename`date +%y%m%d` find /path/to/files* -mtime +5 -exec rm {} \; in some script file, where filename is the name of that o...
ubuntu bash script to make backup of /home/$user but keep the newest one
I have a ubuntu bash script that makes a .zip file of the home directory of that user, for example admin, the name of the zip is like this YYYY_MM_DD_HH_MM_backup_admin.zip but for example after that I make another backup of the user admin2. Those files are going to the folder /home/admin/files_zip, then with that I w...
0 Strongly recommended here use of logrotate utility available on most of *nix distros. It has following options of your interest: compress Old versions of log files are compressed with gzip by default. dateext Archive old versions of log files adding a daily ext...
Backup local svn repository to Google Drive
I have been using Tortoise SVN and VisualSVNManager to create local svn repositories for my projects. Is there a way to back up those repositories to Google Drive? I know that you can use svnadmin hotcopy path/to/repository path/to/backup --clean-logs to back up locally. Could I use this to back up to Google Drive? ...
Backup to external drive since Google drive is not very safe. Thanks to arkascha!
How to backup/replicate Azure store onsite
I have a Azure website that allows customers to upload documents. There are a lot of documenet (~200Gb so far). I need a way to backup the documents to another location (Azure or other location), or have live replication to a server. Is there anything I can use that will do this?
0 Have you looked at Azure storage redundancy options? The geo redundant option might solve your replication need. http://blogs.msdn.com/b/windowsazurestorage/archive/2013/12/04/introducing-read-access-geo-replicated-storage-ra-grs-for-windows-azure-storage.aspx ...
using background process take large db back up in cakephp?
What I basically want to do is have my php web application click on button ( excel report generator) that may take a few minute and immediately return control to the page process terminate. So here's the workflow: User clicks 'generate Report' button ajax call made to '../city/generate-report' and returns immediatel...
0 How often do you think the backup script will run? It should not be possible to run multiple instances in the same time, correct? Would setting this up a cron work? (nightly, or two times a day) The backup script should be a Shell script. The generate-report action woul...
Script to take a S3 bucket, Compress it, push the compressed file to an SFTP server
I have a s3 bucket with about 100 gb of small files (in folders). I have been requested to back this up to a local NAS on a weekly basis. I have access to a an EC2 instance that is attached to the S3 storage. My Nas allows me to run an sFTP server. I also have access to a local server in which I can run a cron job ...
I think the most scalable method for you to achieve this is using AWS Elastic Map Reduce and Data pipeline. The architecture is this way: You will use Data pipeline to configure S3 as an input data node, then EC2 with pig/hive scripts to do the required processing to send the data to SFTP. Pig is extendable to have a...
Oracle backup and recovery tablespace
In Oracle 11.2 DB I have: - transaction table in tablespace users and - transaction_bkp table in trans_bkp tablespace Transaction table holds data for 1 month and transaction_bkp should hold data as long as possible. Problem is that trans_bkp tablespace becomes full after 6 months. Idea to resolve this problem is ...
Make use of RMAN and define your retention policy. Backup tablespace trans_pkp using something like (for as long as you like to keep it) BACKUP TABLESPACE TRANS_BKP KEEP FOREVER NOLOGS TAG 'FIRSTHALF2014; Truncate table transition_bkp Restore: Make use of TSPITR (Automatic Tablespace Point-in-Time Recovery) Utiliz...