Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
Bash script to backup multiple directories specified in config file |
I'm having some difficulties with this. Basically, for work I need a bash script that backs up a variable number of directories that are stored in a config file.
I'm sure I need to import the list from the config file and just use a loop to copy all the directories across. I have it working for a single directory. My ... |
I'd personally do it slightly differently and have my configuration file more of a "control file". For example:
/path /path2 /laptopBackup
/tmp /test /bigmachine
etc.. 1 line per mount, 3 fields per line (source, destination, backupfoldername)
Then use something like :
while read SOURCE DESTINA... |
How to take table backup in SQL Server Express |
I have one SQL Server database table. I need to take backup of my table daily based on the date. For that I need to write a script. But I'm new to SQL Server can any one please help me.
Thanks in advance
|
2
You could copy it with command
select * into new_table1 from primarytable
This will create a table named new_table1 with data from primarytable.
You must of course backup the whole database.
Share
Improve this answer
Follow
... |
Rejected iOS app reason : Data Storage Guidelines |
I download some data and save it to Library/PrivateDocuments directory. every file i download in this- Library/PrivateDocuments directory i set "do not backup" attribute. and apple still says :
"In particular, we found that on launch and/or content download, your
app stores too much data (10.3 MB after app launch) ... |
2
I use NSCachesDirectory (Library/Caches) and never got problems with apple.
Share
Improve this answer
Follow
answered Sep 11, 2012 at 11:46
Jonathan CichonJonathan Cichon
4,4061616 si... |
Backup solution for a filesystem containing hard links |
I have a Linux filesystem that I would like to make backups of. I want to image the entire filesystem, for later restoration if needed. However, this particular filesystem contains multiple hard links to some files, which must be preserved by the backup and properly re-linked when it is restored, exactly as they are n... |
If you make an image of the filesystem, you will get it exactly as it was in the moment you did the image (links and everything, these are part of the filesystem information). You're probably mistaken the filesystem itself with the logical entities it represents (files, directories...).
I personally used standard tool... |
backup variable [closed] |
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve th... |
You can simply serialize and deserialize your datastructure, it certainly looks Serializable. Tip
Or if you prefer more robust solutions, you can create DB tables with simple DBs (outside the process of your app), so it can survive the crashes, and reload your datastructure. (For example some simple Java based DBs: Ja... |
Amazon S3: automatic deletion of certain files with s3cmd |
I need a script for s3cmd that sends the deletion command for some files in my Amazon S3 bucket. I know there's this method built-in but it's not useuful. Let's see why.
At the moment I have a script that backups my database every midnight and my websites files every Friday and Tuesday (still at midnight).
The script ... |
2
To configure s3cmd in order to be able to run in in your scripts run:
s3cmd --configure
Run this command from the user who has to run the backup script or copy the generated file to that user home directory.
To delete file with s3cmd you use the del command, so, in you... |
joomla's akeeba is backing up ALL tables on my db |
I have a database, my_db; and I have a joomla site, my_joomla_site, that stores its tables there. However, my_db also has other tables that are UNrelated to my_joomla_site.
When I use Akeeba Backup to backup my_joomla_site, Akeeba packs all of the tables from my_db. I only want it to pack/zip the appropriate tables of... |
Akeeba Backup has a database tables exclusion functionality. Refer to their documentation here for answers:
https://www.akeebabackup.com/documentation/akeeba-backup-documentation/database-tables-exclusion.html
|
mysqldump with single tables much slower than with --all-databases |
I use two different ways to backup my mysql database. mysqldump with --all-databases is much faster and has a far better performance than a loop with to dump every database in a single file. Why? And how to speed up performance for the looped version
/usr/bin/mysqldump --single-transaction --all-databases | gzip >... |
There are many differences.
In A you are writing to gzip which compresses the data before writing to disk. B writes plain sql files which can be 5-10 times bigger (results from my database). If your performance is disk bound this could be the solution
-c = "full inserts" is not specified in A
-q is not specified in A... |
back up mysql database using php |
I'am using the code below to make a backup to mysql database . but when I import the backup file to new database the file imported successfuly but the new database is empty(no tables).
this is the code which I use:
<?php
$dbhost = 'localhost:3036';
$dbuser = 'root';
$dbpass = 'rootpassword';
$backup_file = $... |
1
I think this script will be helpful to you for taking dabase backup
<?php
backup_tables(‘hostaddress’,'dbusername’,'dbpassword’,'dbname’);
/* backup the db OR just a table */
function backup_tables($host,$user,$pass,$name,$tables = ‘*’)
{
$link = mysql_connect($host,$... |
Can I open .bak file without SQL Server? |
I want to open an .bak file that was created with SQL Server. There is some method to open that database with any other program?
Thanks.
|
2
I suppose that you are a Windows user, then, you can use Notepad to browse the database if you just need to check some records.
Share
Improve this answer
Follow
answered Aug 15, 2013 at 9:48
... |
run job file via ssh command order how? |
about run script.sh via ssh
#!/bin/bash
/usr/local/cpanel/scripts/cpbackup
clamscan -i -r --remove /home/
exit
are that mean run /usr/local/cpanel/scripts/cpbackup and after finished run clamscan -i -r --remove /home/
or run two command at same time ???
|
2
Commands in a script are run one at a time in order unless any of the commands "daemonizes" itself.
Share
Improve this answer
Follow
answered May 26, 2012 at 2:00
Ignacio Vazquez-AbramsIg... |
addSkipBackupAttributeToItemAtURL -> NSString parameter? |
In order to follow the Data Storage Guidelines I must use the below method to add a flag to say to not back it up to iCloud. However, the parameter here is for a NSURL. I need to pass it a NSString like from a line like so
return [[self offlineQueuePath] stringByAppendingPathComponent:@"SHKOfflineQueue.plist"];
Here ... |
You don't need to modify the method. Convert your string to URL.
NSURL *url = [NSURL URLWithString:@"your string"];
|
How can I check if a Ringtone exists? |
In my app, I'm storing the user's choice of a ringtone in a SharedPreference file. When the app is reinstalled and the backup is restored, I want to check if the ringtone still exists on the device, because if it doesn't I would want to use the default ringtone (as opposed to playing nothing).
So to do so, I plan on o... |
Assuming that you are storing the ringtone as a content:// Uri value, I would use either openInputStream() or getType() on ContentResolver. getType() is probably "the most lightweight", but it might be prone to false negatives (e.g., ringtone exists but the MIME type cannot be determined for some reason).
|
backup of postgresql database from my application |
I've got application which contains a database based on Postgresql. I wannna get a backup of this database using my application. for ex. I wanna click an option in program menu and wanna get file with database backup. I got all administratior rights for this database. Application is wrtitten in .net 4.0 (C#), windows ... |
1
Maybe you can include a copy of pg_dump.exe binary for Ms Windows (and required dlls) with your application. Then invoke it with proper parameters from a GUI.
(you can use Dependency Walker to find out what libraries are required by pg_dump.exe)
Share
Improve th... |
How to get a backup of files at specific interval of time? |
I have created a web application storing files online. I want to get a backup of those uploaded files on a regular basis, meaning after a day or an hour. What should I do?
|
2
You want to use cron if you're on linux or task scheduler if you're on windows to schedule a periodic script.
Share
Improve this answer
Follow
answered Apr 23, 2012 at 9:42
JackJack
5,... |
Batch-file backup in windows, recreating nested folders/files |
I currently have a batch file which reads a filelist from folder A, if it's over a certain date copies it to folder B and deletes the original.
The problem is that I would like the batch file to recreate the file structure inside folder A, and I'm not quite sure how to do this. Here's the code:
echo off
echo REM :- TH... |
2
You can use xcopy to recreate the file structure with the /T switch. You will also need to use the /E switch to copy empty directories and subdirectories.
At a cmd prompt type xcopy /? for help on all the switches. Hope this helps!
Share
Improve this answer
... |
dd disk imaging - which conv switches to use and when? |
I will be backing up a large (750GB) disk to an external USB disk using dd.
What is the most appropriate use of notrunc, noerror and sync conversion arguments? It seems some people use them in different ways, or not at all.
Also, what is the best block size? USB is likely to be the bottleneck here.
dd if=/dev/sda bs=1... |
Avoid using dd; programs like ddrescue have a much better status reporting, imply noerror, and conversion is not desired on disk images at all.
|
backup .sql file is empty |
i am trying to backup mysql database by using this code
include ("functions_cp/f_connection.php");
Sqlconnection() ;
$dbname = "Reservebox";
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "123";
$backupFile = $dbname . date("Y-m-d-H-i-s") . '.sql';
$command = 'mysqldump -h' . ... |
1
Don't put a space or equals sign between the -p and the password. Also, you are missing a space before the -p.
$command = 'mysqldump -h' . $dbhost . ' -u ' . $dbuser . ' -p' . $dbpass . ' '. $dbname . ' > ' . $backupFile ;
Share
Improve this answer
... |
How to make a backup copy of a table at a specific date/time using MySQL? |
On 31 Dec 2011, I have to copy the data of one of my database tables into another table automatically at 11:59.
What steps should I follow?
|
2
The best bet will be to use MySql Schedular, I know MySQL 5.1.6 come with this, check out this. For more on how you can backup MySql database check out
Using MySQL Schedular you can do something like
CREATE EVENT MyEvent
ON SCHEDULE AT TIMESTAMP '2011-12-30 23:59:00'
... |
Webmin Automatic Backup Cleanup |
I am using Webmin to backup automatically every day. I want to automatically delete all backups older then 7 days, unless they are every 15 days. I guess I need to write some sort of bash script to do this, does anyone know of a way built into webmin, or a script that does this already.
Summary:
- Daily Backups are al... |
2
One liner to remove files more than 7 days old:
find ${path_to_files} -daystart -maxdepth 1 -mtime +7 -exec rm -rf {} \; &>/dev/null
Maybe you could adapt it to your needs, by ignoring the files exactly x%15 days old...
Share
Improve this answer
... |
Remove workspaces and build controller settings from TFS backup |
There are two TFS servers. We need to move data from first server to second server. We need to move all data else workspaces and build controller settings. But if to do backup of first TFS server, then it contains these data too....
Is there some way to remove workspaces and build controller settings from TFS backup (... |
Is there some way to remove workspaces and build controller settings from TFS backup (before it will be restored to second server)?
I'm fairly confident that the answer is, unfortunately, No.
TFS backup (including backup to restore on another server) is at the database level, and that is where all the state is held.... |
Bash backup script |
I am trying to make a bash script to backup my sevrer, however it is creating empty tar archive and empty sql files and I don't know why. Can anyone see the problems here?
#!/bin/bash
SERVER_DIR="/var/www/vhosts/site.org"
DATE=$(date +"%d-%m-%Y")
BACKUP_DIR="/backups/$DATE"
NAME="full-$DATE"
MYSQLUSER="admin"
MYSQLPA... |
I think you are just missing a -c on the gzip line, try:
$MYSQLDUMP -u $MYSQLUSER -p$MYSQLPASS --all-databases | $GZIP -c9 > $BACKUP_DIR/$NAME.sql.gz
|
How best could I optimize the way I'm backing up MySQL databases? |
I have several websites hosted on a VPS and am currently performing database backups by running a shell script via cron that looks something like this:
mysqldump -uusername1 -prootpassword dbname1 > /backup/dbname1.bak
mysqldump -uusername2 -prootpassword dbname2 > /backup/dbname2.bak
mysqldump -uusername3 -prootpassw... |
You could always just dump ALL the databases:
mysqldump --all-databases | gzip -9 > /backup/dbs.bak.gz
That'd free you from having to keep track of which dbs there are. The downside is that restoring gets a bit more complicated.
As for using root, there's no reason you couldn't create another account that has permiss... |
is it possible to take a large number of files & tar/gzip and stream them on-the-fly? |
I have a large number of files which I need to backup, problem is there isn't enough disk space to create a tar file of them and then upload it offsite. Is there a way of using python, php or perl to tar up a set of files and upload them on-the-fly without making a tar file on disk? They are also way too large to stor... |
I always do this just via ssh:
tar czf - FILES/* | ssh me@someplace "tar xzf -"
This way, the files end up all unpacked on the other machine. Alternatively
tar czf - FILES/* | ssh me@someplace "cat > foo.tgz"
Puts them in an archive on the other machine, which is what you actually wanted.
|
Incremental MySQL |
I have 2 MySQL databases on the same Linux box. They aren't super large, but some tables hold around 500,000 rows, increasing by about 40,000 rows per month.
What I need to do is to write a partial backup from one database to the other once per day. This partial backup is a snapshot and apart from the backups will not... |
1
Do you have a timestamp field on your database? Using a timestamp with ON UPDATE CURRENT_TIMESTAMP clause would allow you to know the modification time of each row. That way, you could easily do a SELECT query on rows WHERE timestamp is greater than a given value.
... |
Can file log deletion raise any problem? [closed] |
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
... |
2
No, it is not safe to delete transaction log. But you can shrink it:
2005
backup log XXX with truncate_only ....
dbcc shrinkfile
2008
Alter database xxx set recovery simple
dbcc shrinkfile
Alter database xxx set recovery full
can I restore a transaction log backup to... |
Backup MySQL via php, in a Symfony application |
I'm trying to do a php script to backup my database.
Here's what I've tried so far :
$command = "mysqldump -u [username] -p [password] [databasename] | gzip > db.sql.gz";
$this->output = system($command);
How do I get the password and
username from databases.yml ?
How can I do a script that sends me
the backup file,... |
You can create a symfony task. If you pass in an environment (i.e. dev, prod) or connection you get access to the Doctrine connection manager and create a connection. You can use that connection to make a database dump or get the connection details from the connection manager.
You can use the doctrine insert sql task ... |
Moving large datasets in AWS |
I have just inherited a system running on EC2, running several instances and there are some large data volumes - 2TB+. Any suggestions on best (cheapest + quickest) way to back these up and move to local machines ? I think the files will tar and zip efficiently but still be several 100g. Should I just forget about pul... |
2
Stage the data to S3. You can then directly download it or have Amazon send it to you on a physical drive using AWS Import Export.
Share
Improve this answer
Follow
answered Feb 20, 2011 at 18... |
Driver Backup using setupapi |
I'm stuck. To cut long story short, the task is to enumerate all driver files for backup. For some drivers like display adapter driver, I use
SetupScanFileQueue(queueHandle,
SPQ_SCAN_USE_CALLBACKEX,NULL,
DumpDeviceDriversCallback,&count,&scanResult)
from setupapi and that's working fine as i... |
There are lots of devices that are installed using what's called a "No Driver" INF. These INFs provide enough information such that Device Manager will have some info to show for the device (thus avoiding them appear in the "unknown devices" category) but don't actually install any drivers.
These devices do not need d... |
improving my backup bash script |
Hello
I keep my log files under /opt/project/logs/ and I want to daily copy these to /opt/bkp by compressing them.
For this I have written this and works well:
#!/bin/bash
getdate(){
date --date="$1 days ago" "+%Y_%m_%d"
}
rm -rf "/opt/bkp/logs/myapp_log_"$(getdate 365).gz ;
/bin/cat /opt/project/logs/myapp.log | ... |
You could use the logrotate(8) tool that came with your distro. :) The manpage has an example that looks close to your need:
/var/log/news/* {
monthly
rotate 2
olddir /var/log/news/old
missingok
postrotate
kill -HUP `cat /var/run/inn.pid`
endscript
nocompre... |
copy data of a project(from a project table) from one database to other in Oracle |
Could somebody tell me how to do this in Oracle:
I have a table named project in which there a multiple projects. I want to copy the data of a particular project from the source database to another database. The project doesn't exist(in the project table) in the destination database.
I want something like:
copy from ... |
2
If you can and are allowed to create `database links, create one and then copy the data over the database link.
That would be: on the destination db:
create database link db_link
connect to <username>
identified by <password>
using '<connection_string>";
then
insert int... |
Backup hosted repository to off-site location |
I am still pretty new to VCSs in general.
I have a SVN repository hosted at assembla.
I know how to check out and commit to the repository. But if I wanted to actually get a backup of the repository itself to save offsite. How can I do that?
|
Assembla provides an 'Import/Export' under the Subversion tab which allows you to get complete historical dumps of your repository.
On a repository you host yourself, you can use svnadmin dump
|
How to backup a Windows driver using Delphi |
Can someone please help me and tell me how I can backup a Windows driver programmatically using Delphi?
Any code samples, links to articles are highly appreciated
Thanks for your time
|
Take a look at the source of the DevCon utility which is included in the Windows Driver Kit (WinDDK) for Windows 2008 R2/Windows 7 (7.1.0).
DevCon Sample
DEVCON
DevCon is a command-line tool that displays detailed information about devices, and lets you search for and manipulate devices from the command line. DevCon e... |
SQL Server Managment objects to read data out of a backup file |
I have a normal SQL bak up, is it possible to use c# & SMO to read info from a table inside my backup file?
The backup file is a normal SQL .bak backup. (in simple mode)
If SMO is not able to do this, is there any other technology that can assist?
Thanks
|
looks like demas was correct.
this isn't possible.
I ended up using the description field in my backup to store the extra data i needed.
Thanks
|
SQL Backing up with SMO & C#? |
I'm using the following code to back up a SQL Database :
void BackupDatabase(string sConnect, string dbName, string backUpPath)
{
using (SqlConnection cnn = new SqlConnection(sConnect))
{
cnn.Open();
dbName = cnn.Database.ToString();
ServerConnection sc = new ServerConnection(cnn);
... |
If you check out the assembly directory on the Win7 machine (GAC) you'll see an entry called Microsoft.SqlServer.ConnectionInfo. (Browse to %windir%\assembly) On my machine it looks like this:
In my case I'm using version 10.0.0.0. In your case, you will at least see version 9.0.242.0 as that is what your program is ... |
Granting privileges to ALL objects in a database - Postgres |
I'm trying to backup my database with:
pg_dump my_database > backup.sql
unfortunately there are no privileges set for many objects in the database,
therefore the command does not work!
Furthermore this does not grant privileges as expected:
GRANT ALL ON DATABASE my_database TO root
Any ideas?
|
If you need to dump entire database much simpler solution is working as a superuser (postres by default). Isn't it an option?
pg_dump -U postgres my_database > backup.sql
|
Mercurial repository backup when hidden files can not be backupped |
Our company policy is not to back up hidden folders.
Is it possible to change the .hg folder name to something visible?
|
2
There's no way to rename that directory using standard mercurial configuration options. If you're on unix, and I'm guessing your are if .hg sounds hidden, you could use a pre-backup script (or cron job) to snapshot it using cp -al into something with a different name. U... |
Create backups of eclipse projects |
Is it possible to backup an entire eclipse PDT project (or parts of it), so that it can be restored to that state later?
Ideally this would only save changes from the last backup to save space. If it makes any difference I have Mylyn installed (Maybe you could backup the current task context?) and am using CodeIgniter... |
You are going to want to look into version control. There are many options, the most popular of which are SVN, git and mercurial. The latter two are probably along the lines of what you're looking for.
It is generally good practice to use version control for projects of any real size.
|
VB.NET - SqlException: Could not locate entry in sysdatabases for database |
I want to backup my database using Linq to SQL:
Dim sql As String = "BACKUP DATABASE SeaCowDatabase TO DISK = _
'" + sfd.FileName + "'"
db.ExecuteCommand(sql)
But instead, I get this error:
System.Data.SqlClient.SqlException (0x80131904): Could not locate entry in sysdatabases for database 'SeaCowDatabase'. No e... |
2
Make sure about these things:
This database actually exists
The login and user that you use have rights to backup database
Share
Improve this answer
Follow
answered Jul 13, 2010 at 17:05
... |
Is The Transaction Log Truncated When Doing a Backup In Full Recovery Mode? |
Is the database transaction log automatically truncated after we create a backup and the DB is in full recovery mode? Or do we need to make 2 different backups, let's say 1 in full recovery mode and a different one for the log file.
|
The T-Log will only have portions of it marked inactive, when the database has a transaction log backup on it performed - a portion (vlf) is only marked inactive if there are no outstanding transactions within the VLF.
A full backup, whether in fully logged mode or bulk logged mode will not mark any portions of the t-... |
Run a script when I put a pendrive in |
I want to have automatic backup of some directories on my pendrive whenever I insert a pendrive to my laptop running Ubuntu 10.04. What whould be the simplest solution for that?
|
Either write a udev rule to run the script, or write a D-Bus client that listens to hal.
|
Python Script to backup a directory |
#Filename:backup_ver1
import os
import time
#1 Using list to specify the files and directory to be backed up
source = r'C:\Documents and Settings\rgolwalkar\Desktop\Desktop\Dr Py\Final_Py'
#2 define backup directory
destination = r'C:\Documents and Settings\rgolwalkar\Desktop\Desktop\PyDevResourse'
#3 Setting the ... |
2
Maybe instead of writing your own backup script you could use python tool called rdiff-backup, which can create incremental backups?
Share
Improve this answer
Follow
answered Mar 13, 2010 at 11... |
I need to pull large backup files from my clients' servers to my server every month |
I have clients out there running an SQL Server Express 2005 and each of these needs a backup each month and that backup needs to be moved to our server in case they lose their backup. Our software automatically backs up the database each month but we have to manually go in and copy it across. Is there any way to autom... |
2
I think this is where you'd be better off if you used something like RSync rather than a home-grown solution.
Share
Improve this answer
Follow
answered Feb 19, 2010 at 12:05
Anton Gogolev... |
Best way to do a MySQL large database export |
I've usually use mysqldump to export a database. However, when the database is really large, it seems much faster and less intensive to just gzip the database files directly without involving the MySQL deamon and copying that to the other database.
eg:
tar -czvf {db_name}.sql.tgz /var/lib/mysql/{db_name}
Is this a ... |
I've used rsync just fine with moving files around and using them on other boxes. I've never done it with the MYSQL running live, but i've restored from the files in /var/lib/mysql before with no problems. It's a good way to "copy" over databases for your "development" box. I suggest shutting down mysql, moving th... |
How to restore via RMAN? |
I want to backup via RMAN and delete scott.dept and again restore everything. (this is for testing RMAN mechanism)
I wrote like this :
1)rman target sys/manager@db
2)in sql*plus
shutdown immediate;
startup mount exclusive;
ALTER DATABASE ARCHIVELOG;
2)CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE... |
2
If you did a full recovery then that is the result I would expect.
The DROP SCOTT.DEPT action was applied do the database when you recovered and fed RMAN all the outstanding archived logs.
You want to do a point in time recovery to a time before you issued the DROP stat... |
How do backup apps which create a system image handle disk changes during the image creation process? |
I created a backup disk image of my disk yesterday and the software told me to close all Windows programs to make sure the process finishes successfully.
I did that, but I was wondering what happens when some program does write to the disk nevertheless during the process. Windows 7 is a complex system and surely vario... |
Snapshotting, or 'Shadow Copy' as Microsoft calls it, see Shadow Copy on wikipedia
|
Restore Database backup from code? |
I have an application extension which I need to test. Part of the extension applies some updates to the application database schema (via the applications API). i want to test that given version 1 of the application when my class is run the schema becomes v1.1 and that certain queries for items which should exist in ... |
If you are uysing SQL Server, you could use the SQL Management objects (SMO)
An example can be found here
Kindness,
Dan
|
How to resolve Sql Server Error Message 117 - Too many prefixes for object name? |
I am transferring a database from one hosting provider to another. The current provider uses the domain name as part of the user name. The domain name is a .co.nz domain. So some objects in the database have a fully qualified name of [email protected].
Im trying to alter the schema of these objects to put them into a ... |
It's interpreting your dots as different prefixes, while in fact, I'm guessing they're just part of your database name...? In that case, increasing the amount of prefixes allowed is not what you want, but rather something like this:
ALTER SCHEMA dbo TRANSFER [[email protected]].tablename
|
Delete backup files older than 7 days |
Using osql command, SSQL backup of a database is created.
It is saved to Disk.
Then renamed to match the date of the day backup was taken.
All these files are saved in a single folder all the time.
for example:
Batch1.bat does the following
1) Created backup.bak
2) renamed to backup 12-13-2009.bak (this is done by the... |
I'm using the same technique to make a backup from database. I've created a stored procedure as follows.
Create Procedure [dbo].[CreateBackup]
As
Begin
Declare @path nvarchar(256),
@filename nvarchar(256),
@currentDateTime datetime
Set @currentDateTime = GetDate()
Set @path = 'C:\DBBackup\'
Set @f... |
backup SQL Server 2005 database without data |
I have one stored procedure to backup the database. It will backup metadata as well as data.
Is there any option to back up the database with out data. ie, back up only the schema (Empty tables).
I don't want to script the database.
|
There's a solution already on StackOverflow - here.
|
SQL Server 2008 Auto Backup |
We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we're developing on the most recent data. We, however, want to ensure that any fn, sp, etc that we're currently working on in the development environment doesn't get overwritten by the backup process. W... |
All the objects in our databases are maintained in code - tables, view, triggers, stored procedures, everything - if we expect to find it in the database then it should be in DDL in code that we can run. Actual schema changes are versioned - so there's a table in the database that says this is schema version "n" and i... |
backup reg hives |
Using http://support.microsoft.com/kb/240184 I'm able to open SAM, SOFTWARE, SYSTEM reg hives, but I do not know the next step to get them copied in a different backup folder? I get Access Denied when I try to use BackupRead API. Any help is much appreciated!
|
2
BackupRead is not a magical function that lets you read any file. For starters, you need to run as a user with backup privilege. Secondly, you must respect the FilesNotToBackup registry key. You also have to call CreateFile with FILE_FLAG_BACKUP_SEMANTICS. But even with t... |
SQL Server Express backup restore not working for asp.net membership |
I am backing up a SQL Server Express database and then restoring on another machine. For some reason the asp.net membership data is not getting transferred. Do I need to do something different. Does ASP.NET membership data not get backed up?
|
2
So you're not using the default aspnetdb? The membership tables are contained in your database? These would be have names with the prefix aspnet_. Perhaps you also need to back up aspnetdb?
Share
Improve this answer
Follow
... |
SQL Server nightly job log management strategy |
I have a nightly job that does a bunch of inserts. Since I have a full recovery model, this increases my transaction log size.
Currently I have my log file big enough to accommodate these transactions, but the issue is that the transaction log is mostly empty throughout the day.
Is it an issue (besides disk space) to... |
I'd do nothing. Or have SIMPLE permanently.
Changing the recovery model back to full will require a full backup anyway to preserve integrity later on. You'll have a gap in your LSN chains otherwise.
You've mentioned differential backup, so I assume your full is not each night.
So, putting this together means you'll us... |
Want to create a script that takes backup of entire database and downloads it |
I've built a simple cms with an admin section. I want to create something like a backup system which would take a backup of the information on the website, and also a restore system which would restore backups taken. I'm assuming backups to be SQL files generated of the tables used.
I'm using PHP and MySQL here - any... |
One simple solution for backup:
Call mysqldump from php http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html, and save the backup file somewhere convenient.
This is a safe solution, because you have mysqldump on any mysql installation, and it's a safe way to generate a standard sql script
It's also safe to save the... |
How to take backup of BugTracker.net? |
I want to take backup of BugTracker.Net hosted on my local and restore it to a new machine ?
Has any one clue about this ?
Thanks
|
For the database, do a regular Microsoft SQL Server backup and restore (or whetever your hosting company lets you do).
Beyond the database, you probably want to make a copy of the Web.config, because you will be transferring some of those settings to a new machine, and you want a copy of any files that you have custom... |
Does restoring a backup of IIS6 restore the GAC? |
I was wondering: if I have some DLLs in the GAC - will they get restored if I restore a backup of IIS6 on a fresh Windows 2003 box?
Or will I need to backup/rebuild the GAC separately from IIS?
|
No, assemblies in the GAC will not be backed up by an IIS backup. You will need to re-install your assemblies into the GAC.
|
In MySQL, what are the practices to backup databases? |
I am using mysql
How often do you back up your database?
How do you normally backup your database?
Export all data into sql or cvs format and keep it in a folder??
|
2
Setting up a cronjob to run a script that does a mysqldump and stores the dump on a separate disk from the database itself (or a remote server) is a quite easy and efficient way to backup a database in my opinion. You could even have it dump every database with the --all-... |
SourceSafe backup script - best approach? |
I was wondering what the best approach might be for creating a backup of my organisation's SourceSafe database, and moving it to a share on another server? Currently we have a scheduled job which runs a batch file, which in turn executes a PowerShell script.
This Powershell script creates a backup file (using SourceSa... |
SSARC is not really a backup tool. I wouldn't recommend it. It's more like a way to cut-n-paste segments of a VSS repository between different databases. It's also not without side effects. At minimum, items in the source database get marked as archived. At worst, they get deleted.
The best way is to take your DB... |
backup MySql databases and email them somewhere at a certain time |
We're running a CentOS server with a lot of MySql databases atm, what I need is a really easy way for us to back those up. Since many of them are under a couple of meg. Dumping, zipping them up then sending them to a secure Google Apps account sounds like a pretty good idea.
So what I need is: a script that will dump ... |
I use the following script to send a small dump to a dedicated mail account.
This of course assumes you can send mails from your machine using the mail command.
#!/bin/bash
gzdate=`/bin/date +%Y-%m-%d_%H%M`;
gzfile=dump_${gzdate}.sql.gz
[email protected]
dumpuser=username
dbname=mydb
mysqldump --single-transaction --o... |
postgresql/postgis backup strategy to restore after geos/postgis recompile? |
Current situation:
Ubuntu 8.04 server edition (live server)
Postgresql 8.3.7 (from standard repositories)
Postgis 1.3.3 (from standard repositories)
GEOS 2.3.4 (from standard repositories)
Problem:
GEOS contains bugs which are fixed in the 3.0 release.
I have encountered these and need to upgrade GEOS/Postgis to... |
I'll try the 'soft-upgrade' way described in the documentation but do you think this will work?
I don't know enough about GEOS to say for sure, but it sounds like a good thing to try. From the docs you linked to:
If a soft upgrade is not possible the script will abort and you will be warned about HARD UPGRADE being... |
sync automatic background offline |
I'm working on some documents on a laptop which is sometimes offline (it runs winXP).
I'd like to backup automatically the documents to a folder to a remote location so that it runs in the background.
I want to edit the documents and forget about backuping and once online - have it all backuped to a remote location, o... |
2
DropBox does everything your asking. http://www.getdropbox.com/
Plus it's fully cross platform, Windows, Mac, Linux.
Free up to 2GB.
Share
Improve this answer
Follow
answered Apr 20, 2009 at ... |
Complex Database Backup |
i am required to back up certain rows from certain tables from a database. often the criteria requires joins and such. what's a good way to accomplish this? (i don't have to use mysqldump).
|
2
I would say just backup the entire database. That will be an easier process, and you'll more easily maintain identity integrity in case you need to restore a backup.
Share
Improve this answer
Follow
... |
Restricting OpenSSH to allow uploads only to certain directories |
I need to run backups from multiple servers to a single account on another server. If one of the public servers is compromised, I don't want the other server's files on the backup account compromised.
What I need to do is only allow SCP to a specific directory, based on the ssh key of the incoming connections.
I know ... |
It doesn't work that way.
What you need to do is set up a mini chroot jail for each backup host. It just needs to be able to run sh and scp (/dev only needs /dev/null entry).
Use jailsh as the login shell for each account.
Jailsh is a suid-root login shell that sets chroot jail to the directory marked by two consecuti... |
Set up SQL Server 2005 Reporting DB from SQL Server 2000 |
We recently moved from a simple DB recovery model (with daily full database dumps) on our SQL Server 2000 Standard database to full recovery -- combined with weekly full database backups, daily incremental, and transaction dumps every 10 minutes.
Our previous reporting DB instance (SQL Server 2005) was built from the ... |
Depending on how up-to-date your data needs to be, snapshot replication seems like the best fit for you. It's not that difficult to set up and I believe that it's fairly common in scenarios like yours.
|
Backup Strategy |
I have just joined a company with Server 2003 Small Business Server. The company contains only an handful of staff and needs a backup system.
I would like to restore a tape backup (including system state, Exchange server, etc) to a second server. The aim is to have a verified set of backups and be able to swap the... |
you have a couple of options with SBS, you can have additional servers in the SBS domain such as win2003 servers. You can only have a additional SBS server on the same domain for a limit of seven days, this is for migration situations.
In you situation I would have a additional win2003 server connected to the domain t... |
Complete MOSS 2007 Migration |
The situation at the moment is that we have a sharepoint server which started out as a pilot but now actually runs as the production environment. The server on which sharepoint runs is an old machine which does not conforms the standard requirements so I want to move the current environment to the shiny new server.
I'... |
I think I found a way to do a complete migration...
Install a fresh version of MOSS 2007 on the new server (Server_B). Install the features and solutions you have on Server_A. Then use the SPContentDeploymentWizard which can be downloaded for free from CodePlex to make an export of all site content and import these on... |
Programmatic iPod Backup on Linux |
Are there any publicly available libraries or APIs out there on Ubuntu that allow me to programmatically archive the contents of my iPod? If no library or API exists, what alternative options do I have for saving the contents of my iPod?
|
Looks like gtkpod can do it. Looking over its source code might give you what you're looking for.
|
Can clone VM be application backup plan? |
I am application developer and don't know much about virtual machine(VM).
however, our application is resided on a VM. frequent patch need be apply to fix/update this application. For diaster recovery, It was suggest to backup every thing on the server. so, once server is restored, no application need be re-installed... |
2
Cloning is perfectly acceptable.
You don't have to backup to tape... It can be done to a NAS for example, and with the proper security and setup, backups cannot be deleted by unauthorized people.
Share
Improve this answer
Follow
... |
Bash script backup full MySQL |
The next script apparently executes successfully cause I get the backup but when I modify some parameters for checking the output of mysqldump all time send an email with the messages "El respaldo diario de la base de datos se ha realizado correctamente" (the backup executed successfully)
`#!/bin/bash -x
SERVIDOR="$(h... |
Basically what 'F. Hauri` said in the comments above.
#!/bin/bash -x
SERVIDOR="$(hostname)"
PASSWORD='PASSWORD'
FECHA=$(/bin/date +\%Y\%m\%d)
[email protected]
STATUSFILE="/tmp/statusfile.$FECHA"
echo "Backup report from $FECHA" > "$STATUSFILE"
mysqldump --databases prueba --no-tablespaces --skip-comments --single-t... |
Azure powershell list assigned backup policy to VM |
How can I make a list of all VM's inside my subscriptions including the information of:
Backup Policy
Backup Schedule
Backup times
Backup Retention (daily, weekly, monthly)
So additional to the result of this
Get-AzVM -Status
Thx
I can get data from vm's and data from recovery services vaults, but not together.
|
Azure powershell list assigned backup policy to VM
The command Get-AzVM -Status does not show any information about the VM backup or the recovery service vault. The following are the values of the Get-AzVM -Status command.
To check all VMs that are backed up in the recovery service vault, along with their Backup Sc... |
How to backup my files to Google drive using Duplicity on Linux? |
I'm trying to use duplicity to backup my files from my Linux desktop.
I read the answer to this question How do I backup to google drive using duplicity? dating from 2015 but it might be obsolete ?
From the duplicity documentation, https://duplicity.gitlab.io/stable/duplicity.1.html, I understand I have to :
Go to ht... |
Based on your google\_client\_secret\_json\_file.json file, this doesn't contain the json objects needed and as explained by the error google.auth.exceptions.MalformedError: Service account info was not in the expected format, missing fields client\_email, token\_uri. You will need to generate a Service Account key in... |
virsh begin-backup — Unable to validate doc …/domainbackup.rng |
I am trying to create a backup of a given VM in »push mode« as described here. I have tried a lot of variations of the backup-xml but none passes the validation test. That includes the example posted here (the first one). Additionally I just ran that command:
sudo virsh backup-begin vm1 && sudo virsh backup-dumpxml vm... |
I've answered this on IRC so for completness:
The problem is the 'index="4"' part, which is an output-only element and thus not allowed by the schema on input. The rest of the XML is correct.
|
How to restore IndexedDB from backup file? |
I have backup files that have the localStorage data saved in IndexedDB. These files look like this:
Due to system crash, the browser (Chrome) lost these files and I had to recover them from a backup system. Now I need to restore these files back.
Is there anyway to restore or even be able to read these files?
Any hel... |
1
For a good solution, these are not very detailed information.
But the first hint:
The name of the folder is not IndexDB but
IndexedDB
... please note the additional ed.
Second item:
If the screenshot is from somewhere inside the IndexedDB, it must have been a subfolder w... |
SQL Database Restore |
We are using SQL 2019. I wanted to create a Production database from my Dev database. So I took a full backup of the Dev database and restored it as Production - that part completed OK. But after it completed, I noticed that my Dev database is inaccessible and says (Restoring...). Why is this? I did not speci... |
1
This is the most obvious answer, of course, but you may need to run the database engine or GUI again, whichever is running you into this problem.
Share
Improve this answer
Follow
answered Mar 2... |
Postgres wal archiving: archive_command not being executed |
here is my configuration file:
wal_level = replica
archive_mode = on
archive_command = 'touch /var/backups/test'
archive_timeout = 1min
Permissions are ok. Postgres user can write into the aproppiate folder. I also restart the database to make sure the configuration goes through.
When running SELECT pg_switch_wal() I... |
1
First, perform the sanity check, connect to the database and run
SHOW archive_mode;
SHOW archive_command;
to ascertain that the settings are indeed as you think they are
To debug that further, you should resort to the log file. If the archive command is executed and enco... |
Is there a way to keep on restoring SQL database backups periodically, and meanwhile access the database from another application? |
I'm periodically getting backups of an SQL database which I would like to restore in my machine. I'm able to do that with RESTORE fullDB WITH NORECOVERY; RESTORE differentialDB WITH RECOVERY;
However, I need to access the restored database in between, as the interval in which I'm getting the backups can be a few hours... |
Take a look at the STANDBY option for the RESTORE statement. From the docs:
Specifies a standby file that allows the recovery effects to be undone.
NB - differential backups are based on the last full backup taken. So let's say that you take full backups on Sunday, differential backups every other day of the week an... |
Callbacks for AWS EBS Backups or Snapshots |
I want to make a backup of several EBS volumes attached to a EC2. There are Snapshots and AWS Backups available.
Issue is, before I can do a backup, I must execute a special script to freeze my application.
Why: it's somewhat im-memory, so this call forces all writes to disk to comlpete and also prevents new disk writ... |
Unfortunately, there's no native --pre-snapshot-script option for creating an EBS snapshot.
However, you could use a Lambda function, that is triggered based on a scheduled EventBridge rule, to trigger a script to be run before you then programmatically take the EBS snapshot. You'd need the SSM agent to be installed o... |
How can I schedule to backup my database monthly |
I want to do backup for my website database monthly without involving me everytime
I put this code everytime to backup my website heroku pg:backups:capture --app appname
Is there any code that i can add to backup monthly?
|
You ask about monthly backups. In case you're okay with more frequent backups, you can schedule daily backups using heroku pg:backups:schedule (' quotes converted to " for compatibility with Windows):
Scheduled Backups
In addition to manually triggered backups, you can schedule regular automatic backups. These run da... |
Synchronize data from the production Azure SQL database with the staging database allowing changes to be made in the second |
I have two databases in Azure SQL Database almost identical in their structure (unless one of the two is modified). I need to synchronize the data from the production database with the staging database, being able to make changes in staging without harming production unless I need to do a production restore (that's an... |
The process I currently employ across my environments is:
Start with a baseline where STAGING and PROD are exactly the same. This you can achieve by restoring the latest backup(s) from your PROD environment to your STAGING environment.
As changes occur in DEV and need to be released to STAGING, create the appropriat... |
Is there any way to implement Disaster Recovery on Minio? |
we are trying to implement "disaster recovery" on Minio. Are there any documentations about how to implement DRC on Minio? Has anyone done it? Thank you
|
1
You can checkout the documentation here https://min.io/docs/minio/linux/administration/bucket-replication.html#minio-replication-behavior-resync
Share
Improve this answer
Follow
answered Sep 23... |
Backup SQL Server database remotely to a specific user shared restricted folder |
I want to back up other computers' databases on my network to a network-shared folder on its C:\ disk remotely, the shared folder is only open to its own user.
It works fine if I give everyone permission to the shared folder, but I need to restrict it and I don't know how to do the code part.
|
1
If you want to take a backup copy of the database in a network path, the User that started the SQL Server service must have write access to that shared folder in the network path. Otherwise you will get an access denied error.
Share
Improve this answer
... |
How to make a backup of a gitlab group? |
I have a gitlab group with some repositories and issues and I would like to make a backup of the whole group.
I was looking at the doc. from gitlab but it's confusing for me and I don't know where to start.
When I run this command it creates a 300Kb .tar file but the group is larger than that, where do I specify the U... |
When using the SaaS service on gitlab.com there isn't really a procedure to "backup" your data. Generally, you rely on GitLab to ensure your data is always available on gitlab.com
There is documentation for backup and restore processes but this applies to self-hosted GitLab instances only. (this is probably why you ar... |
Duplicity Restore Throwing "IsADirectoryError: Is a directory" Error |
My Linux machine recently failed and I am trying to restore my files onto a Windows 11 machine. The files were created using Duplicity (the external HD containing the files has hundreds of .difftar.gz and .sigtar.gz files as well as a '.manifest'). Having installed CGWin and the duplicity package, I traverse to my ext... |
let's assume that duplicity works (it's not officially supported on windows in any way). never tried it.
say your backup data exists in the root of your external harddrive mounted as E:.
you want to restore the complete last backup into a folder C:\Users\john\OneDrive\Documents\temp\ .
two points
point it to your bac... |
real time copying mongoDB instance collection into new database |
I want to copy the database's specified collection into new database.
I searched and found there is something Trigger technique which will update copying database whenever any modification happened in original database but it cost must so I want any other alternative solution.
I also want rules for copying something l... |
1
you can create another collections as history and save all record like backup to history time of save records in rest api
Share
Improve this answer
Follow
edited Jul 29, 2022 at 11:18
... |
DB2 restore from encrypted back-up |
I am trying to restore a DB2 database using an encrypted backup file. The backup zip file contains an .lst file, a .ddl file, over 3000 .ixf files, same number of message files and a folder with few .lob files in it.
I have tried using bind @ list_file grant public after placing the .lst file and .ixf files in the /bi... |
1
What you have is not a backup (encrypted or otherwise) but the output from the db2move export command execution. Read the db2move documentation to learn how to perform the opposite operation.
Share
Improve this answer
Follow
... |
Issues with large MySQL XtraBackup stream to S3 |
We have a bespoke database backup solution that will be causing us problems in the near future. I'll explain.
S3 has a single file limit of ~5TB. Our backup solution utilizes xtrabackup with the xbstream option which is then piped into an 'aws s3 cp' command to store it in S3.
The interesting part of the script looks ... |
Regarding your specific question of:
Is there a way to "chunk" the stream so that it writes a new file/stream every X bytes?
Your best bet for adapting your current workflow to "chunk" your backup file would be to use GNU Parallel, using --pipe (and --block to specify the size each block of data to pipe through to e... |
Is there a way to create an alert when an Azure SQL Database backup fails? |
Does anyone know how to create an alert when, for whatever reason, an Azure SQL Database backup fails to complete?
|
1
You can use Azure Monitor service to create alert for Backup failure.
Search for Monitor in Azure Portal. Click on alerts under Monitor.
Click on +Create -> Alert rule.
Click + Scope and select the required fields.
Under Condition tab, select the option Activit... |
how do I pass pass parameters to redis BGSAVE command? |
I would like to run bgsave periodically, to sync data to the disk, I tried BGSAVE 60 1000 to sync every 60 seconds or 1000 keys added but it does seem to work
|
1
There's no such parameters for BGSAVE.
An approximate solution is to use the SAVE config. Config it in redis.conf or use the config set command:
config set save "60 1000"
However, this config means after 60 seconds if at least 1000 changes was performed. It's not exactly... |
Postgres copy command adding extra backslash "\" |
I am trying to copy jsonb type of data into a file.
\copy (select myjsonbcolumn from mytable where time > timestamp '2021-05-01 00:00:00') to '/home/ubuntu/jsobdata.ndjson';
Now this jsonb data have \' within it. e.g.,
{"ID": "123","Body": "<p><a href=\"https://google.com\">Lorem ipsum</a></p>\n<p>Lorem Ipsum Lorem i... |
1
The problem is that the default output format of COPY, which is text, treats the backslash as an escape character, so it must be doubled. Use the csv format and set quote characters and delimiter to characters that do not occur in your data, for example
\copy (SELECT ...)... |
Saving the Elasticsearch snapshots for years - best policy and practices |
We are using Elasticsearch v7.10 and want to add a snapshot policy to our cluster. We want to be able to restore specific indexes even after few years.
On the one hand it is recommended to take frequent snapshots (~every 30 minuets - Set up snapshot policy) but on the other hand it is not a best practice to accumulate... |
firstly, update Elasticsearch, and keep as up to date as you can. 8.X is now current and 7.X is only patched at the 7.16 level. but you're on 7.10, which was released in (late) 2020
second, you might want more than one slm policy. so something that you can use to take shorter snapshots that are discarded more frequent... |
Postgresql full standalone backup on remote host |
I am trying to figure out what is the correct way to create a full standalone backup which will be stored on a remote host(I should use pg_basebackup). I suppose that it should look like that:
pg_basebackup on the main host
Use scp to deliver it on a reserve host
Is it a right way?
|
Sure that will work. It has the advantage that you can compress the backup before sending it over the network. And if the transfer fails, you could resume it (using rsync). It has the disadvantage that it stores the full backup on the server.
Or you could backup from the "reserve" host using -h to specify the main ... |
Import SQL server Management studio backup from an .ipynb file |
I have a doubt regarding an ipynb file, it turns out that they send me a database to replicate the structure, they use SQL server Management studio, but I don't know how to import it. I thought it was a simple python script, which could create a SQL database , then Install anaconda, use %%sql statements to recreate it... |
I would suggest you to follow the below steps:
Open the notebook file in Jupyter notebook and copy all the cell contents as given below:
How to copy multiple input cells in Jupyter Notebook
Copy the content to a single .SQL file.
In the Management Studio, open a new query window and open the file, created in step no.... |
I am trying to write a script that will backup Azure Files for each storage account that starts with a certain letter |
function Set-StorageAccounttoPolicy {
$storageaccounts= Get-AzStorageAccount | where {$_.StorageAccountName.StartsWith('p')}
Get-AzRecoveryServicesVault -Name xyztestvault | Set-AzRecoveryServicesVaultContext
$policy=Get-AzRecoveryServicesBackupProtectionPolicy -Name testpolicy
foreach($storage in $storageaccounts... |
1
Have you double checked the $storagename variable to just make sure it isn't actually null? Also, double check to see if the current storage account/container is tied to a RSV. Because, if it is, it won't allow you to run the Enable-AzRecoveryServicesBackupProtection cm... |
Is there a way to disable backup file generation in HSQLDB? |
So we are using HSQLdatabase as temporary storage to offload to disk for doing some calculation, we will be doing some bulk operations on merge statements(upsert/ insert or update)and size of database file in some cases reach as high as 70+gb. Is there a way to disable .backup file creation in HSQL db? we are fine wit... |
1
The backup file generation is for persistence durability. When you don't need durability you can turn it off with this SQL statement:
SET FILES LOG FALSE
Or the database connection property, hsqldb.log_data
hsqldb.log_data=false
The data is still consistent with this se... |
Backup AWS Workspace file system |
I have an workspace in AWS workspace with a lot of configuration files, installed software and files with templates, shell scripts and code, so it's fully configured.
My problem is that when I try to create an image, I lost everything but the installed software. So anybody knows how can I create a backup of my AWS wor... |
As per the official docs,
A custom image contains only the OS, software, and settings for the WorkSpace. A custom bundle is a combination of both that custom image and the hardware from which a WorkSpace can be launched.
Seems like the image does not carry forward the personal settings like set wallpaper or any brow... |
Backup and restore database using T-Sql |
I am trying to copy 'Development' database and create a new database called 'Testing'.
For backup, I have used the below query and it worked fine.
BACKUP DATABASE Development TO DISK = 'Development15feb2022.bak'
For restoring I have used the below query which is giving some errors like 'Development.mdf cannot be over... |
1
When restoring, by default, SQL Server create the database file at the same place and name as the original backuped database.
If you are doing a copy of the database on the same SQL instance, this will raise an error, because files already exists. So you must move the fil... |
Run AWS Lamba in One region to take backup of ec2 instance AMI from 2 or more Regions |
I am using AWS Lambda in Ireland region to create AMIs on daily basis for my EC2 prod instance. All my servers are in Ireland region except one which is in the London region.
For the Ireland region, I have the python script for taking backups, I just need to add the code in the same lambda for taking backup pf the Lon... |
AWS is (mostly) region-based. This means that if you wish to communicate with a particular AWS service (eg Amazon EC2) in a particular region, then you must make an API call to that region. It can be done by specifying region_name when creating the client:
ec2_client = boto3.client('ec2',region_name='ap-southeast-2')
... |
Need to enable backup replication feature in AWS RDS through Terraform |
Need to enable backup replication feature in AWS RDS - oracle through terraform. So do we have any attributes from terraform side for that particular feature?
|
1
There is a resource you can use
aws_db_instance_automated_backups_replication
Link to TF Docs.
Share
Improve this answer
Follow
answered Jul 28, 2023 at 9:27
Hans HomanHans Homan
5144 ... |
Solution to store specific files not ignored on .gitignore |
My problem is that I often forget to backup or I need to use some ignored files in other devices, like .env ones, and sometimes it troubles my day because those files should not be commited, but at the same time I need those files updated if for some reason I need to use this repo in another device.
Is there any solut... |
If you are specifically targeting ignroed files :
you can list the ignored files in your directory using :
git ls-files --exclude-standard -i -o
You can then use the output of this command to do something with the listed files.
For example, you can create a tgz archive :
# create a tgz archive :
git ls-files --exclud... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.