Prompt
stringlengths
14
160
Instruction
stringlengths
18
2k
Response
stringlengths
8
2k
SQL Server Managed Backup for Windows Azure (SSMBackup2WA) stuck waiting for progress update
I have a database running on an azure vm with sql server. The db is in full recovery mode. The backup is configured through the web interface. Database and log backups have been working flawlessly for years. But recently the log backup was interrupted halfway through and the log backup process somehow got stuck. The f...
So since no one seemed to have an answer to this one I resorted to restarting the SQL-server. And after the restart the transaction log backup started working again! What is interesting is the following log that appeared in the application event log during the restart. It does seem like there was a thread hanging inde...
How to: Schedule snapshot of OpenStack instance
I need to schedule snapshot of OpenStack instance. I'm wondering if this can be done through the UI. Or is it terminal only?
1 By "through the UI", I presume you mean ... using the OpenStack Dashboard. Backup in OpenStack is a bit complicated. Services like Nova, Cinder and Trove each have their of mechanisms for backup the resources that they manage. In addition, there is a service called Freez...
APEX 5.1: Automatic Copy of an app in Oracle APEX
Right now I have an "Production App" that changes everyday. Every Friday I go to Tasks > Copy this application Tasks And send that copy to another ID App, in order to have (for example) "Production App 2" as a backup (I have the DB backup in another server) Is there any way to make that "backup" automatically? Thanks ...
How about exporting your applications regularly (e.g. on a daily basis)? You'd use APEXExport. As it is invoked from the operating system command prompt, you can create a batch script (.bat on MS Windows) and schedule it (using Task Scheduler on MS Windows) to run at any time you want, e.g. 02:00 (2 hours past midnigh...
How do you verify whether OpenStack instances are being backed up or not? Is there a way to do this using the GUI?
How do you verify whether OpenStack instances are being backed up or not? Is there a way to do this using the GUI? The instances are running on Centos7
1 As I know, there are two method to create the server backup. create by command line openstack server backup create, it will use the server name while not define the --name optional argument. usage: openstack server backup create [-h] [-f {json,shell,table,value,yaml}] ...
zip command in Mac refuses to create folder
Following a python tutorial making backups. The code works only if i manually in python make all subfolders for placing final zip file, but that defeats the purpose. 1)I create subfolder backup. 2) But i want to create %Y%m%d folder in it using zip. I pass all the arguments. # pylint: disable=missing-module-docstring ...
I don't believe there is a way to tell zip to create the target directory, but this is something you can do yourself using if not os.path.exists(today): os.makedirs(today) Note that makedirs will recursively create all required directories, meaning that you no longer need os.mkdir(target_dir) unless you want to k...
How to change mysqldump USE DATABASE
Is there a way to remove/change the USE databasename from the .sql file generated with mySqlDump? I'm useing the following commandline bin/mysqldump.exe -uName -pPass --single-transaction --routines --triggers --host host_test.com --databases testreporting > backups/testreporting.sql The part I want changed is the s...
You have to remove --databases https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html#option_mysqldump_databases --databases, -B Dump several databases. Normally, mysqldump treats the first name argument on the command line as a database name and following names as table names. With this option, it treats all name ar...
Use an existing disk in a persitent volume claim
I have an (AKS) Kubernetes cluster running a couple of pods. Those pods have dynamic persistent volume claims. An example is: apiVersion: v1 kind: PersistentVolumeClaim metadata: name: mysql-pvc namespace: prd spec: accessModes: - ReadWriteOnce storageClassName: custom-azure-disk-retain resources: re...
1 You are using dynamic provisioning and then you want to hardcode DiskURIs? With this you also have to bind pods to nodes. This will be a nightmare when you have a disaster recovery case. To be honest, use Velereo :) Invest the time to get comfortable with it, your MTTR ...
The database backup in postgresql is five times larger than the database itself
My English is bad and I used a translator. I am doing backup using: pg_dump -p 5432 db> backup.sql At the moment, the weight of the backup reaches 4GB, and continues to grow more and more. At the same time, the database itself weighs only 700MB. I think that it should not be so, how can you optimize the creation of ...
1 It is very unusual for a dump to be larger than the database; usually that means that you have bytea columns or large objects in there. But even with these I could not explain a factor of five. Without understanding the cause, the solution is probably to use a compressed ...
Oracle Free Cloud restore boot volume backup
I wanted to try out the Oracle Free Cloud, but i have a problem with restoring a backup boot volume to the instance. Is it possible to restore a boot volume backup and replace the current one from the instance? At the moment i was only able to terminate the current instance and boot volume and create a new instance ou...
1 You cannot restore the backup directly to a running instance. You need to create a volume from the backup and use the same to boot your instance and it will change the Public IP. But you may prefer to use elastic IP if its allowed within the free tier. Share Imp...
About snapshot feature in Azure App service
In Microsoft documentation, Microsoft dosen't say what folder is considered by snapshot. But , she say : any data outside '/home' is not persisted , when open a ssh terminal on the web app using Kudu. So, if i have an azure web app custom docker image with premium sku , which he run a application stored under /var/www...
It looks like your question was answered in this Github thread. Adding to Ajay's answer- Snapshots contain both the contents of a web app and the web app configuration. Your app files content can be found in the D:\home\site\wwwroot folder of your app.
Tar incremental restore : Cannot rename
I created a python script to do an incremental backup strategy on seven days whith a full backup on Sunday, using the command : tar I have no probleme to generate my differents backups. However, I've got an issue during trying to restore an incremental backup with this message error : tar: Cannot rename `./path1' to `...
1 The short answer is: DO NOT use GNU's tar for incremental backups. The long answer is, - there is pretty old bug that won't allows to restore incremental archives reliably. The bug still exists and reported multiple times since 2004. References: stackexchange 01,stackexc...
Is it possible to modify android manifest xml to allow backup of application that originally could not be backed up?
may I please ask? Let's assume I have access to android manifest xml. Some applications, like banking apps have option to be backed up disabled. I would like to back them up with adb backup anyway. Can I modify android manifest xml to allow the backup? How? Thank you
1 If you want force the app to allow backups you need to edit the AndroidManifest.xml from android:allowBackup="false" to android:allowBackup="true". However, if you edit the AndroidManifest.xml the signature of the app will no longer be valid. This means that after rebui...
Where are Azure Storage Explorer configurations stored?
On MacOS, I'm trying to restore Microsoft Azure File Explorer settings/configurations from an old hard drive backup. I'd like to get all the previous account connections back without having to set them up again manually. Where is this data stored in the MacOS directory structure so I can copy it to the new hard drive?...
Not sure if that's doable as of today but this is definitely a much-requested feature: Feature request : backup file #754 Export Settings (include Quick Access) #2880 Persisting the Transfer and such Explorer settings at machine level. #4169 Feel free to comment on any/all of the above issues adding more context or ...
s3 backup strategy: versioning vs sync to another s3 bucket
I just want to know the best strategy for backup of the files stored on s3 bucket. I can think of 2 options - enabling versioning and (periodically e.g. once a day) syncing to new s3 bucket. The files are created by Athena CTAS queries every day and the file names are randomly generated. If I delete the files by accid...
You typically do not need to "backup" Amazon S3 objects because they are replicated in multiple data centers. However, as yu point out you might want a method to handle "accidental deletion". One option is to prevent deletion by using Object Locking or a Bucket Policy. If people aren't permitted to delete objects, the...
Are Firebase Auth User accounts lost if using a single GCP Region as default location in case of a disaster in that region?
With a Firebase project using GCP resources in a single Region (not dual/multi region), are Firebase Auth Users also only stored somehow in that region and would be lost in case of a disaster in that region? I am backing up Firestore data (that contains additional information for accounts) as well as Storage data to S...
Unlike the data you store in Firestore or Storage, the user profiles in Authentication are fully managed by Firebase. I believe they're quite well globally replicated, but the point is that they're not your/my concern. If you do want to create your own back up of the user data, you can do so through the auth:export co...
Issue with NameError
So I am fairly new with coding in Python and in general and I am trying to write a program that will backup files in a giving folder. However, I continue to get a "NameError: name 'src' is not defined. I see some other questions similar about this error but none have yet to make me understand what I am doing wrong or ...
1 why are you prompting the user for src and dest path though you already pass them as command args? The issue probably came from the fact you didn't provide the src arg while running the script. Things like python script.py srcpath dstpath Share Improve this ans...
Why can't I restore a SQL Backup on a newer Version? Error 3169
I am trying to restore a backup from an Azure Managed Instance to an SQL Server running on an Azure VM. When running the Backup Script, I get this error Message: Meldung 3169, Ebene 16, Status 1, Zeile 2 The database was backed up on a server running version 15.00.2000. That version is incompatible with this server, w...
The output from @@VERSION from the Managed Instance is misleading. Because a Managed Instance is an evergreen deployment (it is ALWAYS the latest version) this means that it is always a newer version than any version of SQL Server you will get on a VM. You will need to consider other methods such as BACPACs or replica...
Taking Database Backups with partially data from SQL Server tables
Could someone please help to achieve is this, my requirement is as follows: I have a database and it is in Azure, we have scheduled backups (point-in-time restore options available), and now I want to restore one of the dated database backup to my local. But I don't require all the data from all the tables, I only nee...
The backups only support restore all the data during point time. We can not specify the portion of the data from every table to restore. Just for now, your request can not be achieved.
Create compressed archive with filename based on year and month of compressed files on linux system
I want to compress and archive (e. g. zip or tar.gz) a lot of files which are all stored in /folder. It should create archive files like yyyy-mm-backup.zip including all original files which were modified in that time range. Sample files: fileA.txt (modified date 2020-12-01) fileB.txt (modified date 2020-12-02) fileC....
Redirect the output of a find command into a while loop while read line; do dattim=${line%%/*}; filpath=${line#*/}; echo "zip -r $dattim-backup.zip $filpath"; # zip -r "$dattim-backup.zip" "$filpath" done <<< "$(find /path/to/directory -name "*.txt" -printf "%TY-%Tm/%h/%f\n")" Find all files with the ...
Trying to back up CentOS using the "dd" command
I'd like to back up a SSD which I'm using for CentOS. Trying to learn dd. My drive is a fairly simple GPT partition of 120GB. I run "dd" to copy the image of sda to a USB stick sdd1: [root@localhost ~]# dd if=/dev/sda conv=sync,noerror status=progress bs=64k of=/dev/sdd1 120029118464 bytes (120 GB, 112 GiB) copied, ...
if=/dev/sda Is cloning the entire disk and of=/dev/sdd1 Is writing to a partition. Which doesn't make much sense. You may want to clone the entire disk onto another disk dd if=/dev/sda conv=sync,noerror status=progress bs=64k of=/dev/sdd Or better yet clone to an compressed image dd if=/dev/sda | gzip > /sda.img.gz ...
On-Premise file backup to aws
Use case: I have one directory on-premise, I want to make a backup for it let's say at every midnight. And want to restore it if something goes wrong. Doesn't seem a complicated task,but reading through the AWS documentation even this can be cumbersome and costly.Setting up Storage gateway locally seems unnecessarily...
1 The easiest way to backup a directory to Amazon S3 would be: Install the AWS Command-Line Interface (CLI) Provide credentials via the aws configure command When required run the aws s3 sync command For example aws s3 sync folder1 s3://bucketname/folder1/ This will co...
rsync command works but not as a cronjob
This command works if I input in shell in order to backup locally a database file from a remote server with the date appended to each new backup file so they are all different: rsync -avz -Iu --backup [email protected]:/home/database.sqlite /home/ProdBackups/dbBackup_(date +\%Y\%m\%d\%H\%M\%S).sqlite But when I try r...
1 To get the date to be replaced with formatted date, you need to force execution with '$' around the parenthesis. * * * * * rsync -avz -Iu --backup [email protected]:/home/database.sqlite /home/ProdBackups/dbBackup_$(date +\%Y\%m\%d\%H\%M\%S).sqlite As an alternative, con...
Perform backup and restoration using percona xtrabackup on mysql 8.0.22
I am a beginner in backups and restorations. I want to perform a backup and restoration using Percona XtraBackup 8.0.14 on MySQL 8.0.22. According to https://www.percona.com/blog/2020/10/23/mysql-new-releases-and-percona-xtrabackup-incompatibilities/, it seems that MySQL 8.0.22 is not compatible with percona 8.0.14. A...
1 Percona XtraBackup 8.0.22-15.0 has been release which supports MySQL 8.0.22. Please find below links for more details https://www.percona.com/doc/percona-xtrabackup/LATEST/release-notes/8.0/8.0.22-15.0.html https://jira.percona.com/browse/PXB-2314 Share Improve ...
What happens to Marklogic database backup if one cluster node is lost?
According to ML 9 doco, a database is backed up onto all nodes in the cluster, but the backup process appears to backup the forests that are only local to each node. So for a database with 6 forests across 3 nodes, I may have 2 forests backup files on each node. If I have a 3 node cluster and lose one node ( so that...
The answer is it depends. Typically backups are made to some sort of network storage, so loosing a node doesn't affect the backups. If for some reason the backups are stored locally to the system, then it would depend on if you have HA enabled, and whether you are backing up thee replica forests along with the primar...
MySQL: can i cron backup folder instead of using mysqldump so as not to expose credentials?
i'd like to run a cronjob to backup a database, but i'd rather not expose the credentials. can i just backup the relevant folder like this scp /var/lib/mysql/myDatabase [email protected]:/path/to/backup/myDatabase instead of using mysqldump myDatabase > myDatabase.sql -uUser -pPassword; <--- makes me twitch is the...
Short answer: No. Long answer: mysqldump creates a consistent snapshot if applied correctly (--single-transaction). Copying files grabs an inconsistent, possibly corrupted snapshot that could be full of problems. For other options consider innobackupex. Remember, you can make a user with read-only access for backup pu...
How to take backup of Azure fileshares
I have created Azure file share and used it as a persistent storage for my application deployed in openshift. The data is important and I need to take backups of my azure files also periodically. How to take backup of Azure file shares inside storage account?
1 One approach is to utilize a Recovery Services vault. Thorough guidance is available at https://learn.microsoft.com/en-us/azure/backup/backup-afs Share Improve this answer Follow answered Nov...
key Vault access policies for encrypted vm azure backup - Terraform
I am deploying azure infra using terraform. I have an encrypted vm - and it backup keeps failing - with below reason: Azure Backup Service does not have sufficient permissions to Key Vault for Backup of Encrypted Virtual Machines I checked the Docs and found i have to create access policy for keyvault - azure backup. ...
As the screenshot that you provided shows that when you select Azure Backup, it selects the principal Backup Management Service and grants it the necessary permissions. In Terraform, it should be like this: resource "azurerm_key_vault_access_policy" "example" { key_vault_id = azurerm_key_vault.example.id tenant_i...
How to create App Service Backup Alerts for Failed Backups? [closed]
Closed. This question is not about programming or software development. 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 use...
There is no direct option to select backup failed alerts in Alerts blade as of now however as an alternative you can follow below options to achieve Backup Alerts. To create the rule, navigate to App Service --> Monitoring --> Alerts. Click on New alert rule Resource will be automatically selected and can edit too. N...
MarkLogic - API Request & Restore Database
We are using MarkLogic 9 version. We have developed API above MarkLogic We are doing daily full backup for last 7 days. Now we are upgrading our MarkLogic server to 10 & as a part of disaster recovery if due to some reason upgrade fails and we need to restore backup from yesterday I want to understand How restore pro...
The Restore will restore the entire backup to a temporary directory. Once all of the stands/forests have been copied to disk it will swap the current forests/stands with the restored ones. API requests will still be serviced by the active stands, with the existing data. It will not use the restored data until after t...
How to take druid segment data backup?
I am new to druid. In our application we use druid for timeseries data and this can go pretty large(10-20TBs). Druid provide you facility of deep storage. But if this deep storage crashes/or not reachable then it will result in data loss and which in turn affect the analytics the application is running. I am thinking ...
1 In general it's important to take regular snapshots of the metadata storage as this is the "index" of what's in the Deep Storage. Maybe one snapshot per day, and store them for however long you like. It's good to store them for at least a couple of weeks, in case you nee...
NullPointerException on loading data into Grakn
I have created a backup of Grakn with the exporter tool like this: ./grakn server export 'old_test' backup.grakn $x isa export, has status "completed", has progress (100.0%), has count (105 / 105); I then wanted to import this into a new keyspace with ./grakn server import 'new_test' backup.grakn But I go...
1 You need to import your schema into the new keyspace first, this error occurs because the server cannot find a schema label in your dataset. The steps for migrating schema are described in the docs: https://dev.grakn.ai/docs/management/migration-and-backup Share ...
backup multiple tables on one single sh script
I have a script which backups multiple tables in a single line as follow: /usr/local/pgsql/bin/pg_dump --quote-all-identifiers --username=postgres -p 5432 -t schema.table1 -t schema.table2 -t schema.table3 -t schema.table4 -h localhost mydb | gzip -1 > file.dmp.gz I've created a new sh script to be able to re-utiliz...
If you are willing to make DESTINATION the first expected argument, then something like this should work for you: DESTINATION=$1 TABLES=`echo ${@:2}|sed "s/\s/ -t /g"` /usr/local/pgsql/bin/pg_dump --quote-all-identifiers --username=postgres -p 5432 -t $TABLES -h localhost mydb | gzip -1 > $DESTINATION
How to download WordPress files from Google Cloud Platform
I have a client's website build on WordPress and hosted on Google cloud host. Now I want to backup it before developing the new website for him. Is there any way to download all files as a zip or any other option?
1 You have several ways. Two of them already suggested by @John Hanley; If you have access to the GCP console you can create a disk snapshot of a VM running Wordpress (most convinient and easy - also reliable). If you just have SSH access to the VM - just manually backup...
Creating a backup copy of Active Sheet using Excel vba
I need to create a backup copy of active Sheet - into a new workbook. So that the new workbook would be created with only Active Sheet in it (no macro, no vba) I need it to be happening on "After Opening" my Worksheet event Doing the following: Private Sub Workbook_Open() ActiveWorkbook.SaveCopyAs "E:\...
Try the next code, please: Private Sub Workbook_Open() Dim wb As Workbook, shC As Worksheet Dim sh As Worksheet, i As Long, strBackup As String, arr As Variant Set shC = ThisWorkbook.ActiveSheet 'this should be clear... strBackup = Range(ThisWorkbook.Names("BackupPath")).Value 'extract the string from the n...
Error 70 Permission Denied when attempting to Backup Database Backend
I am trying to automatically back up the backend of my split database which is located on a network drive. Unfortunately, I keep getting the error displayed in the title. Code: Function BackUpBE() On Error GoTo Err_backup Dim strNewBEname As String Dim strOldBEname As String Dim strDateStamp As String strOldBEname...
As @Andre suggested I managed to use FileSystemObject to copy the backend while the frontend is in use. Function BackUpBE() On Error GoTo Err_backup Dim fso As Object Set fso = VBA.CreateObject("Scripting.FileSystemObject") Dim strNewBEname As String Dim strOldBEname As String Dim strDateStamp As String strOldBEna...
Add the Hour of backup SQL Server command in Batchfile
I want to make every hour a backup of 1 database in SQL Server via a Windows Batch file. The hour should be processed in the filename. sqlcmd -S SRV01 -E -Q "BACKUP DATABASE [databasename] TO DISK = N'C:\Backup\databasename\hourly_%HOUR%.BAK'" Howto solve this?
To get the hour, you can use the environment variable %time% that is perfect for this task. You will need to extract the hour from %time% because it has format hh:mm:ss,cs for /f "tokens=1 delims=:" %%T in ("%time%") do set "hour=%%T" So the final command (assuming you are running both commands in the same batch file...
How to do a backup with .bat with windows? [closed]
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions see...
Read carefully please! The script has a safeguard echo in the rmdir line. Do not remove this until you are 100% sure the script does what you want. @echo off for /f "tokens=2 delims=.=" %%i in ('wmic os get localdatetime /value') do set result=%%i set "mydate=%result:~0,8%" robocopy "d:\dat" "f:\backup\%mydate%" /MIR ...
Azure file share for SQL Server backups
I have a standalone MS SQL Server and azure File share mounted on the same windows server, however when I try to configure backup maintenance plan I do not see the Azure file share which is mapped to Z. Chanting the permissions of SQL Server and SQL Server agent user context to the local user does not help. How can I ...
1 The best way to get backup for SQL VMs (among other things) is to register your VM hosted VM with the SQL Server VM resource provider. Once you do, you can manage backups from the Azure portal and configure storage accounts directly using blobs instead of mounted file ...
Synchronize File Server and Database Backups?
I'm currently building a backend application that will need to store and serve a lot of images and videos (> 1 Mio. each). The files will obviously get uploaded and sometimes deleted but not updated. I did some reading on the issue of whether to store the files in my database or in the file system and decided to use ...
1 The simple thing you can do is to set an 'expired' date instead of 'obsoletFlag' and consider a backup maximum period less than the expiration period. Adapt your delete job to process only 'expired' items. You will have to store for a longer period but any not expired bac...
recover deleted script when used 'git checkout filename'
I was having trouble pushing my file to a repo, so I read to use: 'git checkout filename' and now my script is gone. Is there a backup section in pycharm or github where I can recover this script? How else could I recover this file, I've read some other posts but don't fully understand and don't want to put any more...
Using git, might not possible. But using Pycharm, Luckily it is possible. You can use its builtin local history feature to bring it back from dead. Just right click your project name from project section (left panel) > Local History > Show History. Locate your file from that popup window and just click the revert butt...
Hi, Is it possible to backup my app data?
Objective: backing up my Notekeeping app data such that I can sync it back if I lost my data. May I know how am I able to do it? I have tried searching for answers online, but unfortunately I am unable to find a clear approach to it. I have seen some apps that uses googldrive, or zip file approach. May I know what is ...
1 Yes , its possible to upload your users data to their respective google drive account and retrive back when again user installed your app. You can follow this link to know more https://www.c-sharpcorner.com/article/google-drive-integration-in-flutter-upload-download-list-...
Backup of AWS ec2 root drive
I have an ec2 instance with one volume as root drive. I've set a AWS backup of the volume, is this the best procedure or should I ec2 backup not the volume. I can't work out if restoring the volume and attaching it to an instance will bring it back, or if using ec2 backup and restoring will also bring back the informa...
I can't work out if restoring the volume and attaching it to an instance will bring it back, or if using ec2 backup and restoring will also bring back the information on the volume. Both will work. The EC2 backup will be a little easier to recover because you won't have to manually connect the restored volume to...
How to switch Rails database without having to do migrations?
I have a Rails app which uses db my_database_development in my config/database.yml: development: <<: *default database: my_database_development Works correctly when I run rails server. Now I want to use another db, so I change my config/database.yml: development: <<: *default database: my_prev_database Now w...
1 When you switch database, you will have new schema_migrations table. In new database, schema_migrations is empty so Rails will think you have pending_migration. I think you need to re-migrate in your new database. You can use some feature like database dump to migrate dat...
How to restore PostgreSQL database from dump file
I am trying to restore the backup file to PostgreSQL DB by; pg_restore -d db_name -U user_name -C backup.dmp However, I get this error when I executed this command. pg_restore: [archiver] unsupported version (1.14) in file header The version of the PostgreSQL DB I'm using is 11.6 (Ubuntu 11.6-1.pgdg18.04+1) I assu...
It sounds like you are trying to work with a dump file that was created on a Mac, and you are trying to restore it on another machine (or the other way around?). brew is a Mac package manager. The equivalent for Ubuntu is apt. To install Postgres on Ubuntu, please follow the steps on the Ubuntu page of the PostgreS...
Backup of Datastore/Firestore without gcloud import/export
Hello Google Cloud Platform users! I am interested in a solution for a regular (let's say daily) backup of Datastore/Firestore databases. Typical use: for some reason (bad "manual" operation, bug, whatever), a series of entities have been wrongly modified or destroyed, or the database is corrupted; in that case, the d...
1 You can have a look on this project: https://github.com/Zenika/alpine-firestore-backup I'm a contributor on it, don't hesitate if you have question or if you want new features. Share Improve this answer Follow ...
rsync Include/Exclude specific file type
I have a problem. I am trying to use rsync to copy all the .php files from my /var/www to another server, except for website1 and website2, so I created this command: rsync -avz -e 'ssh -p 28' --relative --exclude={'website1.com','website2.com'} --include='*.php' --delete-during --backup --backup-dir=/mnt/usb/shares/m...
--include really means "don't exclude"; everything is implicitly included to begin with, so --include is used to override a previous --exclude. You want something like options=( -avz -e 'ssh -p -28' --relative --exclude '*' # Don't transfer *anything* ... --include '*.php' # ... except ...
SQL Server set number of Backup to retain
I have already defined a SQL Server Agent job, in order to backup 'mydb' in a specific disk location. BACKUP DATABASE [MYDB] TO DISK = N'C:\Dummy.bak' WITH RETAINDAYS = 3; I planned this job to be performed every day of the week, but not Sunday. The question is: can I set to have n different backup instances in my b...
First, to get a clear understanding about parameter "RETAINDAYS" please go through this following blog link. But if I get your issue correctly, your concern is to avoid the Job to execute on Sunday and I think this is configurable in the job scheduling setup. You can select or deselect any day from the week (Under Fre...
How to backup laptop SSD with UEFI [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...
You can use Clonezilla to make a bootable copy of the whole existing SSD with all of its partitions including Windows. The boot menu comes from Grub2 and it gets created from templates in /etc/grub.d and settings from /etc/default/grub. So, if your Clonezilla ISO file lives at /srv/iso/clonezilla-live-disco-amd64.iso ...
Write Kafka data to binary file using FileStreamSink connector
I'm trying to backup Kafka data using FileStreamSink connector. I know there are better options but my company already have file backup infrastructure (based on NetApp), so I'd like to dump Kafka data to a binary file and backup the file. As the data stored in Kafka is encrypted, so we don't have a schema to use or tr...
See my answer at Kafka connect - string cannot be casted to struct But, essentially, FileStreamSink can only write string values of records, and is not meant for production use, but rather as an example for writing your own sink connectors, which would then require you to implement a source connector to read that bina...
how to backup a specific table oracle?
I want to have a backup of a specific table because a I want to change one of it's field, if changes don't work, apply the backup and restore the initial state. I'm using plsql developer
1 The simplest option is CTAS (Create Table As Select), i.e. create table my_table_backup as select * From my_table; Or, use Data Pump Export / Import utilities. Or, as it is just a single table, the original EXP / IMP utilities might also work. Or, spool data into a CSV f...
How to take backup of partial data in Laravel?
I am working on a project in Laravel where I have to take backup of the database (mySQL). I have learned to take backup of entire database or selected tables. But the challenge for me is to take backup of only some rows. Here is the scenario: There are 4 tables users posts tags post_tag Their relations user hasMan...
If this is an server admin only operation, you may use iseed to generate seeding files from your existing data in database. The restoration would be easy through Laravel's database seeding. If this is a user operation, then you would probably need to program your own import / export feature. You may use a combination ...
How to sync audio metadata (e.g. ID3) between file copies?
I have thousands of audio files in mp3, m4a, ape, flac formats on my PC. I made a copy (backup) of them to an external disk drive. If I changed the metadata (e.g. ID3) of some audio files on my PC, what is the best way to sync the changed metadata to the external disk drive? File syncing program may be a choice, but c...
1 Where metadata is stored differs drastically between file formats (ID3/MP3 and APE: start or end of file; MP4 and FLAC/Vorbis and RIFF: anywhere), especially if you modify it (instead of providing it right away when creating the file) - just try it yourself to see how fil...
How to delete older files but keep recent ones during backup?
I have a remote server that copies 30-some backup files to a local server every day and I want to remove the old backups if and only if a newer backup successfully copied. With different codes I tried, I managed to erase older files, but I got the problem that if it found one new backup, it deleted ALL older ones. I...
Unless you add the -name test before the filename find is going to consider "$i" to be the name of a directory to search in. So your find command should be: find -name "$i" -type f -mmin -1440 which will search in the current directory. Or find /path/to/dir -name "$i" -type f -mmin -1440 which will search in a direc...
How do i restart PostgreSQL service after putting back the original Data folder?
I'm writing some batch scripts for doing incremental backups of a PostgreSQL cluster on a Windows Server. I copied the Data folder to a different folder, ran my backup scripts, stopped the service, deleted the Data folder, and tried recovering the database from the WAL files and such. This didn't work, because i cop...
Found out that i had to redo the folder permissions. This is done the following way: 5. Change permissions for the new data directory For the new data-dictionary folder: Right-click on it and click Properties. Under the Security Tab click “Edit...” and then “Add...”. Type “Network Service” and then click “Check Na...
PowerShell script to stop service and backup a folder in remote path
How to Stop a service Backup a folder/contents in a remote path as per sys date Remove the contents of the original folder Finally to start the service Get-Service SERVICENAME Stop-Service SERVICENAME -Force –PassThru Start-Sleep -s 20 Copy-Item -Path \\remote path\folderderA -Destination \\Remoate path\folderA(Ge...
This should do the trick, pretty sure the issues you might have had were around the (Get-Date) in the middle of a string and possibly the fact directories can't contain special chars like / or : which are in the date. Also as other people have said, do this as an administrator. Get-Service SERVICENAME | Stop-Service -...
Kubernetes disaster recovery - Reinstall the master node and import etcd backup
I'm going to backup the master node using this script: DATA=$(date +"%m-%d-%y-%H-%M") ETCDCTL_API=3 etcdctl --endpoints https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/healthcheck-client.crt --key /etc/kubernetes/pki/etcd/healthcheck-client.key snapshot save /opt/backup/...
1 Velero (formerly Heptio Ark) gives you tools to back up and restore your Kubernetes cluster resources and persistent volumes. Velero lets you: Take backups of your cluster and restore in case of loss. Copy cluster resources to other clusters. Replicate your production en...
How to take backup of images in container registry
I need to take back up of images which are store in azure container registry. The container registry is growing large with version of images. And i am planning to automate clean up process to archive images which are older or unused images. we can do save images using docker save command in the cli docker save -o <pat...
1 If you choose to take a backup of your images to another ACR, then you can use import command - https://learn.microsoft.com/en-us/azure/container-registry/container-registry-import-images This even works if you want to copy images from any other registry to ACR. ...
postgres backup with WAL
i am in no way a db admin, so please don't shoot me if i'm doing it completly wrong ... I have to add some archiving to a productive postgres database (newest version in docker container) and trying to build some scripts to use with WAL. The idea is to have a weekly script, that does a full backup to a new directory a...
1 It's not terribly difficult to put together your own archiving scripts, but there are a few things you need to keep track of, because when you need your backups you really need them. There are some packaged backup systems for PostgreSQL. You may find these two a good plac...
Arduino OTA Firmware Backup ESP32
It is widely known that you can update firmware over-the-air using <Update.h> functionality: receive blob size over the network, call Update.begin(blob_size), consecutively call Update.write() until its done, then call Update.end(), and restart the board. But is there a way to do a backup of current firmware binary us...
The short answer is "no", there's no support for dumping the firmware over WiFi. I've not looked at how WiFi Update is implemented so I'm not saying it can't be done at all - just that you're going to have to implement it yourself. Just like Update, if the sketch doesn't already support it, it is likely not possible ...
How can I edit elasticsearch.yml on kubernetes pods, with a statefulset, or something similar?
I have to edit elasticsearch.yml in order to create a backup (setting the path.repo like this is necessary): path.repo: /mnt/backup But I have elasticsearch running on Kubernetes, and I would like to set the path.repo from a statefulset or something similar to all pods at the same time. Can anyone tell me how to do th...
I just realized, that you don't even have to edit elasticsearch.yml to set the path.repo setting, you can add it as an enviromental variable in your statefulset like this: env: - name: path.repo value: "/mnt/backup"
Script modification to backup only 1 database
so I have this problem, with this script below it goes for each database and creates a backup for that database. this line for i in $databases; do but how could I modify this script to make back up only for 1 database named "test_database"? #!/bin/bash # Location of the backup logfile. logfile="/home/erp/backups/l...
Just slightly alter the databases variable: touch $logfile timeslot=`date +%d%m%y%H%M%S` #databases=`sudo su - postgres -c "psql template1 -c '\l'|tail -n+4|cut -d'|' -f 1|sed -e '/^ *$/d'|sed -e '$ d'"` databases="test_database" for i in $databases; do if [ "$i" != "template0" ] && [ "$i" != "template1" ]...
Create a backup Copy of a file every 5 minutes using PowerShell
There is a game that uses one save file. That save file is written to every couple of seconds. I want a skript to create a backup copy of that save file every 5 minutes. The output should look like this: c:\users\...\10000.sl2 <-- Original C:\users\...\backup\10000-15.02.2019_18-34.sl2 C:\users\...\backup\10000-15.02....
If this game is writing one file and only one file. Meaning replacing it every few seconds, then looking at that time stamp is meaningless, as it would never hit a different time span. Just set a scheduled to copy the file every 5 mins. It does not matter If you use PowerShell or Batch file to do it. When you copy, of...
Difference between cbmanager backup and cbbackup command
While taking my couchbase backup I found two way in couchbase 1) cbbackup 2) cbmanager utility. What is the deference between both. I have tried both command and working fine but cbbackup is taking more time than cbmanager command. Please help in this case. Thanks
1 In short, use CBMANAGER whenever you can. CBMANAGER - "Designed for the Enterprise Edition, it replaces the cbbackup and cbrestore tools as the primary and recommended means of backup and restore for Enterprise customers from version 4.5 and above" https://docs.couchbase....
error while installing heptio ark (velero) on Azure AKS
I am trying to install heptio velero (earlier known as Ark) for one of my k8s clusters. I took the following steps A]install prereq. original yaml file here B]install secrets kubectl create secret generic cloud-credentials --namespace velero --from-literal AZURE_SUBSCRIPTION_ID="" --from-literal AZURE_TENANT_ID="" -...
I'm pretty sure the error is due to you passing integer, not string to the apiTimeout, try passing a string: apiVersion: velero.io/v1 kind: VolumeSnapshotLocation metadata: name: azure-default namespace: velero spec: provider: azure config: apiTimeout: "30" Api spec and your error suggest its looking for ...
Is there a method using Powershell to remove a "Backup Item" from within a vault in Azure?
I'm currently running into a bit of a problem with Azure. My organization has several Recovery Service Vaults, one of which contians 6 backup items, within these items there are varying numbers of backups. One that I need to remove contains backups for SQL databases (not VM's, SQL DB backups). The only method throu...
1 For SQL in Azure VM you can use the following. $vault = Get-AzureRmRecoveryServicesVault -ResourceGroupName "ressource group name" -Name "vault name" Set-AzureRmRecoveryServicesVaultContext -Vault $vault $containers = Get-AzureRmRecoveryServicesBackupContainer -Containe...
How can I recover a file in shell?
I had a file named "ex1.f95" in my shell, and wanted to change all the "y_parameter" for "y". Therefore, I used: sed "s/y_parameter/y/g" > ex1.f95 When I opened the file, everything was deleted! There was nothing written. Is there a way I can recover everything I had inside?
1 The correct way to substitute with sed is sed 's/pattern_1/pattern_2/g' file_name. If you want the changes to be saved you have to use sed -i, which is better than redirecting the standard output. Here, since you don't give any input to sed, it outputs nothing to the stan...
How to get Postgresql backup by command in Redhat6.9?
I'm using postgresql9.2 and OS Redhat6.9; While getting backup from postgresql database backup from command line found a error. I'm using two command like [root@clipntouch ~]# pg_dump -h localhost -U adempiere -W -F t live_3001 > database_dump_file.tar or [root@clipntouch ~]# pg_dump -U adempiere live_3001 | gzip > ...
The errors are very clear and verbose, Error 1 : After you hit enter, you had to provide the password for the DB User, the password you typed was incorrect. Error 2 : You didn't specify the parameter [-W] so it didn't ask for any password. This would work if the postgres server configuration was set to TRUST for local...
How to back up using snapshots
I chose a snapshot as a way to backup the VM(google compute engine). I know that snapshots are incremental and automatically compressed. So I will take a snapshot every day at the appointed time. And I want to delete the snapshots that are older than 60 days. Question Will 60-day snapshots (full snapshots with all d...
1 Question Will 60-day snapshots (full snapshots with all data) be combined with 59-day snapshots (incremental snapshots)? Yes. The consistency of all snapshots will be maintained when you delete any snapshot including the oldest one. Technically, nothing is combined...
Compare two folders' contents instead of two files contents' through batch file
I'm writing backup batch file for a particular folder that is located in a shared network folder, to my personal Windows machine. I want to keep track of changes made on this network folder, so I keep a lot of backup folders which have a datestamp+timestamp name like 20181224145231 which is the backup folder created ...
According to your requirements, specified in comments, you can try: @echo off rem Set variables for size count: set total_size_backup=0 set total_size_origin=0 rem Find the most recent BACKUP folder: for /F "delims=" %%A IN ('dir /b /AD /OD') do set "folder_to_search=%%~fA" rem Find the size of all files inside the...
Can I move my Downloads & Applications folder into my Dropbox Folder
Please let me know if this question is better served elsewhere. To the extent that it is technical and potentially helpful to others, I'm hoping this post is okay (even though it is not code-related). I am having my Macbook Pro's battery replaced later today and want to make sure I don't lose too much in the case wher...
Yes you can drag and drop those folders (Application, Documents, Music...) into the dropbox folder as a backup. However, I would still recommend you select all the folders you want to copy first (Application, Documents, Music...) with maintaining the cmd key pressed while clicking. Then press alt + cmd + i and you wi...
Backup SQL Server automatically
I need to make backup copies of my database and store them on another server I created this stored procedure for that task: USE [master] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[sp_BackUpRecursosHumanos] @backupLocation NVARCHAR(200), @databaseName SYSNAME = NULL AS D...
1 Also look into dbatools.io (PowerShell tool) to do it easily Easier SQL Server Restores using DBATools - Stuart Moore https://dbatools.io/commands/#Backup https://dbatools.io/dr/ # What if you just want to script out your restore? Invoke Backup-DbaDatabase or your Mainten...
How to output base64 from a directory zipping
I'm on a server that hasn't enough disk space. I'd like to backup all the files by zipping a directory and directly output it in base64 only in bash. I tried to zip this directory, but my server doesn't have enough disk space. Is there a way to create a zip (or a tar) archive and output the base64 in live ?
1 Okay I've found my answer with this command: zip -r - directory_to_archive/ | base64 Source: Zip file and print to stdout Share Improve this answer Follow answered Dec 9, 2018 at 20:33 W...
command failed: Failed to run a backup using the available strategies. neo4j-admin backup command
neo4j-admin backup --from=IP:PortNum --backup-dir=/home/ubuntu/neo4jdevdump --name=neodbdump --fallback-to-full=true --check-consistency=true --pagecache=4G I am running above command to take backup of neo4j DB but facing error command failed: Failed to run a backup using the available strategies. I am using neo4j-ad...
solved the issue. I gave IP as 127.0.0.1:6362-6372 in --from tag, which is given in official document of Neo4j.
Code to delete older backups, ordered by date
I'm very new in bash script and need to write this code. The purpose of this code is to delete older backups depending on how old they are. The folders name is the date they were made. I think I commented everything, so the idea should be easy to get. #!/bin/sh #delte backups automatically cd backup/backup_collectio...
1 What I'm using is something like that MAXKEEP=30 ZIPPER_EXT="gz" find $LOG_DIR -type f -name "*.$ZIPPER_EXT" -mtime +$MAXKEEP -exec rm -rf {} \; LOG_DIR is self-explaining, and I do compress (in other part of the script) my files after a certain amount of time so I'm l...
How to recover a gitlab repository from a git bundle?
By accident, I forcefully pushed from my local repository to the GitLab repository having mirroring active which then deleted all the hidden and GitLab related refs (for the merge request 'refs/merge-request') in the remote. I told my coworkers to stop interacting with the remote repository and asked OPs if I could ge...
I solved it on my own like this. Create a temporary directory and cd there cd $(mktemp -d) Get the bundle from your OPs (full snapshot) of the repository there mv /tmp/yourrepo.bundle . Clone the broken repository from GitLab to BROKEN git clone --mirror URL_to_yourrepo BROKEN.git cd in BROKEN and run git bundle ve...
Backup STM32 firmware using command line tools
I have a console STM32 ST-LINK utility. It is able to dump firmware to bin file. But the problem is in parameters. GUI version shows address and size in the upper "Memory display" groupbox. But how do I know the memory size parameter without GUI ST-LINK utility? Here is a parameter list for console version: -Dump<Addr...
1 Because you know your micro model you know the FLASH memory size and layout. ST-LINK utility does not provide any method of the chip identification You can work it around by resetting the target first and saving the output to the file: ST-LINK_CLI.exe -Rst STM32 ST-LINK...
Mysql retrieve data from back up sql
We back up our mysql database every day around 2.00am. yesterday, we did an accidental update to a column and that's affected the entire database instead of just one record. Question : Is it possible to get a column value from backup and use that to update the live database ?
1 One way would be to restore the backup to a separate database, query the column in question including the record's primary key. Then transform the result of that's query into an update statement that you can execute on the live database. I would advise to try this on a ...
Jira backup files being automatically created every 3 hours
On my Jira server v7.5.2 (CentOS 7), in /data/atlassian/jira/export, there is a bunch of zipfiles created every 3 hours, each around 200 Mb in size: ... 2018-Aug-14-0000.zip 2018-Aug-14-0300.zip 2018-Aug-14-0600.zip 2018-Aug-14-0900.zip 2018-Aug-14-1200.zip 2018-Aug-14-1500.zip ... Apparently they're automated backup...
Look for Admin, System, Services. There is a Backup Service running there. You can edit or delete it there
Applescript run terminal commands one by one?
I want to use AppleScript to do the following: SSH to remote server, and zip a folder Download the zipped folder file to local directory I can already do both 1 and 2, however the problem is that I don't know how to use AppleScript to do them one after another. The code currently looks like this: set currentTab to d...
you don't need the terminal. Use set yourscript to "command 1;command 2;command 3" do shell script quoted form of yourscript
How to keep / save a specific Azure backup
My daily backup policy for VM's keeps backups for 30 days. Now I want to save a specific backup and keep it for a longer time. As a baseline for work. Is this possible with Azure? How can I configure this?
I am assuming you need to backup the VM on demand. One of the ways this can be done is from the Azure Portal. Navigate to the VM which needs to be backed up. Under Operations section , select Backup menu. Click Back up now. It gives an option to specify a date till which you want(a custom retention period) to...
How to Count Veeam Restore Points in PowerShell
I have written a little script to get the creation time of each restore point in the last x days: $VMs = $ImportCSV # Names of Virtual Machines $DateToCompare = 10 foreach ($vm in $VMs) { $allRestorePoints = Get-VBRRestorePoint -Name $vm.Name | where {$_.CreationTime -gt $DateToCompare} |...
With the code you posted you will have only the restore points of the last VM in $VMs in the variable $allRestorePoints. To get the restore point count for all VMs enumerate all restore points for all VMs and group by VM name: $restorePoints = $VMs | ForEach-Object { Get-VBRRestorePoint -Name $_.Name | Whe...
SQL Server Transactional log backup is larger than full backup
Transaction log backup is 450 mb but the full backup size is 10mb. BackupType: 2 HasBulkLoggedData:0 RecoveryModel:Full BackupTypeDescription :Transaction Log auto growth setting : By 512 MB, Limited to 2097152 MB correction, the size of the mdf file is 512 MB current LDF size is around 450 MB every 15 minutes. Full ...
1 In simple terms, the transaction log backup contains activity, but the full backup just contains data. For example, if you have an empty table, insert 100 rows, then delete all 100 rows, the table will still be empty. The full backup will just be the empty table, but the...
Artifactory incremental backup contains items modified months prior to our last weekly backup
We purged our backup directory after executing serious cleanup of dead docker images in our artifactory hosts registry. The weekly backup executed without a problem but the next incremental filled the disk. Looking at the docker images within the incremental backup, I see images from at least 4 months ago. Can someo...
Let me try to change the feeling of inconceivable (I like this movie too... :) ) So, Artifactory backup works as follow: Incremental - The first time that it will run will run as a full backup and will backup everything. The second time (and on) it will run it will only change the diffs between the backup folder to t...
Backup operation fails for DB2
I'm using Data Studio to connect to a DB2 database server (db2 server is running on a Linux box). The server disabled SSH password login and I can only SSH using a private key and a keyphrase. I have configured SSH connection in Data Studio to use the private key and I'm able to establish a remote SSH connection from ...
1 Works fine for me... DataStudio 4.1.3 on Winx64, remote Db2-v11 on Linux x6, and I'm using the private-key of the Db2-instance owner account inside DataStudio. However, my Linux allows both password-authentication and public-key authentication which may be significant. I...
Opendaylight Export/Import using Daexim doesnt transition to "Complete" state
We are performing online export/import using "Daexim". We are scheduling export job and checking its status using http://<controller-ip>:<restconf-port>/restconf/operations/data-export-import:status-export This URL used to return "complete" status till "Boron", but in Nitrogen we observed the state transitions from ...
This most probably indicates that the import failed, for whatever reason. have you checked the karaf.log for any ERROR related log entries in general, and specifically anything that looks like it could provide you details about what could have failed during the import? BTW you can get more direct developer support on...
Copy files and services in real time from one aws instance to another
I have an aws ec2 instance called primary. I have another ec2 instance called secondary. The primary instance IP is linked to domain, and contains all the hosted code and services. I want to be able to copy all the data (files/deamons/services etc) from primary to secondary on real time. Can this be done via some ser...
The traditional High-Availability design is: Data stored in Amazon RDS, preferably configured as Multi-AZ in case of failure Objects stored in Amazon S3 At least two Amazon EC2 instances for the application, spread across more than one Availability Zone — preferably created with Auto Scaling A Load Balancer in front ...
opendaylight dynamic backup restore
We are currently using nitrogen version of Opendaylight. Our requirement is to restore the binary backup from MDSAL without restart of ODL/Karaf server. Could you please advise some approaches to achieve this??.
By binary backup I assume you're referring to the online backup functionality. Online restore is not supported/implemented. IMO, there's not much point to even try to implement that since you'd likely end up essentially restarting all components/apps anyway to ensure the new state is properly synchronized/converged th...
Azure Backup for VPS
I have a windows VPS, not on azure. I'm looking into the Azure backup services. Ideally I'd like to backup the whole VPS to azure. Lets say MY current VPS dies, then I can just use the Azure backup to create a new VPS, with all programs, settings, files, databases everything. I'm not sure which of the azure options to...
If you want to have a full backup of your machine choosing 'files and folders' and 'system state' is your best option: Files and folders will allow you to recover individual files and folders on your machine. Imagine a user accidentally deletes a file, you can recover it from the backup. System State will allow you t...
Can I use tag to take backup of a specific point?
I need to take a backup at specific point in Github, as we are removing at least 50% of code now. What is the best way to handle this. PS: We dont have plans to use the code we are removing even in future, but just wanted to keep it as backup. Should I create a different branch or have a tag? Thanks.
A tag generally used for indicating a point where you are making a release. Suppose we have released v1.00, for keeping track our this release code we make a tag so that we can easily find out what were the codes at release v1.00. We can say Git tag track a particular commit in a branch. We use branch for separating o...
migrated my website but one link doesn't work php?
so I just migrated my website, bwa.org/main to the staging site for testing. the staging site is stagebwa.org. I used backupbuddy and importbuddyphp to migrate the site for the most part it was fine. I've had to fix some little things but I think it's because during the backup buddy process, they asked me if I wanted ...
Your <form>'s action attribute is relative, <form action="/main/find-a-writer">. http://www.bwa.org/main/find-a-writer does exists http://www.stagebwa.org/main/find-a-writer does not http://www.stagebwa.org/find-a-writer does exist If you remove the /main from the form action to make it just <form action="/find-a-wr...
Is there a way to return closed query ? SQL
I was replacing some procedure and i realized that I need the procedure i overwrote , is there a way to bring it back , undo is not an option i closed the query ... ?
I think there is no way to bring it back unless you have registered/saved your procedure in a certain variable.
Artifactory: incremental backup: Not enough free space while there is enough space left
I've performed 2 backups of 2 repositories in Artifactory. They are incremental and they check avaible diskspace. The first time the backups went well. They are 400GB and 150GB and they are saved in an NFS share. Now when I manually start a second backup (incremental) I got the 'error': Free space available for backup...
1 Possibly out of topic, but I got bitten by this calculation as well and this may be relevant to your question. Say that you define you want a retention period that translates into a maximum of n backups on a storage location. That means that your storage should be big eno...
AWS application consistent snapshots of EC2 instances
I'm currently setting up a small Lambda to take snapshots of all the important volumes of our EC2 instances. To guarantee application consistency I need to trigger actions inside the instances: One to quiesce the application before the snapshot and one to wake it up again after the snapshot is done. So far I have no c...
You can trigger a Lambda function on demand: Using AWS Lambda with Amazon API Gateway (On-Demand Over HTTPS) You can invoke AWS Lambda functions over HTTPS. You can do this by defining a custom REST API and endpoint using Amazon API Gateway, and then mapping individual methods, such as GET and PUT, to specific ...
Create an image (iso) of a linux machine from VM or Docker then restore to bare metal
What I'm imagining is something like this: I spin up a VM or container with the OS and packages that I need, lets say an ansible script runs and provisions the vagrant or docker container exactly the way I want it. After that I use some tool, I'm thinking of tools like Systemback or Clonezilla, to make an iso image of...
I just found this article that has step-by-step instructions for what I'm trying to do. So apparently it is possible using a combination of VMware and Clonezilla. https://www.howtoforge.com/converting-a-vmware-image-to-a-physical-machine Thanks for the comment-less downvotes though.
How to track postgres archive log files
In SQL Server, there is a msdb..backupset table which keep tracks of which backup it take. How to capture which archivelog is archived and what is the starting point of this backup?
1 Every online physical backup contains a text file backup_label that contains the log sequence number of the checkpoint at the start of the backup. There is also a file with a name ending in .backup created in the WAL archive that contains this information. Since 9.4 the v...
Can't open file for writing when vim recover file with swp file
I want to recover the /home/lufei/market/resources/views/user.blade.php, here is the place of swp file. > lufei@localhost:~/market$ ls resources/views/.user.blade.php.swp > resources/views/.user.blade.php.swp I use vim -r resources/views/.user.blade.php.swp to recover the file, I get this, E306: Cannot open resourc...
This may be caused by the edit session crush like the items 2 in command sudo vim market/resources/views/user.blade.php. It make the swp file make the wong original file path. Note I really not have the /root/market/resources/views/user.blade.php file even the /root/market/ path. This is the first I create the file...
hazelcast doesn't read from backup data
I use hazelcast 3.8.4 and IMap. I set in hazelcast.xml <map name="default"> <backup-count>1</backup-count> <async-backup-count>0</async-backup-count> <read-backup-data>true</read-backup-data> and I observe get/s per server in management center. I think about this situation. I put key 3, 4. And key 3 ow...
1 read-backup-data would only kick in if you try to read the value from server B itself. It does not help to have multiple servers as value sources when using clients. This would mitigate the idea of how Hazelcast distributes not only data but also optimizes request latenci...
Exploring Puppet filebuckets: Error: Could not run: File not found
I am exploring Puppet filebuckets with a manifest that contains the following excerpt: file { '/tmp/test' : backup, # ... } When I apply this manifest, Puppet reports that it backed up the old version of /tmp/test into the (local) filebucket puppet: Info: /Stage[main]/<module>/File[/tmp/test]: Filebucketed /tmp/t...
This seems to be related to a bug in Puppet 4. This workaround applies: puppet filebucket --local \ --bucket /opt/puppetlabs/puppet/cache/clientbucket \ list UPDATE Pipeing the output from this command into sort -k 2 will sort entries by date (newest first).
SharePoint 2013 Backup and Restore from database side only
Does SharePoint 2013 restore only from Database? I have a scheduled script in MSSQL Server to run all database backups daily , and my SharePoint site also require a daily differential/weekly full backup usually happen in Central Administration. I am aware that multiple backups running would break log chain in this ca...
1 Does SharePoint 2013 restore only from Database? The short answer is no. A full fidelity SharePoint farm backup is mostly databases but there is also configuration information and data that is stored outside of the databases. The Central Admin backup facility (as well a...
Using the backup gem how can I get database authentications details from rails database.yml
I'm testing out the backup gem http://backup.github.io/backup/v4/utilities/ I understand that I've to create a db_backup.rb with the configuration for example Model.new(:my_backup, 'My Backup') do database MySQL do |db| # To dump all databases, set `db.name = :all` (or leave blank) db.name = "...
1 I would do something like this: env = defined?(RAILS_ENV) ? RAILS_ENV : 'development' config = YAML.load_file(File.join('config', 'database.yml'))[env] Model.new(:my_backup, 'My Backup') do database MySQL do |db| config.each_pair do |key, value| db.public_sen...