Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
Clone a folder / raid on a folder? |
I have two hard drive of 4Tb connected to my raspberry pi.
Let's call them A and B.
I have some folders on A that have to be copied on B. At all the time, something like a RAID10 on some folder. So, if I copy test.jpg in disk A, test.jpg has to be copied on disk B. If I copy test2.jpg on B, test2.jpg has to be copied ... |
Well, I found a solution. I'm using "rsnapshot" wich does exactly what I want.
https://rsnapshot.org/
|
azure backup and site recovery vault |
My question is related to Azure-Azure scenario. I see we can create Azure Backup and Site Recovery to use the same Recovery service vault. I understand that for ASR the Recovery vault should be on the DR site so all snapshots are available for restore during DR situations. Since we would use Azure Backup Service pri... |
0
by nature of the set of scenarios each service provides protection, backup is suited to be in the same location as VM whereas DR should always be to a location which is different from the source VM.
And also to serve the needs differently, they use different technologi... |
Backup whole F5 bigIP configuration and save as file |
I'm trying to export my current F5 bigIP configuration into a file and later create a replica of the same bigIP with that configuration.
This reference mentioned following this:
Create the UCS archive file by using the following command syntax, replacing with the full path to the UCS archive file:
tmsh save /sys ucs... |
0
You can verify the syntax within the TMSH shell just like on a Cisco. Just enter tmsh and then type save and hit ? from there you can also use tab to complete the command.
Share
Follow
answered ... |
Cron job backup remote folder to local folder with wget over ftp |
Hi everyone would do with some advise
Can not get this simple task working
0 17 * * * wget -m ftp://usarname:[email protected]:port/remote/folder -P /local/folder
what im doing wrong ?
if i run it in terminal line:
wget -m ftp://usarname:[email protected]:port/remote/folder -P /local/folder
it is working as expec... |
0
Forgot to restart cron service. Now just need to make it all end to end encrypted.
if you make any changes to services do not forget to restart them :)
restart cron
Share
Follow
answered Sep 2... |
How I get a return code from SQL file - if I excuted ISQL? |
I execute in a batch script a SQL file to backup my database. I want from the sql file / script a return code to see if is success or not.
I excuted this
isql -S %DBSID% -D %DBSID% -U %DBUSER% -P%DBPASS% -X -i "C:\example\backup.sql" >> "C:\logs\fullbackup.log"
Anyone can help?
|
0
I am not sure if isql sets an %errorlevel% or return code but, if it does you can use something like this:
isql -S %DBSID% -D %DBSID% -U %DBUSER% -P%DBPASS% -X -i "C:\example\backup.sql" >> "C:\logs\fullbackup.log"
If %errorlevel% NEQ 0 (echo error occured) else (echo su... |
rclone using too much download bandwidth |
I'm using the latest version of rclone to copy lots of files to backblaze b2 storage. What I've noticed recently is that there is a lot more download bandwidth being used than upload bandwidth. Eg running iftop on the network interface being used these are typical figures:-
Upload 77.6KB/s
Download 1.32MB/s
Why is th... |
0
Have you tried the -bwlimit option to reduce download bandwidth?
Share
Follow
answered Jan 18, 2019 at 23:51
Laurentius PurbaLaurentius Purba
2811 silver badge55 bronze badges
... |
Writing to an external file before a blackout |
I have a python scoreboard program running on a raspberry pi, and I need it to recover the information on it after coming back from a blackout(quite frequent where I live). Below is the code for the saving mechanism only:
import pygame
from pygame.locals import *
if os.path.isfile('backup.txt'):
print('Reloading ... |
Writing directly to disk instead of to the buffer solves the problem. Do:
backup.flush()
os.fsync(backup.fileno())
|
mongodump --oplog freeze when "writing captured oplog to " |
In my cluster I have one primary and one secondary (also one arbiter).
I using mongodump for backups:
mongodump --host $dbhost --port $dbport -u $dbuser -p $dbpassword --oplog --gzip
Dumping tables looks good, but when it comes to writing oplog - bash just freeze and doesnt finish task - only when I send interrupt s... |
0
Solved - I just make sure that all data is consistent between primary and secondary, then I resised oplog to smaller size and works.
Share
Follow
answered Aug 31, 2018 at 13:14
AdamAdam
15... |
Cassandra backup and restore consistency |
The scenario is as follows:
I have 1 Cassandra node in which I have one keyspace, in which I have 2 tables. Let's call these tables A and B. Now I have a script that inserts data very quickly into these two tables in a batch statement. Table A has columns "k" and "value". Table B has columns "k" and "value". The batch... |
Firstly, there is a fine line between atomicity and isolation. Batches guarantee that both inserts will be applied (atomicity), but they do not guarantee that they will be applied at the exact same time. (isolation)
A client is still able to read one and not the other in a select. The only exception to this rule is if... |
Mongo doesn't restore user password |
I have following scenario:
Dump Mongo database (cmd mongodump)
Change password from one of admin users
Restore Mongo database (cmd mongorestore)
EDIT:
I use following command for db dump:
mongodump -h $HOST:$PORT --ssl --sslAllowInvalidCertificates --authenticationDatabase $authdb -u $user -p $pass --gzip --archive=... |
So I found solution, --drop shoud be added in the command:
mongodump -h $HOST:$PORT --ssl --sslAllowInvalidCertificates --authenticationDatabase $authdb -u $user -p $pass --drop --gzip --archive=$destination
|
Power BI Security Data Storage |
The data that I can find in the DATASETS section in PowerBI Service, where is it stored?
Do there exist back-ups of my reports and dashboard in PowerBI Service and where are they stored? And what data is in these files?
If I have PowerBI Embedded, where is my data stored and what data is actually being stored?
What i... |
0
The datasets in PowerBI Service is stored in PowerBI Cloud.
The reports that you upload are stored in PowerBI Cloud Service. However, there are no back-ups of those reports.
You can use the Embedding feature of PowerBI to embed reports in your application. PowerBI embeds... |
setting dropbox as custom backp on whm/cpanel error |
I am trying to set dropbox as custom backup destination following below cpanel blog. The connection is working, but the backup files are not being transferred to DropBox. And when I press validate to custom backup destination it gives following error .
https://blog.cpanel.com/cpanel-whm-custom-backup-transport-exampl... |
0
The error message is correctly indicating that the Dropbox API expects the value "" when referring to the root alone. The code is instead sending the value "/". This looks like a bug in the code.
It looks like you've already opened an issue with the developer for this:
ht... |
Teradata backup and restore |
We want to take a BACKUP of our data in Teradata and
RESTORE it on another Teradata box. Is this possible, and if yes do we neeed to have same version of database on other teradata box? What are the tools available for this?
RESTORE it on Teradata Emulator perhaps running on Windows/Linux box. Is this possible, if no... |
0
If this is still relevant:
Yes, you can. Make sure that system you're restoring backup to is the same version or higher. Most basic tool you can use - "arc" also known as arcmain. It is part of Teradata Tools and Utilities pack. But make sure you're using for restore ver... |
How to recover the tablespace from backup pending state in DB2 |
Should I go with this below command to recover the tablespace in DEV environment, or is there a better solution?
db2 "backup database DEV tablespace (xyz) online to /dev/null"
|
0
If a table space is backup pending, it's usually due to some event that requires a new backup point, such as after a LOAD .. COPY NO. In such a situation it is best advised that you take a new backup to an actual location to save the image for future recoveries through t... |
Restoring Plesk's Apache and Nginx settings |
I'm working on an automation process to deploy a new server with the same configuration than my production server, which uses Plesk 12.5.
I backup my production system configuration everyday (server level, configuration only), and wish to use those backups to restore Plesk on my new server. Everything goes approximate... |
0
Additional Apache and Nginx directives are included into Domain configuration part of the backup. You can find httpd.conf and vhost_nginx.conf files in backup_conf_<date_and_time>.tgz archive in the backup directory.
Indeed, they should be restored.
Share
... |
InfluxDB max available expiration and performance concerns |
I develop my metrics based on influxdb. I want to keep the data forever therefore my retention policy is set to inf and my shard retention policy is set to 100 years (the max I could set).
My main concern has to do with degrading performance by keeping this data. My series will not be more than 100000 (as adviced for ... |
0
Based on InfluxDB Hardware sizing guidelines, in moderate load situation with a single node InfluxDB deployed on a server with these specifications: CPU:6 cores and RAM:8-32 GB; you can have 250k writes per second and about 25 queries per second. These numbers will defini... |
Easy backup and restore VM's when using Azure |
I have a couple of VMs that I want to backup and restore easily and often. Preferably as a group.
I have tried default Azure backup and restore but noticed that it doesn't seem to do much. It is easy to create and schedule backups but it is not clear to me how these backups can be used to bring a VM back to its origin... |
0
Snapshot works by capturing image state of a virtual machine. In Azure, you can snapshot your VHD and restore that snapshot whenever you'd like. Get started with snapshot here https://learn.microsoft.com/en-us/azure/virtual-machines/windows/snapshot-copy-managed-disk
Di... |
Backup bash script and tar exclude logs and directory |
Following script takes the backup of all websites which are in directory /var/www/websites and create .tar.gz for each individual website at /var/backup and works fine
WEBROOT="/var/www/websites"
BAKPATH="/var/backup"
for vhost in "$WEBROOT"/*; do
test -d "$vhost" || continue
base=$(basename "$vhost")
( cd "$WE... |
After getting some feedback from different sources, I was able to achieve this by adding following lines with if condition
##ADD THIS
if [[ $vhost = *"website1.com"* || $vhost = *"website2.co.uk"* ]]; then
continue
fi
##
So, finally the script looks like this
WEBROOT="/var/www/websites"
BAKPATH="/var/backup"
f... |
Kubernetes - application-consistent backup |
Is it possible to perform a backup on Kubernetes in application-consistent manner?
Some of the backup solutions I found mainly base on freezing the pod and then launching the backup to maintain consistency (Heptio's Ark for example.)
|
0
The idea of application-consistent backups is to capture all data in memory and all transactions in process. This is performed by using some type of client software co-resident with the database application to quiesce the database application, flush its memory cache, comp... |
invalid syntax in kill |
when trying to run these syntax in centos7:
kill -9 $(lsof | egrep '/nfs/backup' | awk '{print $2;}' | sort -fu)
i'm getting error:
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Please advise what might have been a typo or mis-syntax.
|
0
Try this:
mapfile -t process_ids <<<"$(lsof 2>/dev/null | egrep '/nfs/backup' | awk '{print $2}' | sort -fu)"
kill -9 "${process_ids[@]}"
And awk '{print $2;}' gives you, for example 1234; but pid is 1234.
I think that awk {print $2} will be correctly
Share
... |
rdiff-backup with timestamps instead checksums |
I switched my personal "backup" from rsync to rdiff-backup.
rsync compares only file timestamps and rdiff-backup uses checksums on files.
So rdiff-backup needs much more time (10 minutes vs 80 minutes)
Is there a way to use rdiff-backup also only with timestamps? Or another backup alternative using timestamps?
|
0
Have a look at borgbackup.
The "did it change?" check is based on ctime, inode number and size. It is very fast if these did not change.
Share
Follow
answered Jul 8, 2018 at 0:22
ThomasWald... |
Wordpress files not found when I can to make the restore on a diffrent hosting file |
I’m a newbie on Wordpress and when I transfer my domain to a diffrent hosting account and come to restore the bckup files I found it as shown on the second picture which was suppose to be like pic1 this shows that the wp-content,admin,includes etc aren’t appearing on the backup what could be the resin and how can I re... |
0
When you moved the folders to a different hosting along with the database you didn't change the URLs. WordPress is still searching for those pictures under your first http://whatever.link.it.was.url.
If you still have access to the old hosting, try this plugin: https://h... |
MS SQL Server database bakcup |
I am using SQL Server2008 R2 and SQL Server2016.
I have Database of 500 GB.
My Question:
I have restored same database backup on both SQL server versions, but when I am going to take backup of that database on SQL server 2008 R2 backup size become 100 GB around but in SQL server 2016 it reached 350 GB arond.
Please s... |
0
Dhaval,
Sounds to me like Backup compression is not enabled on your 2016 Instance.
The following will guide you in checking and enabling said feature if desired: view or configure the backup compression default server configuration option
Share
... |
Migrating new Word Press to a different CPanel account with old site on it |
I was charged by a client to build a new Wordpress that will replace an old website built with a custom CMS.
I built the WordPress on a different CPanel user and sub domain. It is currently (the new site) on http://alpha.mywebsite.com while the old site is directly at http://www.mywebsite.com.
What would be the best w... |
0
You should consider update URLs in database too. One of the safest and easiest way to migrate your WordPress to a new domain is using "Duplicator plugin". it backs up your wordpress files and database, then you move the backup files to new domain and run the duplicator's ... |
Trouble adding a newly created instance to ebs snapshot scheduler |
EC2 EBS volumes are automatically performed daily and retained for 30 days which was handled by the AWS: EBS Snapshot Scheduler, https://aws.amazon.com/answers/infrastructure-management/ops-automator/.
And there is an instance that was created recently and wanted to add this instance to create its ebs snapshot daily, ... |
You should review Appendix D in the document for settings up the Ops Automator. It talks about how resources are identified for actions:
The AWS Ops Automator uses a custom tag key (name) to identify
resources that will receive automated actions. The default tag key is
OpsAutomatorTaskList but you can modify it d... |
Remote to Local rolling backup script |
I'm trying to create a bash script that runs through crontab to execute a backup remote to local. Everything works but my rolling backup part, where it only keeps 4 backups.
#!/bin/bash
dateForm=`date +%m-%d-%Y`
fileName=[redacted]-"$dateForm"
echo backup started for [redacted] on: $dateForm >> /home/backups/backLog.... |
I was able to come up with an interesting solution after studying the man page for ls a little more and utilizing find to grab the full paths.
ls -tQ $(find /home/backups/[redacted] -type f -name "*") | tail -n+5 | xargs -r rm
just posting an answer for someone that didn't want to create a rolling backup script that ... |
Can uploading public_html folder to another hosting service provider not be enough if the database wasn't backed up? |
I had downloaded the whole public_html folder of wordpress of my website before moving to a new hosting provider. Meanwhile the old hosting is no longer available now. I was not aware that for the database one needs separate backup.
So does it mean that I can not have the full old website back if I only backedup the ... |
Wordpress stores all the text of your posts in the database, which also includes metadata about theme and plugin settings, etc. Theme files, plugin files, post images and other uploaded files are stored in the wp-content folder so you are good. You should backup your database before you migrate.
That said, you might ... |
Backup MySQL database using php (ideally PDO) |
I need to schedule a backup of a MySQL databse on a shared host.
The host doesn't allow me to run shell scripts or mysqldump so that's out.
From the reasearch I've done, it looks like a php solution is my only route. I've seen a few attempts at a solution but none seem to be 100% reliable.
The best I've seen are https... |
0
For anyone else looking for a php backup solution, this is awesome!
https://github.com/ifsnop/mysqldump-php
Share
Follow
answered May 23, 2018 at 16:36
DamianDamian
1,66255 gold badges2626... |
How to find error when app has stopped at runtime? |
I have an Android app that has a feature to export the SQLiteDatabase into a file in the External Storage. It runs okay on my phone (Redmi 4X) but in other phones (like Samsung SM-J105b), it crashes when I do a backup.
Here's my code for the backup:
private void backupDB() throws IOException {
String backupDirect... |
0
Android application stores logs of running application in a file. You can retrieve the log using following steps:
Install the Android Debug Bridge using http://developer.android.com/tools/help/adb.html
Instructions on installing Android Debug Bridge are located here:
h... |
cPanel Backup script moving wrong files |
I installed this backup script for cPanel which works fine (https://github.com/pietromalerba/cPanel-Full-Backup-Script).
I followed the template and created the folders /backups/backup_daily and /backups/backup_monthly and both cron jobs exactly as described by script.
The problem is that the monthly backup file is be... |
0
Solved changing line 47 to
find $HOME/* -maxdepth 0 -type f -name "backup-*" -exec mv {} $BACKUP_FOLDER/ \;
Share
Follow
answered May 8, 2018 at 17:16
Rogério DecRogério Dec
81188 silver ... |
Tiny CLion projects slow to build a second time |
I'm a Community College instructor grading student C++ coding assignments. Been doing the same task all semester. Suddenly, this morning, CLion is building extremely slowly, perhaps even hanging, the second time I build/run a project. WTF? The projects are very small. One source file, one header, no libraries.
What c... |
What changed? My harddrive backup software. I told my auto-backup to take 2 hours off and have had no problem since.
I was recently forced to switch from the Code42 CrashPlan software I've been using for years to Carbonite. Code42 is getting out of the end-user backup business.
Note that I believe this problem is at l... |
Unable to configure cloud storage for scheduled backup in Plesk Onyx [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... |
According to the description of Amazon S3 Backup extension, it is an upcoming paid feature:
Planned features:
* Schedule subscription-level backups to be stored in the cloud
and configure a rotation policy for old backups.
This is a paid feature.
Expect it to be released soon. The same goes for Microsoft OneDri... |
How can I daily backup SVN Repos to another PC? |
I have all my projects on SVN Server which is a PC with 2 TB harddisk and 8 GB RAM.Now this pc is not reliable so I want to use this pc as svn server but also for my safe side I want to back up this SVN server repos daily backup to another PC
|
0
You can use the svnadmin hotcopy command to backup to a remote network share. If you use VisualSVN Server, try the Backup and Restore feature. You can schedule the backups or make one-time backups using the Backup Repository wizard in VisualSVN Server Manager console or B... |
Proper Command to make a Windows Server Backup without disk letter |
How can I configure a backup job in a disk without letter using Windows Server Backup command line?
I already tried this command:
wbadmin.exe start backup -BackupTarget:\\?\Volume{fd4e0ba6-d375-4b48-820d-eeec7ac2024b} -include:"C:\Users\administrator\Desktop\Exchange 2016" -quiet
This command is not recognized by pow... |
0
I don't know if this will help, but it helped me to place the volume guid in single quotes, so if you wanted to backup to a target guid it would be as follows:
wbadmin.exe start backup -BackupTarget:'\\?\Volume{fd4e0ba6-d375-4b48-820d-eeec7ac2024b}' -include:"C:\Users\ad... |
AWS versioning - How to keep only 10 newest versions |
I using AWS CLI on Ubu Srv 16.04 LTS to make backup in S3 bucket every 30 minutes.
I have versioning enabled in the bucket properties.
I use this command to send files:
aws s3 cp DIR s3://BUCKET_NAME/ --recursive --region BUCKET_REGION
Is there any AWS CLI command that will allow me to save only the 10 newest versi... |
I doubt S3(or for that matter AWS CLI) supports this.
But you can use a trick using S3 Lifecycle policy.
You can use Amazon S3 – Object Expiration function:
S3’s new Object Expiration function allows you to define rules to schedule the removal of your objects after a pre-defined time period.
You mentioned you run ... |
Database is unauthenticated to restore back-up |
I have used this script to restore the database back-up.
Step:1
sp_configure 'contained database authentication', 1;
GO
RECONFIGURE;
GO
Step:2
BACKUP DATABASE DataBaseName
TO DISK = 'DataBaseName Path (Local Drive)'
GO
BACKUP LOG DataBaseName
TO DISK = 'DataBaseName Path (Local Drive)'
GO
|
0
If you want to Restore DB Just Used Below query
USE MASTER
GO
RESTORE DATABASE DBName FROM DISK = 'E:DBName.bak' WITH REPLACE
Share
Follow
edited Mar 20, 2018 at 10:32
Filburt
17.9k1212 gold badges6... |
MySql backup and restore over ssh Lost connection error |
I usually get a local copy of a big MySql remote production database on Debian with the following command:
ssh [email protected] "mysqldump -u user -ppassword --single-transaction --databases db1 db2 " | pv -t -b -r -W | mysql -u user -ppassword
It take some hours so I can see the pipe status with the pv (pipe vie... |
0
The issue was the pv, the command pipe view that a buffer of 400-500 kb that was completely full.
I modified the command with a greater buffer size:
ssh [email protected] "mysqldump -u user -ppassword --single-transaction --databases db1 db2 " | pv -pterbWTCB 1G | mysql... |
On Windows, where does H2 database BACKUP TO? |
Online mode H2 on Windows, backup by BACKUP TO 'mybackup.zip'
But, where is the 'mybackup.zip'? Found almost everywhere, running directory, h2* lib directory, user directory, db directory, java/bin directory, nowhere found.
And BACKUP TO 'C:/mybackup.zip' or BACKUP TO 'file:/C:/back.zip' can run without error, but not... |
0
Somehow BACKUP TO succeed in Shell mode, fails in browser H2 console.
java -cp h2*.jar org.h2.tools.Shell
Share
Follow
answered Mar 15, 2018 at 7:42
rufushuangrufushuang
30044 silver badge... |
How to backup data from a USB drive attached to a BT HomeHub |
I am running Windows 10 on 2 PCs.
They are both connected to a BT Home Hub which has a USB drive plugged in and the shared data that they use is on that drive.
I want to run a daily backup of that data from one or both PCs to backup the data onto a USB drive attached to the PC(s).
Is there an easy / reliable way to do... |
0
OK, this can be closed now, EaseUS Free allows me to do this ... Trial & Error it was !!
Share
Follow
answered Mar 15, 2018 at 9:29
Gary HeathGary Heath
31311 gold badge33 silver badges151... |
Postgresql Auto backup script runs in terminal but does not runs in CRON job on MacOS |
I Used Common Postgresql backup script from Automated_Backup_on_Linux:
#!/bin/bash
if [ ! $HOSTNAME ]; then HOSTNAME="localhost"; fi
if [ ! $USERNAME ]; then USERNAME="postgres"; fi
BACKUP_DIRECTORY="/Users/xeranta/Documents/AW/"
CURRENT_DATE=$(date "+%Y%m%d")
if [ -z "$1" ]; then
pg_dump -U postgres -h localhost ... |
The cause of the problem is that pg_dump is on your PATH in the interactive shell, but not in the cron job.
You should use an absolute path similar to this:
PGPATH=/wherever/your/postgres/binaries/are
"$PGPATH"/pg_dump ...
|
How to backup single datasets of mariadb using php only |
I have a php clean up script performing several deletions of single entries
"delete from table0 where id=5";
"delete from table1 where customerId=5";
...
Before I delete, I want to backup and safely dump these data sets.
What is the best way to do so to be able to restore it later.
I was about loading assoc array, s... |
0
mysqldump ... dbname tblname
will dump a single table in a format that can be fed to mysql for reloading.
Be careful to ask for (or avoid getting) DROP, CREATE, etc.
The output will be a text file, so you can inspect the dump to see if it does what you want.
Sh... |
Detect if app starts after backup restore |
Is there a way in swift to detect if the app starts after restoring a backup?. Let's say make a backup on a device and restore it into another device.
|
0
I tried a solution which seems to work after some testing. I tried several backup restores and it worked fine for me.
The first step would be to save the vendor identifier at the first run of the app:
if UserDefaults.standard.value(forKey: "vendorID") == nil {
if... |
Restore database from backup drupal 8 |
I accidentally deleted my drupal 8 files. But my database is not damaged right now. Is there anyway I can bring my site back to live.
What I did: I have my site old backup [only files]. Copied those backup to root folder replaced database credentials in settings.php. But no luck.
Any other way to bring back my site li... |
0
If you have drush you try with
drush sql-cli < my_directory/my_drupal8_dump.sql
So, in you backup files just run this command, not need to update settings.php
Share
Follow
answered Feb 16, 201... |
Generate DB backup from recent (3 years) data |
I'm working with a odl database that stored a large amount of data and I have been asked to send to people we're working with one backup of our database but they need this backup to be smaller than a complete backup of de database.
I mean, they want me to make a backup of recent (3 years to now) data and I'm not sure ... |
0
I also found that having my version of Excel had written Null into the text file and the Flat File import did not work - I had to remove all of the Nulls and set them to blank.
Share
Follow
answ... |
How can I upload files to google cloud storage from my server to google's server using PHP to backup my server files? |
I have downloaded and installed the google cloud storage PHP library via Composer, downloaded the JSON key file, and I am unable to do anything using the library. I get nothing but errors when i followed the instructions to the letter. Anyway, here is code from the file I am trying to do anything with, like list bucke... |
0
From your code I can see that you are missing the following library:
use Google\Cloud\Storage\StorageClient
And the object "StorageClient" is not created.
function list_objects($bucketName)
{
//$storage = new StorageClient();<---- This line
Here [1] you have multi... |
Backing up parameters from Octopus Deploy? |
Is there a way to extract or backup parameters set up in Octopus Deploy (version 3 or version 4)? Either thru an Octopus Deploy service (capability) or scripting, not from a backup database.
|
Could the Octo.exe be your answer?
For example:
octo export --server=https://octopusaddress/api --apiKey=API-XXXXXXXXXX --type=project --name="MyProject" --filePath=MyProject.json
|
Snapshot support in Teradata |
We want to know if Teradata supports snapshots/journalling. For example taking snapshot – point in time copy/image of one or multiple tables. Generally snapshots are used for taking backups without stopping regular batches. Today in our data-warehouse, we stop regular batches before taking backups. If anybody has used... |
0
You can define permanent BEFORE and/or AFTER journals for tables in Teradata. Take a look at the DDL Syntax manual:
https://info.teradata.com/HTMLPubs/DB_TTU_16_00/index.html#page/SQL_Reference%2FB035-1144-160K%2Fjbg1472241477989.html%23
I've never used the table journal... |
Trying to create a simple backup PowerShell script |
Trying to create a simple backup script, but every time I run the script below, I receive the following error:
Copy-Item : Cannot overwrite the item C:\Users\Jacob\desktop\file1.txt with
itself.
At C:\Users\Jacob\desktop\test.ps1:5 char:1
+ Copy-Item $file $file.backup
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryIn... |
$file.backup tries to expand the (non-existing) property backup on the string variable $file. This comes back with an empty result, so you're effectively running Copy-Item $file (without a destination), which causes the error you observed.
To avoid this issue you can do several things, for instance:
define the destin... |
Azure, delete SQL Server Automatic StorageAccount before disabled the Automatic Backup. Can't disable it now |
So as the title says we deleted by mistake the StorageAccount before disabling the Automatic Backup. SQL keeps trying to do the backup anyway (as per the Event Log) but there is no way to disable it. When disabling on the Portal it says:
Provisioning failed. StorageAccount 'hfidiag756' associated with VM 'hfidb' for b... |
0
Recreating the storage account with the same name may partially help as you already did, try the bellow steps:
On the vault item dashboard, click All Settings to open the Settings blade.
Backup policy blade
On the Settings blade, click Backup policy to open that blade t... |
Maintenance plan - Failed to acquire connection "Local Server Connection" |
My maintenance plans broke all of a sudden, after a Windows update. My backup routines cannot get access to the server any longer. I have tried with different user accounts, changing the connections in the "Manage Connection" window, in the maintenance plan but nothing has worked!
Executed as user: NT\SQLSERVERAGENT.... |
0
The problem was that a colleague of mine had renamed the servers HostName. Apparently that screws up the Maintenance plans, among other things.
The "Local Server Connection" when managing the connections in the Maintenance Plan designer, was set to .\MSSQLSERVER,1433. Whi... |
How do I send btrfs snapshots to multiple destination drives? |
How do I make a BTRFS incremental backup to multiple source destinations, so I don't have to run btrfs send multiple times?
btrfs send -p /tmp/parent_subvol /tmp/incremental_backup_snapshot | btrfs receive /mnt/destination_drive1
btrfs send -p /tmp/parent_subvol /tmp/incremental_backup_snapshot | btrfs receive /mnt/de... |
in bash:
btrfs send -p /tmp/parent_subvol /tmp/incremental_backup_snapshot | tee >(btrfs receive /mnt/destination_drive2) | btrfs receive /mnt/destination_drive1
(courtesy this answer)
|
Magento 2 - You need more permissions to create a backup |
I got this message when I tried to create a system backup in my Magento 2 installation. Does anyone know how to solve it? I am using admin master, it does not make any sense.
|
0
There is a permission issue. Please give permission as per document
https://devdocs.magento.com/guides/v2.0/install-gde/install/cli/install-cli-backup.html
Thank you.
Share
Follow
answered Jul 1... |
Gitlab backup secrets |
I have docker ce v9.3.5 running inside a docker container.
I want to backup gitlab secrets as descrited here
I used this command to perform the backup of the secrets and configuration, but it gave me an error:
docker exec -t <your container name> /bin/sh -c 'umask 0077; tar cfz /secret/gitlab/backups/$(date "+etc-gitl... |
0
Please make sure that gitlab_rails['backup_path'] option is indeed /secret/gitlab/backups/ and the path exists.
The idea is that if you set an different folder for backups then you will have to adjust the command as you have it set in gitlab configuration
Share
... |
How to replicate/duplicate/sync/backup a local elasticsearch instance to a remote elasticsearch instance |
I have an elasticsearch cluster which contains only one node and is present in a local network to store data in an index (say "helloworld") pushed from sensors connected to different machines in the same local network. Now this setup is deployed in a remote place and lets say I do not have access to any machine on the... |
0
you can use the snapshot/restore api .
1) create snapshot of your index
2) copy the snapshot by your self to your vps
3) restore it from other cluster.
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#modules-snapshots
Share
... |
Wordpress - duplicator plugin back up fail |
I've just moved a wordpress site from localhost to live server and attempted a backup using the duplicator plugin. It's showing the following error/fail -
It's also showing a red 'Pass' for 'required paths' with the following comment for three filepaths - If Duplicator does not have enough permissions then you will ... |
0
After some studying and assistance from a wordpress forum, the solution was to install an archive_zip extension from the PHP Pearl package section in the cPanel and then click through to the PHP versions section and tick the box next to 'zip'. Hit save and then the back... |
I want to upload only updated files to google drive but XCOPY seems not working |
I recently started using Google Drive as a corporate account to backup 10,000+ files.
Once I uploaded everything to G:\My Drive\ with taking 3 days.
Now for the operation, I would like to copy only updated files so I created batch file like following.
set TODAY=%date:~0,4%%date:~5,2%%date:~8,2%
set time2=%time: =0%
... |
0
I found the following software resolve the issue.
I am not sure why XCOPY didn't work but the following software works perfectly even on Google drive.
[link]http://synchronicity.sourceforge.net/
if some of you achieved another way please let me know.
Share
... |
Recover Jenkins from thinbackup not restoring ssh private key |
I am trying to restore my jenkins on new machine from thinbackup client backup.I also have backed up secret* and credentials file.
After restoring on new machine - most of the config looks good. The problem seem to be with ec2 plugin config where we have ssh key info, that looks like encrypted then thus fails. any inp... |
0
Turns out to be some vague issue.. it was pretty old jenkins setup..
what worked for me is to
- update the key info again into the ec2 plugin "EC2 Key Pair's Private Key".
- backup again.
- restore from new backup on new mac.
Share
Fo... |
From FTP to Bitbucket/Dropbox/Box |
On my FTP server I do automatic backups of a MySQL database (one MySQL dump file) when I logout from my CMS. The script is in PHP.
But, on Bitbucket, I don't have an actual version of this file and I want to have a backup when FTP or MySQL shuts down.
How can I download, maybe via cron or in a PHP script, a file to my... |
0
ok, and other mechanism of backup to dropbox or somethink cloud service? Box/Drive etc. ?
Thank you.
Share
Follow
answered Dec 14, 2017 at 1:22
LukasLukas
333 bronze badges
... |
How to Restore DataBase Backup that found in another server? |
using sqlServer 2012 ..I have abackup File (MyDataBase.Bak) found in server Ip=(134.122.123:4454) .. and I want to restore this backup to another server .. the same dataBase in another server (MyDataBase) ,, server IP (134.122.124:4455) .. How can I do that , how can I restore database Found in another server ??
|
0
If you are unable to restore your backup file in different server then other option is generate script and just you have to run on different server.
Right click database → Tasks → Generate Scripts → Select your table → Click on Advance button → Types of Data to script - S... |
Solution for backup webserver by ubuntu and mysql? |
We had a webserver on Ubuntu14.04 server that was implemeted by LAMP (Linux, Apache, MySQL, PHP) and phpMyAdmin to manage database.
Now we will buy one more server for backup our webserver. However, I don't know the solution for this work. I heard about some solution like loadbalancing, cron, mysqldumb, Master Slave R... |
0
Master/slave :
Master/slave if your stuff (CMS, etc...) can consider read-only mode of slave to be used.
It's better if your stuff handle master/slave replication in configuration (= is not trying to send UPDATE or DELETE to a slave server which will give errors)
Slave se... |
Git make patch or backup file containing actual files |
In my git repository, I have few git track file modified and few untrack files modification. Is it possible to make a git patch or zip file that will contain all actual files both track and untrack files. That patch/zip file could be unpacked to view file contains even outside of that git repository. It is mainly to m... |
To backup only files that are tracked by git, you can use git-archive
e.g. git archive -o latest.zip HEAD
To backup all files (including untracked) you will have to use another utility such as zip or tar
|
Copies of Android Studio source files aren't current |
I tried the simple way to create a backup of my Android Studio project, by creating a Zip file of the project, but the files have much older modification dates. Sure enough, when I open them with a text editor, they don't have the mods I made. What's going on here? When I edit them in Studio, everything is good, but w... |
0
It turns out that the app folder contains a src folder that holds the current source.
Share
Follow
answered Nov 19, 2017 at 1:53
FractalBobFractalBob
3,40444 gold badges3030 silver badges4... |
Get-AzureRmBackupVault not returning any error or result |
Still wondering why Azure Powershell is not consistently working.
I tried pulling all azure vault via powershell using following command line but none of result coming from this command :
Add-azurermaccount
Login-AzureRmAccount
Select-AzureRmSubscription -SubscriptionId "XXXXX-b8ee-4533-a2c2-3ee6b4f01a8d"
Get-AzureRm... |
Please ensure you have a Backup vault (classic) in your subscription.
Backup Vault is a classic resource, if you create Recovery Services vault,
please execute following cmdlet.
Get-AzureRmRecoveryServicesVault
More information about this please refer to this link.
Note: You could not use Get-AzureRmBackupVault to... |
powershell script to delete old backup files more than 6 months old |
I'm deleting files manually on my system which are more than 6 months old, want to automate the process, is it possible via powershell? Pretty new to it!
I want to delete files more than 6 months old.
Any help would be much invited!
|
0
So Vivek Kumar his line will work, but there is one important note, that why i'm posting it as an answer and not as a comment.
This will work but be careful, if you cut/paste an old file, the creationdate will be pasted as well. So say you cut and paste a file that has be... |
Backup SQL Server database to Azure with RedGate tools |
Is it possible to backup a SQL Server database directly to MS Azure with RedGate tools? I searched around and could not find any info on that.
Thank you for your input.
|
0
No, this isn't a service that Redgate provides (we used to a while back).
There are, however, other third parties, such as CherrySafe that cater for this scenario.
Share
Follow
answered Nov 10,... |
User has overriden a file on SharePoint, no versioning, possible to restore the file? |
So the user seems to have overriden a file on a sharepoint list with no versioning. I don't know what SharePoint version it is, but it's definitely on prem (not online). A back-up was made yesterday, prior to the user overriding the file.
Is it possible to restore the file & restore everything back to normal from us... |
0
As the first step enable versioning to the current library.
If there is a SQL backup create a separate site or web application and over write the database of the newly created web application with the existing backup.
The you can access the site using the newly created we... |
restore backup database from plesk control panel sql 2014 to my pc sql 2012 |
I want to restore my backup file that I've gotten from host's sql server (with plesk control panel) to my PC's sql server (version 2012). but I can't restore a higher version backup file to lower version sql server. I can't install sql server V.2014. (my computer is old. I tried to install it but I couldn't.)
so who ... |
0
If it is required to modify the database somehow, you can do it on your local Plesk server (even in GUI) by means of database management tools. myLittleAdmin is used for managing MSSQL databases in Plesk for Windows.
So you may want to try to open the database in myLittle... |
Copying MySQL database fails due to maximum execution time |
I tried copying my CiviCRM database which has around 160+ tables. It stopped mid way with an error "Max execution time 360 ... blah blah" couldnt read completely. Even my php.ini file has max execution time as 120. From where this picks up the value 360.? How do I copy the SQL file without any problem?
|
You can proceed by doing a DB backup with mysqldump command.
You should be using mysql on CLI mode (CMD/MS Windows, Mac or Linux) to do so.
The syntax is as below:
mysqldump -u user -p --opt databasename > backup.sql
Please refer to mysql documentation: https://dev.mysql.com/doc/refman/5.5/en/mysqldump.html
|
How can I move files with one specific extension, with absolute paths / folder structure? |
I became a victim of the HERMES 2.1 ransomware on October 30.
It encrypted half my disk before I noticed it. My instant reaction was to kill the process and to shut down the computer. Now I booted up Kali Linux to prevent further damage and to ask this question:
The encrypted files are not very imported, so I decided ... |
0
In general, StackOverflow requests that you show some effort that you have put in the question. Also, novice questions with Kali are a bit ignored; Kali is for advanced users, not for beginners.
But what you want is to create a copy of the directory structure and then cop... |
Backup TDE database to restore unencrypted on 2016 |
We are in a process from migrating SQL Server 2008 R2 enterprise version (with encryption) to 2016 standard version (without encryption). Currently we are testing on a dev server. I tried to turn off the encryption, take a backup, copy it to the dev server and restore it there.
But then I got the error as the certifi... |
0
You need to drop the encryption key as well as disable encryption to move to a platform that doesn't support TDE. This is the code I use for that purpose.
USE MASTER
GO
ALTER DATABASE DatabaseName
SET ENCRYPTION OFF
GO
USE DatabaseName
GO
DROP DATABASE ENCRYPTION KEY
GO
... |
multiple control files to restore in oracle |
I should restore oracle backup to my host, I have three control files as you can see blow :
c-1295819063-20170920-00
c-1295819063-20170920-01
c-1295819063-20170920-02
I will be pleased if you could help me to select correct control file to restore?
thank you
|
0
It is impossible to know which control files to use based on the file name alone. Chances are that the control 1295819063-20170920-0x files are multiplexed, meaning that 00, 01, and 02 might be copies of the same file.
I would encourage you to do more research about cont... |
postgreSQL rake db:setup revert back data recovery |
I'm working on an application which runs on PostgreSQL. While I was modifying the schema by creating another table, I, unfortunately, ran rake db:setup and all my data was deleted. I manually didnt take any backup. Is there any possible way to rollback or to get the records back?
Thanks in advance!
|
0
The short answer is "no", but you could try your luck with pg_dirtyread.
Share
Follow
answered Oct 26, 2017 at 14:29
hoffmhoffm
2,4162424 silver badges3636 bronze badges
Add ... |
Mirror Windows Server 2008 files to file server |
I use Blue Iris video monitoring software on Windows Server 2008 R2. It saves video clips (in its proprietary BVR format) to a local hard drive. Some clips can be several minutes in length.
I want to mirror these clips to a folder on a Linux file server in as close to real time as possible.
At the moment I'm using Be... |
0
So I just discovered a tool called Dsychronise, which seems to do exactly what I want. The UI looks a bit primitive, but so far it seems to be doing a correct real-time replication of my files. Fingers crossed....
Share
Follow
... |
Is there good way to backup and delete and backout the document from couchdb? |
I have some couchdb document need to be removed, Is there good way/steps to backup and delete and backout those document from couchdb?
|
0
I've written a blog post about the three ways to delete a document from CouchDB which may be helpful. I'll summarize here:
saving a document with a _deleted:true field removes it from most views, but the final values of other document fields are still available. This del... |
How to backup an application's database |
I am trying to write a script to backup a database managed by an application, and want to know if there is a simpler way to do it. I think I'm making it way to complicated.
Basically I am stopping the application services (aside from the database) and save it into a text file, that is read until it gives the appropria... |
bash doesn't do string comparison directly; you need to use a specific command.
while [[ "$(./rr.sh /tmp/tmp/systemtables.txt)" != "[system tables export successful]" ]]
do
|
Batch (.bat) Backup Script > Empty folders not copied |
This is the .bat script I use for my data backups:
ECHO OFF
set source="[source path]"
set destination="[destination path]"
for /F "tokens=2-4 delims=/ " %%i in ('date /t') do set yyyymmdd1=%%j"."%%i"."%%k
if exist %destination% goto GO
:GO
mkdir %destination%%yyyymmdd1%
xcopy %source%* %destination%%yyyymmdd1% /s/d... |
0
The empty-directories problem: Read the documentation on xcopy (from the prompt: xcopy /?) and pay attention to the /e switch.
The time problem: Different people use different formats. There are many, many articles on SO about how to extract time into its elements in batc... |
barman + mark the failed/started backup with red color |
With the following barman command we can see the backup status, while STARTED/FAILED status indicated that backup inst created successfully
barman list-backup main-db-server
Output:
main-db-server 20170913T115706 - STARTED
main-db-server 20170913T115214 - STARTED
main-db-server 20170913T114659 - STARTED
main-db-se... |
0
You can use grep for that
barman list-backup main-db-server | grep -E 'FAILED|STARTED' | ... tput setaf 1 ... tput sgr0
Share
Follow
answered Dec 8, 2017 at 18:31
shalbafzadehshalbafz... |
Bacula - Director unable to authenticate with Storage daemon |
I'm trying to stay sane while configuring Bacula Server on my virtual CentOS Linux release 7.3.1611 to do a basic local backup job.
I prepared all the configurations I found necessary in the conf-files and prepared the mysql database accordingly.
When I want to start a job (local backup for now) I enter the followin... |
0
It might help someone sometime who made the same mistake as I:
After looking through manual page after manual page I found it was my own mistake. I had (for a reason I don't precisely recall, I guess to trouble-shoot another issue before) set all ports to 9101 - for the ... |
Azure Recovery Services agent on Server Core 2016 |
I'm attempting to install the Azure Recovery Services Agent on a 2016 Standard Server Core machine. It installs fine, but when I try to browse to the vault credential file, I get an exception that appears to be related to visual themes not existing since it's server core:
I've also tried setting up Azure Powershell ... |
0
Download the latest PowerShell release (minimum version required is: 1.0.0) and then Verify you have Windows PowerShell version 3.0 or 4.0. To find the version of Windows PowerShell, type this command at a Windows PowerShell command prompt.
$PSVersionTable
Verify that ... |
How to backup growing file? |
I have a file that is constantly growing by appending to the file. Every once in a while I want to back it up. The file is too large so copying it every time is not an option.
What I want is that each time I back it up, only the new appended data will be copied. Is there an existing tool that does what I need?
I could... |
0
Depending on the expected size of the new additions, you could write a script which includes: tail -500 filename > save_new_entries.out. This will print the last 500 lines to a file which you can then save as a partial backup. This could all be done in a script.
... |
interactive bash script for backups |
I wrote a bash script to read a bunch of CSV files from a folder and create a backup file in a separate backups directory.
#!/bin/sh
files=$(ls /../test/*.csv 2> /dev/null | wc -l)
if [ **"$files" != "0"** ]
then
# What to backup.
backup_files="/../test/test2"
# Where to backup to.
... |
The reason is you are not expanding the $day variable. Use this:
archive_file="$name-$day.tgz"
|
Codeanywhere: backup on Android |
I'm trying to use codeanywhere's app to do some coding on my android phone while on the road. It works fine except I'd like to make backups of my files and can't figure out a way. My attempts:
Download files and folders from the app. There is an option to do this in a ... menu but it doesn't work; it takes me to a bl... |
0
In case anyone has the same problem: downloading files / folders works from the website (not the app)
Share
Follow
answered Aug 24, 2017 at 5:45
jorgenjorgen
3,50544 gold badges3232 sil... |
restore database to a specific time with old backup and transaction log |
I have a sample database and I took a backup of that on two weeks ago. Now I wanna restore database to one day ago. I'm using the full recovery model. How can I do this with no extra features (only SSMS - use my old backup and current log)? Maybe I have to re-run my transaction log on the old database backup.
I found ... |
i take backup of my current transaction log file , and then i tried to restore database for a specific time with using both old backup and transaction log , and set time plus using replace option . worked correctly!
|
Rails - what is the "correct" way to stop accepting requests without breaking those being already processed? |
I need a few seconds for making daily backup of the (Rails 5 with Puma cluster behind nginx reverse-proxy) application's data, which includes both database and filesystem records. The typical Rails backup solutions like backup gem don't seem to be able to handle such case so I imagine the easiest way would be to stop ... |
0
You can check this two, this might help.
Backup Gem
Dumper Gem
Share
Follow
answered Aug 14, 2017 at 7:46
Bijal GajjarBijal Gajjar
4711 silver badge66 bronze badges
1
Than... |
Extract data from CommVault, Netbackup and EMC Data Domain |
I want to create a web application where I can extract the data from CommVault, NetBackup and Data Domain Backups and insert them into a thrid backup client such as Rubrik. Is there any way I can do that using a program? Are there API's available for this?
It seems all these providers provide GUI based services and no... |
0
Old question but from what I remember Netbackup uses Sybase for it's database to track jobs. I think the trick is finding the right drivers to access it since the regular ones don't work.
I've seen old code where people extracted data from there and combined it with data ... |
HSQLDB Backup Query gives COMPRESSED error |
To backup HSQLDB catalog in manaual :
BACKUP DATABASE TO directory name BLOCKING [ AS FILES ]
when I apply in calableStatement :
try {
cs = conn.prepareCall("BACKUP DATABASE COMPRESSED TO './backup/' BLOCKING ");
cs.execute();
cs.close();
} catch (SQLException e) {
e.printStackTrace();
}
1- If I add COMPRESSED and e... |
The syntax for this command allows the settings only at the end of the statement:
BACKUP DATABASE TO <file path> [SCRIPT] {[NOT] COMPRESSED} {[NOT] BLOCKING} [AS FILES]
It looks like the suggestion is generated only by IntelliJ.
Please note use of prepareCall is required only for calling procedures and functions. It... |
Updating changes in database(postgresql) to remote backup database |
I have created a postgresql database backup on AWS Linux using pg_dump . Now i want to commit only the changes made in the database after the backup to the backup database without having to pd_dump the entire database , so as to maintain consistency.
Is there a way to commit only the changes and not the entire databas... |
0
As mentioned by Prashant; this could be achieved using pgbarman tool.
Share
Follow
answered Aug 5, 2017 at 7:16
Deepak SinghalDeepak Singhal
10.8k1111 gold badges6060 silver badges10410... |
Backup and restore depending databases in SQL Server |
I have 2 SQL Server databases, Parent and Child. Both are not always in the same server, but there is always a reference to Parent in the Child database using linked server. Child database makes changes to Parent database through stored procedures and synonyms, so both databases always are in the same 'state'.
The pr... |
0
If you can write a job for them that does the restore and train them to run your job instead of a manual restore using SMS, then you can add a final step in the job that updates a "LastRestoreDateTime" column in a new table that you create... perhaps named "RestoreHistory... |
Elastic search backup - snapshot disk whilst running? |
Im running a single ES instance. After I have inserted around 100k documents would I be able to take a snapshot of the disk where the data dir is and restore it without any issues every time? (Whilst ES is still running).
Or do I need to shutdown ES, or have an explicit "write all inserts to disk" config?
MySQL Innodb... |
There is no guarantee that this will contain a useful point-in-time snapshot that can be restored. You would need to jump through several hoops to ensure this (stoppping indexing, flushing, ensuring no merges are happening). As this is too complicated the official way of doing a backup is using the snapshot and restor... |
How to download a mysql dump from Rackspace cloud |
I need to get data from a MySQL dump on Rackspace Cloud. I can see the sql.gz file I need in "Backup Contents" but it is not accessible. I have tried downloading from Cloud Files, but they make no sense on a Windows machine. Any pointers?
|
I had to SSH in and do mysqldump
|
Apache Jackrabbit "web repository browser" do not show imported files |
I'm working with Apache Jackrabbit using JCR API. I have exported current repository to a XML file:
session.exportSystemView("/", out, false, false);
Then, I imported the generated XML file to new instance of Jackrabbit:
session.importXML("/", in, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);
Now I can... |
I found the answer, according to Alexander Answer
Note that this approach has one drawback: it is currently not possible to re-import a full export, ie. from the root node and including the jcr:system subnode that contains the version storage, since the jcr:system part and especially the version storage are not wri... |
Backup SSAS via SSMS Job with Date Appended |
I'd like to backup my SSAS database via a SQL Server Agent job in SSMS – and I’d also like to append the day number to the end of the file and allow overwrites.
This will ensure that I only ever have a month of backups (i.e. Jan 1st backup will be called backup_01.abf, Jan 2nd = backup_02.abf etc.)
I connected to the ... |
You can with 'dynamic xmla script' execute via sql. below link will be useful:
https://www.mssqltips.com/sqlservertip/2790/dynamic-xmla-using-tsql-for-sql-server-analysis-services/
|
Azure RestAPI call to disable backup schedule in Recovery Services Vault |
I'm using this URL to try to disable a scheduled backup job in Azure Recovery Services Vault :
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protected... |
0
In Azure portal, we could disable backup schedule by clicking Stop backup menu item.
After capture the traffic by IE development tool(opened by pressing F12), I found the request message should be following format.
Request URL:
POST https://main.recoveryservices.ext.az... |
Using CronJob to automatically backup MySQL files |
This is my crontab file in the etc folder in order to backup the database on a daily basis(2pm) but it doesnt really back things up:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .----------... |
1
Firstly, you need to make sure that your bash script work well.
Create a shell script file, named mysql-backup-script.sh
#! /bin/bash
mysqldump -u CENSORED -pCENSORED server | gzip > /home/samp/samp03/scriptfiles/sql-backup/database_`date '+%d-%m-%Y'`.sql.gz
Secondly, ru... |
Can HANA incremental backups be scripted? |
Can HANA incremental backups be scripted?
As per SAP note ‘1642148 - FAQ: SAP HANA Database Backup & Recovery’:
“Are incremental and differential backups available?
Yes. Starting with HANA SPS 10 incremental and differential data backups are available.
It's also possible to combine both kinds of backups in one backup... |
0
generally speaking, yes, incremental backups can be scripted just as the other backup options can.
Concerning the mentioned SAP note, well, it is written in the note, the documentation PDF and in the script as well: there is no support nor further development happening wi... |
Scan C disk and copy files |
I would appreciate some help here.
The Powershell script should close Outlook process which works.
Aswell as scan C disk for .pst files which works.
Copy these files to "\fileserver01\temp\test\"
Export to csv/excel list where these files where located and last write time.
Possible hide error messages for the user w... |
First you have to use double backslash for UNC paths.
Second, the copy-item does not output anything to the pipeline, you have to use the -Passthru parameter.
Get-ChildItem -path z:\ -recurse -include *.pst -PipelineVariable source |
Copy-Item -Destination "\\path\temp" -Verbose -PassThru |
Select-Object @{... |
Unison sync across more than 2 computers |
I am currently using Unison across 2 computers (server and laptop). I need to create another connection where I can timely backup my data from server.
laptop <--> server -> backup
Here the connection to backup from server can be unidirectional. Is there any way to accomplish this?
|
0
This is a very common thing to do. When setting up Unison across multiple machines, you should prefer a star topology. So if you can, you should run another instance of Unison, along with any backup-related scrips, on your machine where you are storing your backups. It sh... |
Archiving files once with rsync |
Is there a way for rsync to archive files only once to the destination? So that if I delete a file on the target after they were archived, the rsync won't re-copy it?
Thanks a lot!
|
0
I believe that by using only rsync, this is not possible, since it would be required to use some kind of database / additional coding, to keep track of files that that were once synced.
Maybe rsync is the wrong approach for this use case?
The other way around, to skip exi... |
Differential Backup approx equals to Full Backup [IN SIZE] |
I'm currently using SQL Server 2005 for handling data/records in my application and usually use default(full) mode for DB backup. Recently, I switched its backup mode to differential to get rid of excessive size/time which ideally full backup operation takes.
However, I shocked to see newly created differential backup... |
0
You need to first understand SQL backup types and recovery models. For an efficient point in time recovery, a proper backup plan should consist of:-
Full backup (this can be done on a weekly basis or in every 3-4 days).
Differential or Incremental backup (can be done on ... |
Command line to remove oldest backup |
I am having the following directory with multiple Backup from $(date +"%d.%m.%Y at %H:%M:%S").zip files.
/opt/
/opt/files/
/opt/files/private/*
/opt/files/backup.sh
/opt/files/backup.txt
/opt/files/Backup from $(date +"%d.%m.%Y at %H:%M:%S").zip
With a daily cronjob 0 0 * * * cd /opt/files/... |
find /opt/files/Backup -name \*.zip -a -mtime +14 -ls
If you are satisfied the files being matched are the ones to delete, replace -ls with "-exec rm {} \;"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.