Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
How to delete old backup jobs on Azure |
I am new to Azure and the Azure Python SDK, and I have some questions.
How do I delete old backups of a VM using Python SDK? I have looked it up on Azure CLI documentation but have not found the delete command.
I am thinking of modifying the retention policy within the policy associated with the backups. Will changing... |
0
You can use the below Powershell cmdlet to Delete the backup item as mentioned in the Microsoft documentation here:
Disable-AzRecoveryServicesBackupProtection -Item $myBkpItem -RemoveRecoveryPoints -VaultId $myVaultID -Force
You can also Delete backup data of a VM usin... |
What is Elasticsearch snapshot retention rules recommended max_count? |
The Elasticsearch documentation states:
A snapshot repository can safely scale to thousands of snapshots. However, to manage its metadata, a large repository requires more memory on the master node. Retention rules ensure a repository’s metadata doesn’t grow to a size that could destabilize the master node.
snapshot-... |
0
Tldr;
They are no rules per say, it will depends on you use case.
But you can look at the settings by default on elastic managed services.
The minimum number of snapshots must be at least 12, the maximum limit is 100.
But as you mentioned, if you have big master nodes y... |
How do you stop MySQL replication using mysql shell 8.0.23? |
I am using MySQL 8.0.23 docker container to back up an instance using util.dump_instance() from a time delayed replica instance using MySQL shell in Python mode.
How can I stop the replication before I run the instance dump?
I could find no examples in the documentation.
I would run the equivalent of the following sta... |
0
You can use mysqladmin to start/stop the replication like this:
# mysqladmin -u root -p start-slave
# mysqladmin -u root -p stop-slave
Share
Improve this answer
Follow
answered Jun 26, 2022 ... |
How to check Veeam Backup Jobs Status in ALL servers |
I have script that checks every 24 hours locally on server the status of all backup jobs along more details.
I want that script to check all my servers, lets say: "SRV1", "SRV2", "SRV3"
How can i manage that?
Here's the script:
$date = (Get-Date).AddHours(-24)
$sessions = Get-VBRComputerBackupJobSession
foreach ($PBac... |
0
Although I cannot test this myself, I think you could do that using Invoke-Command like below:
$servers = "SRV1", "SRV2", "SRV3"
# set the credentials for admin access on the servers
$cred = Get-Credential 'Please enter your admin credentials'
$result = Invoke-Comman... |
How to automatically-selectively backup critical files on edit? |
I have just accidentally deleted one week of coding source files, and even testdisk does not restore them. Even executable jars gone... I use ubuntu. I dont want that happen ever again. How to sufficiently and efficiently make automatic backups (clones) of selected critical files to a different location e.g. home?
I u... |
0
The simplest solution would be to use GitHub or Bitbucket and to regularly push the changes you made to the online repository. You will benefit more from the usage of a version control software then from a local backup. You can use either of them for free.
Share
... |
How to copy connection security firewall rules,SSL,TLS from one azure DB for mysql to another azure DB for my sql server using powershell |
I have restored Azure Database for MySQL single server using powershell script below.
Now, post restore the DB I had to copy all the firewall rules and other settings from connection security of Azure Database for MySQL single server manually.
After restore the DB I would like to automate copying the connection securi... |
Finally I could able to fix this and could able to write my solution and it’s worked.
##################### Updating Firewall rules from Soiurce DB server to Target DB server ##################
Write-Host -NoNewline "Updating Firewall rules from Soiurce DB server to Target DB server"
Get-AzMySqlFirewallRule -ResourceG... |
Two Oracle RMAN Backup between an EOB |
I need to take two backups before and after the day end process. If the EOD process starts at 10.00 p.m. The backup should contain all the data right at 10.00 p.m. before starting the EOD and the backup process should not impact the EOD process as well. Is there a way to achieve this?
Please note that I need to retrie... |
0
A "snapshot" type of backup would only be necessary if you are running in NOARCHIVELOG mode, and you'd have to shutdown the entire database to do it as a "cold" backup (you can't get a logically consistent backup without transaction logs while the database is open for rea... |
Db2 11.5.6.0 on AIX 7.1 - How to guess size of full and incremental backup images? |
Db2 11.5.6.0 on AIX 7.1
Is there any way to guess size of full and incremental backup images?
|
0
No way.
There is no ability to get count of a tablespace pages changed since the last full or incremental backup.
There is only a flag (TrackmodeState column in the db2pd -db mydb -tablesp output) available for whole tablespace.
Share
Fo... |
Oracle ARCXXXX.0001 files and how to clear them |
I would like to know what these files are and how to clear them.
They've been using up quite a bit of my disk space.
ARC file
I have tried using RMAN to try and clear but I will get this error:
RMAN
Thanks in advance!
|
If your current system is not critical - put it into NOARCHIVELOG MODE;
$ sqlplus / as sysdba
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP MOUNT;
SQL> ALTER DATABASE NOARCHIVELOG;
SQL> ALTER DATABASE OPEN;
==============================================================
But if DB is important, then:
rman> backup archivelog al... |
What is the purpose of the wget startup file option "add-hostdir"? |
The wget 1 man pages describe the option "add-hostdir" as follows:
Enable/disable host-prefixed file names. ‘-nH’ disables it.
Unfortunately, I am too ignorant to understand this.
Since "-nH" disables it, it must have something to do with spanning hosts, but it isn't described there either.
Can someone explain what i... |
0
Consider simple example
wget -r http://www.example.com
create directory www.example.com and place index.html inside it
wget -r -nH http://www.example.com
just places index.html in current working directory, that is you have one level less (top one) of catalog hierarchy ... |
Move Files to a Backup Folder every first in the month and Zip the Files |
I have never worked with powershell and I only need a program that is always run at the beginning of the month
What should the program do?
At the beginning of the month it should move all data except for the last month to another folder and zip it there to save storage space.
to my question i have (-31 days) but not e... |
Thanks guys!
the program will get executed every first of the month and i managed it like that. that worked for me!
$tage =(Get-Date).adddays(-1).day +1 # value of days from month before
$dirbackup = $dirname + "BP"
get-childitem -Path "C:\Users\kaar\Desktop\Ordneralt\... |
Frequent Copy-only full database backups running on SQL Server VM in Azure |
We got a 2019 SQL Server VM in Azure with both Azure Server backups and Azure SQL Database backups configured.
Azure SQL Database backups are configured as FULL backups on Sunday and DIFF backups the other 6 days but I noticed there are frequent (7 times a day) copy-only full backups running. These copy-only full back... |
0
To Disable SQL Server Managed Backup to Microsoft Azure for a specific database:
Connect to the Database Engine.
From the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute.
EXEC msdb.managed_backup.sp_backup... |
Backup and Restore AWS RDS Aurora cluster |
I would like to backup every single PostgreSql database of my AWS RDS Cluster (Aurora DB Engine). Are there some managed tools (like Veeam or N2WS) or best practices, how to backup and restore a single database or schema from AWS S3?
Many thanks
|
0
You can use automatic backup combined with manual backup for Aurora PostgreSql database. For automatic backup, the max retention period is 35 days, and support any point in time restore and recovery. However, if you need a backup beyond the backup retention period (35 d... |
Skip triggers while restoring MySQL dump using Linux command |
I have a large dump(~50GB) of MySQL database(Multiple databases backup). I am restoring it to a new Server which is taking a long time. I think it is taking this much time because it is huge data. the command ( gunzip < 1922-1648-329-75_all-databases.sql.20220305-0000.gz | MySQL -u test -p) also working fine and it st... |
Recreate the dump if you can, using the --skip-triggers option. You will have to recreat them afterwards.
https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_triggers
There is no option available to disable the triggers on import.
|
UpdraftPlus WordPress plugin is not working to store Backup in the Google Drive |
I used updraftplus plugin for creating and storing the backup of everything in google drive. I have already linked my Google account with the plugin.
Inside WordPress, I can see the updraftplus is working perfectly. I can see some backups already created as per my desired schedule but I can't locate these backups in m... |
0
Goto Google Drive check folder whose name is UpdraftPlus. You can see all backup files. In WordPress Dashboard go to UpdraftPlus Backup Section see all backup lists.
Share
Follow
answered Mar 9,... |
.NET - Best way to store encrypted offline data in Desktop Application |
I couldn't find proper topic so I'm creating this question.
I'm building an Desktop application that is running on data from MS SQL Database. Most of the data there is updated once a week/month, and most of the tables are read-only to end user. I figured, there is no need for the user to work directly on SQL Database ... |
0
The problem with encrypting is:
1 - you need to decrypt in order to use the data in your application, which will have a performance impact.
2 - if you can decrypt, so can someone who has obtained the data illegally so it's not really that secure.
If you did want to go dow... |
Powershell - Error message for trying to add a date to the end of a copy of a folder |
I am new to Powershell and trying to see if I can copy a folder from a Test folder then put it on a Backup folder and rename the folder to the date it was done.
$sourceFile = "C:\Test1\"
$destination = "C:\Backup"
copy-item $sourceFile -destination $destination .\server-backup-$(Get-Date -format "yyyy_MM_dd_hh_... |
You need to concatenate the destination string:
$sourceFile = "C:\Test1\"
$destination = "C:\Backup"
copy-item $sourceFile -destination ($destination + "\server-backup-" + (Get-Date).ToString("yyyy_MM_dd_hh_mm_ss")) -Recurse
I have slightly adjusted your get-date as I am not sure on the output of -format on get-date... |
retrieve sparse file from tar created without -S flag |
I created a backup for a file then compressed it and store it using tar.
At the time I didn't know it was a sparse file, So I didn't use the -S flag.
Now I am trying to retrieve the data, but I can't since when I extract I get a non sparse file.
Is their a way to retrieve that info, or is it lost for good ?
Thanks in ... |
0
Sparsity information is kind of redundant. You can determine whether some parts of a file should be sparse by checking whether those parts only contain zeros.
head -c $(( 1024 * 1024 )) /dev/urandom > foo
head -c $(( 1024 * 1024 )) /dev/zero >> foo
head -c $(( 1024 * 10... |
Deduplication solution for multiple offline database backups |
I have multiple copies of the same database with size of several terabytes. I was looking for a solution where I could upload the very first backup and then, instead of uploading the same entire backup with only few megabytes of changes, only upload the blocks that have changed. I know this process is called deduplica... |
0
There is one way to solve this problem
I was also suffering from this problem.
but I found that how to use "BATCH" file
There are mainly 2 command
X_COPY
ROBO_COPY
According to your need here, (2)robo_copy will be helpfull
robocopy will backup your specific file or fold... |
Cron in bash (linux) |
I need to add this script to cron. For example, make a backup every week. But I don't know how to pass values. The script doesn`t have any arguments, bat values read from the console. Can you help me, please?
#!/bin/bash
read -p "Write what you want or -h to know how script works: " command
if [ $command = "backup"... |
Write a driver script that provides input to the script via a here-document.
#!/bin/bash
/path/to/backup_script <<EOF
backup
ext1~ext2~ext3
EOF
Then put this driver script in crontab.
|
Mirror synchronization of local folders with google drive |
I want to synchronize some local folders from my desktop to my Google Drive account. I have to mention that I have more than 2 million files totalizing 1 To and file sizes are from 1o to 100 Go (a zip archive).
Using drive for desktop, the google application for the synchronization, takes years since each time this ap... |
0
I use Viper FTP for Mac for a similar task. There you can define what they call an "observed folder" - a folder that is watched by ViperFTP and if any modifications are detected, new / modified files are uploaded to the defined server (s). The app also supports Google Dri... |
how to make backup between two elastic cluster |
we have two 6 nodes es cluster . A cluser and b cluster,two self-manager cluster on our machine
how can i backup between A and B
A cluster is our product environment cluster , B is our backup environment cluster .
es-version is 7.6.2, cluster nodes num is 6
cluster machine is 64G ,disk is 6Tb, and the data is 5TB
tTh... |
0
You can try aws s3 backup repository, this way you can snapshot/restore indices between clusters that use same s3 repository
Share
Follow
answered Dec 30, 2021 at 10:48
Ali Can SaykalAli Ca... |
Create a tar.gz file and transfer it to network server |
I have a Raspberry pi running on my home network along with a Macintosh that acts as a backup server. I am attempting to craft a Python3 script that will run on the Pi to create a tar.gz backup of the Pi's home folder (along with all of the contents) and transfer it to the Macintosh using SSH. I have the SSH connect... |
0
I think there is something easier to transfer a file from your VM to your local machine. Also that you are using SSH
scp -i /path/your/targz/file user@ip:/path/to/local/machine
Check permission while doing that using
ls -lh
Share
Foll... |
Cron job using pre-mounted samba share, not sure if safe...? |
I'm using fstab to mount a samba share on boot
//ip/share /mnt/share cifs credentials=/home/user/.smbcredentials,uid=user 0 0
and scheduled rsync via cron job to copy the contents to a local drive once a week
0 2 * * 7 /usr/bin/rsync -av --delete /mnt/share/ /mnt/backup/ --log-file=/var/log/rsyncbackup.log
The thoug... |
0
Solved my problem by reading the manual a little bit more on rsync and ssh.
Generated ssh key on client ssh-keygen
Copied to host ssh-copy-id user@host
Modified cron job 0 2 * * 7 /usr/bin/rsync -av --delete user@ip:/mnt/driveuid/share/ /mnt/backup/ --log-file=/var/log/r... |
Restore the state my project was in 11/10/2021 into another temporary project, so I can only get the order of work items from Boards from that day |
I want to restore the state my project was in 11/10/2021 into another temporary project (not the one I am currently using), so I can only grasp the order of work items from Backlogs from Boards for that day. I did not delete the project. I just changed the Area Paths for Teams and the order of work items changed. I ju... |
0
Doing something like this is going to be quite tricky, I think that the closest you will come to doing this will be to create a new project and then try to use the open-source migration tools at https://marketplace.visualstudio.com/items?itemName=nkdagility.vsts-sync-migr... |
NEdit_How to use the Shell on NEdit to save the file - LINUX base |
I am working on the script on NEdit with LINUX environment.
But I can't reach one of the funciton of the script.
*I would like to add "save" file function at the script, but it seems not possible.
I checked the NEdit Help document, it mentions the "Make Backup Copy" function is UNIX only.
Not sure anyone has experienc... |
0
Are you using the macros or the functions?
save() just saves the current file (same as Ctrl-S)
save_as_dialog() will bring up a dialogue to save the file
You can put them in buttons from the macro menus or you can define a functions and then add that function to a macro b... |
Using DSBulk for backup/restore takes too long |
I use dsbulk for text based backup and restore of cassandra cluster. I have created a python script that backsup/restores the all the tables in cassandra cluster using dsbulk load/unload but it takes long time even for less data due to new session created for each table (approx 7s), In my case I have 70 tables, so 70*... |
0
No, there isn't a way to load/unload multiple tables in a single DSBulk execution because it doesn't make sense to do so.
In any case, using unloading data to CSV isn't recommended as a means of backing up your cluster because there are no guarantees that the data will be... |
about the commandline mode of disk2vhd |
How to write parameter t, then i can use its volume shadow function?
picture 001
Look this note, "-c" is to no use of the volume shadow copy.But,how to use?there is no words about it.I guess,don't write "-c",means to use this function?
But,no matter how to use these parameters,the following popup program window,that s... |
Contact the author of the program. His name is in the popup dialog that you show as picture002. Also please post text of what is on the pictures in the messages so people can see what you're asking without clicking links.
|
rsync params to create, delete but not UPDATE files |
Currently I'm using rysnc to create a remote backup of certain folders and subfolders and I would like to achieve a very particular behaviour. I want to add the new files, remove the ones that no longer exists but never update an existing file.
It's something related to security, we add new files to those folders and ... |
0
Ups, nevermind. Rsync it's a fantastic tool!
You can combine both --ignore-existing and --delete to achieve exactly what I'm asking for: add new files, delete no longer existing but do not update.
$mkdir folder1 folder2
$touch folder1/sample1 folder1/sample2
$rsync -a --i... |
OneNote local backup |
I am looking for an automation with Microsoft Power Automate or other tool, which automatically creates a local backup of a OneNote Notebook or of the Onedrive folder in which the OneNote notebook is inside in a certain interval.
|
0
Onenote 2016 ("old" onenote which comes with office 365 but is also available for free) has a built in backuptool which can make a local backup every X hours/days.
You only have to make sure Onenote is always open.
Share
Follow
... |
Is there a way to downgrade mysqlbackup? |
I have a client that backed up his data with MEB 4.0.0, so now I need to extract the contents of the image, but because I'm using mysql Enterprise Backup 8.0 I can't since it's not compatible.
Is there a way to downgrade my mysqlbackup? Or maybe upgrade his Image? Right now it's in .MBI so I don't see a way out of thi... |
Ok I just found out, there is NO WAY do downgrade or get the installer officialy, but there is sites like archive.org that have the old installer there.
If anyone is having trouble because of this problem I suggest to look there.
|
Create database backup at Azure portal |
I want to create DB backup, but at the azure portal, I don't see the "Manage backups" option. Also at the MsSQL management studio, when right-clicking the database and goes "task" I don't see the "Back Up" option.
So can it depend on Azure subscription type?
Thank you.
|
Microsoft Azure do not support customer-initiated database backup in Azure SQL Database. Backups occur automatically. This is why you do not see the Backup option in SSMS.
The system does it automatically as I mentioned above. The Backups page in the portal lets you configure retention for existing backups that the s... |
How to do a backup in oracle with data and without data? |
I have been asked to make a backup of type export: full or schema and default, structure and only data in oracle.
I found these example commands to backup database and schema
expdp scott/tiger@db10g schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
expdp system/password@db10g full=Y directory... |
0
It is the content parameter you're looking for. Data Pump Export is, basically, what you should study.
CONTENT=[ALL | DATA_ONLY | METADATA_ONLY]
ALL unloads both data and metadata. This is the default.
DATA_ONLY unloads only table row data; no database object definition... |
Error while creating backup of SQL Azure with Data Tier Application Wizard |
I am trying to create a backup of a SQL Azure database with Data tier application wizard of SQL management Studio but I obtain a lot of errors like the following:
One or more unsopported elements were found in the schema used as part of a data package error sql 71501....
Any hint on how to solve this error?
|
0
I found something on Microsoft techcommunity posted by Azure DB support team which may help you:
https://techcommunity.microsoft.com/t5/azure-database-support-blog/exporting-a-database-that-is-was-used-as-sql-data-sync-metadata/ba-p/369062
You can also consider Export t... |
Azure SQL Server Backup: Need to UnRegister Containers and Redisover DBs in Azure SQL Server Backup using ARM templates |
I have performed discovery operations for listing protectable items in Azure Backup: 'SQL in Azure VM'.
I am able to perform 'Disovery' using the following template
"resources": [
{
"type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers",
"apiVersion": "2016-12-0... |
0
Looking at the Register API for Protection Containers, it looks like the supported values for OperationType are: Invalid, Register and Reregister. The Unregister API fires a HTTP DELETE request that is not straightforward to simulate with an ARM template. ARM Templates ... |
Backup and Restore SQL Server Database With Compression When comprehension is not supported |
I need update backup and restore module on my app because it is consuming lot disk space.
The module run query for backup but not work in express editions of SQL Server. I need fix the module and make backup with compression in any SQL version, for not reinstall the actually SQL instances.
SQL backup query with compre... |
0
You can always make a script of your database. This will not only take lesser space but will also give you a lot of options such as different versions of SQL Server, Schema only script, schema and Data script, triggers with script.
All you have to do is
Right Click on DB... |
How to recover home folder? Cloned partition recovered other directories like /etc/ but not /home |
I have two linux partitions on my laptop (one ubuntu and one garuda). Ubuntu was giving me problems so I installed Garuda to check it out. The Garuda partition filled up so I used KDE partition manager to shrink the ubuntu partition so I could expand the Garuda.
Then, Ubuntu wouldn't mount and would not boot as it sai... |
I figured it out. I kind of followed https://unix.stackexchange.com/questions/129322/file-missing-after-fsck but
I copied the partition to an external drive using dd. Then mounted the external drive (which just worked even though I could not mount the original ubuntu partition). Then I went into the lost+found folder ... |
Browse & recover specific files from Windows 10 image backup? |
I have a Windows 10 image backup from about 6 months ago that contains some code I need to recover.
The image backup was made on my prior PC, which has since suffered a catastrophic hard drive failure and was reimaged with Windows 10.
Is it possible to browse the old image backup and find and extract the folder(s) I n... |
0
Simple, but ridiculously hard to find with Google if you don't know what to search for.
There are .vhdx files in the WindowsImageBackup folder
Find the .vhdx that represents the disk you want to mount/explore
Attach the .vhdx with diskpart or Disk Management
Assign a dri... |
About Azure Backup |
I have a weekly incremental backup with Azure Backup.
What happens to this backup if the previous backup was not completed at the start of the backup? Twice
(Will this backup start after it is interrupted and the previous backup is complete, or will it be aborted and run?)
Regards,
|
0
Is this manual backup or automatic backup? Azure vm or Azure sql db? What kind of backups? – If I cancel a backup job after it starts, is the transferred backup data deleted?
No. All data that was transferred into the vault before the backup job was canceled remains in ... |
How to store bacula (community-edition) backup on Amazon S3? |
I am using centOS-7 machine, bacula community-edition 11.0.5 and PostgreSql Database
Bacula is used to take full and incremental backup
I followed bellow document link to store the backup on an Amazon S3 bucket.
https://www.bacula.lat/community/bacula-storage-in-any-cloud-with-rclone-and-rclone-changer/?lang=en
I co... |
0
The link which you shared is for bacula-enterprise, we are using bacula-community. so any related document you prefer for bacula-community edition
Share
Follow
answered Aug 17, 2021 at 13:04
... |
How to stop a BGSAVE in redis? |
I want to stop bgsave (if exists) before copy dump.rdb file for backup.
My problem is sometimes during cp the dump.rdb file an ongoing bgsave gets completed and dump.rdb file gets updated
|
0
AFAIK, there's no way to stop it.
However, in order to solve your problem, you can use mv dump.rdb back.rdb to automatically move the dump file before copying.
Share
Follow
answered Jul 27, 2021 ... |
GraphDB export/import or SPARQL to transfer data from a repository to another |
I am using GraphDb and have a data update problem :
Data in the repository is coming from 2 sources :
Million of tripples are coming from an external source and updated by a full replace each week
Thousands of tripples are created by users and are permanent. They use the same ontomogy as the external source and are s... |
0
See comments, actually this was not a problem but misundertanding the role of graphs in a repository
Share
Follow
answered Jul 24, 2021 at 9:30
OkileleOkilele
8511 silver badge66 bronze ba... |
Backup Kubernetes PV/PVC to Local Disk w/o using CSI? |
I'm looking for to create a local backup for PV/PVC in K8s, then restore. (Not using any CSI)
Have tried VolumeSnapshot in k8s, but it creates a in-cluster backup, and what I need is a local copy, so I can archive it and move around. Also found some 3p tools like Stash/Velero/Kasten, but not sure if any of them fits m... |
0
Looks like the 3rd party tools mentioned by you should be the best fit, especially Velero because as per this post:
Velero is a backup tool not only focused on volumes backups, it also
allows you to backup all your cluster (pods, services, volumes,…) with
a sorting syste... |
Hardening authorized_keys used in rsync backup |
I'm trying to make a rootfs backup from ServerA on to ServerB.
The connection is one way and is initialized from ServerB using rsnapshot.
I have made a backup account on ServerA and enabled paswordless sudo only for rsync
What I'm trying to accomplish:
Change the authorized_keys file on ServerA, so only the rsync c... |
!! Problem Solved !!
Found out about rrsync --- /usr/share/doc/rsync/scripts/rrsync, copy it to wherever.
ServerA:authorized_keys --- command="sudo /usr/local/bin/rrsync -ro /backup"
Since I'm keeping a copy of the backups on ServerA, I might as well rsync from them instead of using rsnapshot on ServerB. (This was m... |
Backup Hyper-V VMs |
i'm looking for an alternative for Hyperoo, one of the best backup solutions for VMs backup..
I tried many softwares, like Veem, Iperius, Altaro, Acronis ecc but everyone use Microsoft checkpoints and create AVHDX files, sometimes it happens that the backup has some problems and the avhdx remains open, I find myself f... |
0
I understand that you want safety and performance for your Hyper-V VM backups. Backup and restore is a stressful experience. As you mentioned the solutions use the Hyper-V checkpoint technologies and I don't know something else.
We tested a lot backup tools and end up wit... |
Mac: zsh: command not found: -s / (failed: redirect iOS backups to external hdd) |
When I try to move my iOS backup folder (which does not yet have any backups) to my external hdd, the command line (on Mac) tells me that the command -s is not found.
This was the directory which I've tried to link the iTunes backups to:
user123@user123s-MacBook-Pro ~ % -s /Volumes/Personal/user123/iOSBackup/Old_Backu... |
0
Well, the first problem is that you’re trying to execute -s rather than ln -s.
What is the goal of your ln operation? To symlink the folder called Old_Backup inside the MobileSync directory? That won’t work if your intention is that additional backups go to Old_Backup. ... |
OSX: migrating Postgres db from one Mac to another |
my Mac unfortunately crashed. I have a Time Machine backup.
Using the Migration Assistant on a new Mac allowed me to get all my documents back, but unfortunately Postgres is not able to start.
So I was trying to manually move my Postgres db from the backup to the freshly installed OSX.
Here are the steps I followed:
... |
0
A simple file system backup that just copies the files without getting PostgreSQL into backup mode first (see the documentation) is not a valid backup that you can expect to be able to restore from.
If you get your database to start somehow (e.g, by using pg_resetwal, whi... |
How to use a recent Oracle backup file (from yesterday) and only online redo logs to recover the database in another location (disaster recovery)? |
I would like to plan and test my database recovery in another site (another instance on another server in disaster recovery site).
I take a monthly RMAN level 0 image copy every month and daily incremental level 1 backups.
The database is running in noarchivelog mode. The online redo logs are multiplexed to a disk in ... |
0
You are working with a dangerous setup since you seem to be betting on redo log files that are never filled up between your backups. When your data has no value, go ahead, otherwise switch to archive log mode.
Archives are created when a redo log group fills up. So, in yo... |
'LOG' backup using Ola Hallengren doesn't work |
For some reason LOG backup doesn't bring the .trn file in specified location.
It does work with FULL, DIFF parameters but NOT with LOG.
Is it a bug or I am missing something?
Same folder structure, same account executing code, same permissions.
Database in FULL recovery mode.
No error generated. It just does not deliv... |
0
I am facing the same issue. @ExcludeLogShippedFromLogBackup parameter value is 'N'. Database recovery model is set to Simple.
My Full Backup and DIFF backup works perfectly. The backup is taken to the Azure Blob container.
Below is the command inside the Step (SQL job)
EX... |
Elassendra backup Solution |
We have three node cluster for Cassandra/Elassandra and I needs to setup backup for this. I used "nodetool snapshot" command for taking backup, but as we are using elasticserach so do I need to take separate backups of Indices or taking backup from "nodetool snapshot" is enough for this.
if separate backup is required... |
0
Since
Elassandra = Elasticsearch + Cassandra, So you need backup from Cassandra on the same time of backup from Elasticsearch.
By design, Elassandra synchronously updates Elasticsearch indices on the Cassandra write path. Therefore, Elassandra can backup data by taking a ... |
Hazelcast Backup and restore |
I want to perform Hazel cast back up and restore activity on Kubernetes environment from one AKS cluster to another AKS cluster. If anyone has performed in past or Is there any documentation is available to do that. I just started to learn Hazel cast your support will be appreciable.
I am using Embedded version 4.0.
|
0
This feature hot-backup does it.
However, this is not avilable in the free edition of Hazelcast.
Share
Follow
answered May 26, 2021 at 16:56
Neil StevensonNeil Stevenson
3,0701010 silver... |
AWS S3 backups for VMware templates |
Vmware Esxi support very few pip or python packages. We have cases where vmware were getting corrupted and our templates are getting loosed. Also we require periodic backups of templates on aws s3. I tried the following ways to do:
Copied the virtual env from my local to esxi server through command line - But it fail... |
0
Hello i dont know why you say that vmware got corrupted, i'll recommend you not to copy your templates from vmware to aws, just use packer and automate creation for both platforms. It's easy and there are a lot of examples.
Share
Follo... |
Is it possible to take DynamoDB Tables in one go based on a Tag Value? |
Is it possible to take DynamoDB Tables in one go based on a Tag Value ?
I have about 30 tables that needs to be backedup . I have created a Tag called " Backup " and assigned a value " daily " . Is it possible to take a backup of all these tables in one-go based on the Tag-Value ?
|
0
You'd have to write something custom to do a call to get all of the tables with this tag and then for each in the list, run the on-demand backup API call.
Though I have to ask, why not enable continuous backups on these tables and not worry about backups being done? The... |
What is default for PointInTimeRecoveryEnabled in AWS DynamoDB? |
I checked AWSCloudFormation dynamodb documentation and since PointInTimeRecoveryEnabled is optional, what would be the default value if it is not provided?
|
0
I think it is false but I do not have documentation
Share
Follow
answered May 6, 2021 at 3:37
TedTed
23.3k1111 gold badges9797 silver badges113113 bronze badges
Add a comme... |
How to implement Snapshot Replication |
I have data on several machines that I want to backup in away that I can restore to certain points in time.
From what I read Snapshot Replication achieves this (as opossed to back-up that clobbers previous results).
The main motivation is that if the data files are ransacked, and encoded, then if I just back-up I can ... |
I found out that Hyper Backup can save snapshots in time, so I'm using it instead of Snapshot Replication
|
Time Machine Disk not Recognising |
I took the backup of my system on Time Machine disk , at that time it was running Mac Big Sur. Now i want to restore the data on Mac Capitan but its not Recognising the external hard drive.
Do i need to upgrade it to Big sur and then try restoration of data or it's possible on Capitan.
The disk is visible at Disk Util... |
Your disk is probably formatted with APFS which wasn't fully supported until High Sierra. Time Machine itself used the HFS+ format until Catalina, only in Big Sur will Time Machine use APFS.
If the disk is APFS you need a High Sierra or new OS to mount the disk. Even having achieved that you may only be able to access... |
Improving functions to backup and restore a bash dictionary [duplicate] |
This question already has an answer here:
How to store state between two consecutive runs of a bash script
(1 answer)
Closed 2 years ago.
I wrote this two simple functions to backu... |
0
Use declare -p to reliably serialize variables regardless of their type
#!/usr/bin/env bash
if [ -f saved_vars.sh ]; then
# Restore saved variables
. saved_vars.sh
else
# No saved variables, so lets populate them
declare -A dikv=([foo]="foo bar from dikv" [bar]="... |
How to recursively change permissions with backup file comparing permissions |
So in my work i did a mistake and it change all the file permissions (file owner and group) recursively inside a folder. I have the backup of that folder. I'm working inside a nsf server and my idea is to copy the permissions of the backup directory to the directory where i did the mistake recursively. All the folders... |
chown can be uded to change ownership of a file or firectort
chown -R root:user /dir
changes the file ownership to user
-R perform the command recursively in a directory
same for
chmod -R 600 /dir
then you specify your permission and ownership in your own format
|
Can I copy data table folders in QuestDb to another instance? |
I am running QuestDb on production server which constantly writes data to a table, 24x7. The table is daily partitioned.
I want to copy data to another instance and update it there incrementally since the old days data never changes. Sometimes the copy works but sometimes the data gets corrupted and reading from the s... |
0
QuestDB appends data in following sequence
Append to column files inside partition directory
Append to symbol files inside root table directory
Mark transaction as committed in _txn file
There is no order between 1 and 2 but 3 always happens last. To incrementally copy ... |
Restore SQL Back ups back to server from Directory |
I have list of SQL databases taken as a backup and stored in D:\Backup\ drive, Task is to restore all backups, back to SQL Server. Looking for stored procedure which will open each file from directory and restore all files one by one to server.
Sample list of Databases
restore database master from disk='D:\BACKUP\D... |
0
I would strongly encourage you to look at the dbatools powershell module for this. For your needs:
$server = 'yourServer';
$backups = get-dbabackupinformation -SqlInstance $server -Path 'D:\BACKUP';
$backups | restore-dbadatabase -SqlInstance $server -withreplace;
Note ... |
Maria DB backup generates zero KB file with no errors |
The backup command line runs for ever and neither generates the data in the backup file nor throughs any error.
THis was working fine earlier, it stopped suddenly, no changes have been done to the DB or DB config.
|
0
You are using the mysql command, not the mysqldump command.
Share
Follow
answered Apr 6, 2021 at 11:24
markusjmmarkusjm
2,40911 gold badge1212 silver badges2525 bronze badges
... |
Powershell Backup-SqlDatabase backs up a snapshot instead of a full backup |
The process: an Azure agent that runs on a Windows 10 32bit pro machine with SQL Server 2014 Express installed.
The pipeline is built and runs successfully with PowerShell scripts as follows:
Create blank database
Create tables needed
C# application runs and populates the tables executed via a PowerShell script
Cross... |
Thank you @user19702 I was so consumed looking at the backup command with the added -BlockSize that I completely ignored the fact that my data has increased (thanks random process I never heard of before today) and even though the powershell is written to start the backup AFTER the SSIS package the process was not don... |
Azure SAP HANA Backup - hdbuserstore invalid system key |
I am trying to run the pre-reg script for Azure HANA backup but keep coming up with the error in below image.
If I open the terminal and run su SIDadm and hdbuserstore list I get the message (screenshot below)/
DATA FILE : /usr/sap/SID/home/.hdb/.../SSFS_HDB.DAT
Also if I run the hdbuserstore set system command I ... |
0
Based on the screenshots it appears that the hdbuserstore entries have been made as user root (the location of the SSFS_HDB-files gives this away: /root/.hdb/...).
Since the hdbuserstore information is specific to the OS-user, the entries stored as root will not be avai... |
Unable to restore database from Azure storage account without 'write' permission to container |
We have a number of Azure VMs with SQL Server and we utilize Backup to URL and create our database backups in an Azure storage account and Block Blob container. SQL uses a credential created from a SAS policy on the container that grants the permissions needed to backup/restore databases (i.e., 'read', 'write', 'list... |
Read/Write/Delete/List permissions are required for both backup and restore. There is a Tech Community article that outlines the requirements.
https://techcommunity.microsoft.com/t5/datacat/sql-server-backup-to-url-a-cheat-sheet/ba-p/346358
|
SQL error on INSERT : "relation does not exists" / but the table is not required |
I've got an issue with an INSERT TO statement. Even the most basic one doesn't work :
`INSERT INTO` tout.p_sitetech(st_name)
`SELECT` name
`FROM` tout.site_collect
It returns :
error relation "fond.edi_comm" doesnt exist.
LINE 1: ...concat(left(B.id_comm,2),right(B.id_comm,3)) From fond.edi_c...
But there are no "f... |
0
Execute
\d tout.site_collect
in psql to show the table definition with all its triggers. It must be a trigger or a rule that is defined on the table.
Share
Follow
answered Mar 17, 2021 at 11:12
... |
Invalid target board - jetson-tx2-devkit |
I want to create an image from nvidia jetson tx2 using flash.sh file, I could manage run it, but throw an error.
I set board on Recovery Mode and execute:
sudo /bin/bash ./flash.sh -r -k APP -G nvidia.img jetson-tx2 mmcblk0p1
Error: Invalid target board - jetson-tx2-devkit.
I'm using a jetson tx2 p3310-1000, so t... |
You must be sure that you are using the correct flash file with your Jetpack, for the case of version 4.5.1 you could use this code (for other version, please check L4T Driver Package (BSP) in https://developer.nvidia.com/embedded/linux-tegra)
wget https://developer.nvidia.com/embedded/l4t/r32_release_v5.1/r32_release... |
Backup Azure DevOps Repositories, Workitems etc |
I would like to ask a question regarding Disaster Recovery. Earlier we used to have our own source code repo and build server, so we had a Disaster recovery plan as to restore from a backup, in case if something fails. When we moved to Azure Devops, everything including Repo , Build Piplines etc is managed by Microsof... |
0
When talking about DR, the fundamental question is what kind of disasters you think of. Microsoft has its own DR, and I think they have higher reliability than what we might have in a local system.
One issue with a higher chance of happening is some internet issue, and ... |
Import data from sqlite3 database file to Room database on runtime |
I'm trying to implement import / export functionality for my app, which uses a Room database.
Exporting is implemented by just copying the database file given by getDatabasePath, but I've hit a problem when implementing the Import functionality.
I've tried using Room.databaseBuilder(...).createFromFile() but it does n... |
0
Try overwriting your database file from getDatabasePath with the backup file you exported.
You might have to restart the app after this.
Share
Follow
answered Feb 27, 2021 at 2:47
Dan Art... |
Postgresql backup cron job using the script from the wiki |
I am trying to use the scripts from the posgresql wiki: https://wiki.postgresql.org/wiki/Automated_Backup_on_Linux
as an automated solution in a cronjob. My main problem is that the script asks for the password. Thus automation is not possible.
I read in multiple places that you can create a ".pgpass" which can solve ... |
0
of couse I entered the correct database name and password. but I want to backup everything (using the script https://wiki.postgresql.org/wiki/Automated_Backup_on_Linux)
I got one copy of .pgpass in /home/ (there is no subfolder in /home/) and one in the folder where I go... |
Migrating structure and content between instances in Drupal 9 |
I'm very new to Drupal, so please don't be too mad in case I have any major misunderstandings :) I've tried searching for a similar problem, but is just couldn't find a suitable solution for my case.
We're currently setting up a Drupal 9 project, which will perspectively have a shared development environment and a pro... |
I definitely wouldn't recommend using Backup & Migrate for this - that's so Drupal 7! Drupal 9 has better tools that are baked into core!
There are many possible ways to import/export Config and Content entities across environments, but I'll share what I believe to be the current best practices.
For Configuration, Dru... |
How to create 2 archives using a TRIGGER? |
To create an archive from my table named store, I would like to backup a row and stock it in a specifique table (named:audit) before an update.
And after I would like to backup the same row and stock it in a specifique table (named:histo) after an update.
I thought of a TRIGGER.
Like this, but it does not work because... |
I finally found the problem.
Do not use the "id" field if you want to add a new row.
|
Will rclone --ignore-existing prevent ransomware damages? |
I am rclone backing up files multiple times a day. I would like my backup server to be a recovery point from ransomware or any other error.
Am I correct that if I do a
rclone copy --ignore-existing
, my backup server is safe from the ransomware. If all of my files on my main server get encrypted the file name would s... |
0
I just read the rclone documentation and it looks like the --ignore-existing is almost especially for preventing ransomware/encryption attacks according to the docs:
--ignore-existing Using this option will make rclone unconditionally skip all files that exist on the des... |
Python backup the file with last modified date within 6 months |
I am new python learner, I am doing backup automation with python. However, I would like to only backup the file with last modified date within 6 months, how can I type in python ? Many Thanks !!!!!
|
0
import os
import datetime as dt
now = dt.datetime.now()
ago = now-dt.timedelta(days=180)
for root, dirs,files in os.walk('.'):
for fname in files:
path = os.path.join(root, fname)
st = os.stat(path)
mtime = dt.datetime.fromtimestamp(st.... |
SQL Server differential backups in a Simple recovery model |
I created full backup on 1/1/2021. Then i stopped doing full backups.
For a month I was doing just differential backups.
If I restore full backup with norecovery,
would I be able to restore 2/2/2021 differential backup?
I don't know how differential backup on 2/2/2021 would know about all the changes since 1/1/2021
|
0
"If I restore full backup with norecovery, would I be able to restore 2/2/2021 differential backup?" --- YES
"how differential backup on 2/2/2021 would know about all the changes since 1/1/2021" --- through bitmap . "The differential backup operation relies on a bitmap pa... |
Backing up old clusters AFTER upgrading Postgresql |
So, I was careless and upgraded Ubuntu from 18 to 20 -- thus postgresql from 10 to 12 -- WITHOUT making backups of my postgresql-10 cluster. Now that I'm looking into upgrading the cluster to work with 12, I'm realizing that was a mistake. Is there a way to back them up before attempting to upgrade them, now that post... |
It turns out I had two versions of Postgres installed simultaneously, so I was able to backup with a simple 'pg_dumpall' before upgrading the clusters. This manpage and this blogpost were both helpful in sorting things out.
Because I had a lot of onboard storage free I let pg_upgradecluster populate the default data f... |
Libreoffice Multiple Backups? |
Is there a way, setting, macro, or otherwise, that can automatically create backups of the current document in a series? Such as, working on a Writer document, pressing a macro button, and creating a backup at that time, so that there is another backup added to the previous backups in a folder?
|
Well, try this
Sub createBackUp()
Dim sURL As String
Dim aURL As Variant
Dim saveTime As String
sURL = ThisComponent.getURL()
If Trim(sURL) = "" Then Exit Sub ' No name - cannot store
saveTime = "_" & FORMAT(Now,"YYYYMMDD\_HHmmSS")
aURL = Split(sURL, ".")
If UBound(aURL) < 1 Then ' No extention?
sURL =... |
How to catch a dump transaction in an SQL Server 2005 |
Every day, a job is connecting to a 2005 SQL Server and performs a dump transaction with truncate_only (or no_log) and breaks my transactions backups sequence.
I checked the Agent and the task scheduler, none of them is hosting such a job.
It occurs every day at 2:38PM, this I know from the server log showing this kin... |
0
Configure Auditing or a Trace to track the additional information.
You can then look back over the output logs and see where it came from.
Share
Follow
answered Jan 19, 2021 at 7:09
Martin ... |
How to add ONLY mysql database backup permission for a user in mysql 5.6? |
I need to add only mysql database table backup permission to one new mysql user account. My mysql version is 5.6. I've tried below command but its not working. Could someone please help?
GRANT SELECT, CREATE, UPDATE, DELETE, LOCK TABLES, RELOAD, SHOW VIEW ON *.* TO 'username'@'%' IDENTIFIED BY 'test123';
|
0
There are just two commands you need for this:
GRANT LOCK TABLES, SELECT ON DATABASE_NAME.* TO 'BACKUP_USER'@'%' IDENTIFIED BY 'PASSWORD';
Followed by:
FLUSH PRIVILEGES;
Hope this helps 👍🏻
Share
Follow
... |
Use a server for chat backup like Telegram or WhatsApp |
I'm adding a chat on my app with node js server, I'll save a cache to my local storage using MongoDB realm but I know that I've to put a limit on doing saving data inside my phone, just some megabytes, that's why I'm thinking to create a backup on another server, right now is on digitalocean but saving all the data th... |
For videos, image, etc. Amazon S3 is one of the main choices. It also come with a great node API to connect to your S3.
|
Is there a way to backup all my azure services datas |
I have create an "Azure DevOps organization" in Azure portal.
I am using this service to store my source code (git repositories).
I am wondering something: What happens if i accidentally delete my azure devops organization in Azure portal ? My account may be hacked too. Are there automatic backups in azure ? This ques... |
On Azure DevOps side, after you delete your organization, it's disabled but available for 28 days. If you change your mind during this time, you can recover your organization. After 28 days, your organization and data are permanently deleted.
Prerequisites
An organization deleted within the last 28 days.
Organization... |
Backup folder in Powershell |
I am working on a script to create a daily backup ( task schedule )
First I copy the folder "source_folder" and rename all the files with timestamp inside the "bkp" folder , when a new files is added in "source_folder" need to copy only the last file and also renamed ( I tried with LastModified or LastAccessTime but w... |
0
Based on this "(Get-ChildItem $source -Filter .| Sort LastAccessTime -Descending)[0]" you only ever expect to copy 1 file per day. And it sounds like the problem is that the script copies a file over even when no new files have been added to $source. Hopefully I have that... |
backup only some files using vbs [duplicate] |
This question already has answers here:
How to copy a file from one folder to another using VBScript
(6 answers)
Closed 3 years ago.
I want to make an automatic backup of my excel ... |
You dont need to iterrate each file, you could do something like:
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set wshNetwork = CreateObject("WScript.Network")
strUser = wshNetwork.Username
objFSO.CopyFile "C:\Users\" & strUser & "\Desktop\vbs\*.xlsx", "E:\test2\"
You may also want to set the o... |
crontab: same script is triggered only on one day |
I'm not a linux expert and need some support to a crontab mystery (for me).
I'd like to do a backup of my raspberry pi twice a week.
It's the same script. But only the every monday trigger (dow=1) executes.
The Friday rule (dow=5) does nothing at all - no backup saved.
I can't see why.
What's going wrong? Where can I ... |
You did everything correctly. You were just missing a second pair of eyes to see that you have a typo in the second line:
Baclup vs Backup
;-)
|
Azure backup server |
I have been having trouble finding specific answers to my questions about Azure Backup Server. Basically, I have a client with a Hyper-V Host and two guests. All are running Server 2019. Does Azure Backup Server provide the mechanism to easily restore and spin up these servers in the Azure cloud for quarterly testi... |
0
You cannot restore a backup of a Hyper-V VM, stored in Azure, to Azure as an Azure VM. Because currently this is not a supported scenario. You can only restore to an on-premises host.
FAQ reference URL - https://learn.microsoft.com/en-us/azure/backup/backup-azure-dpm-az... |
Azure backup lifecycle management |
Looking for a link on Azure Backup lifecycle management or help file will also do or anyways to design the Backup Lifecycle management
|
0
The Azure Backup service provides simple, secure, and cost-effective solutions to back up your data and recover it from Azure. You can back up anything from on-premise data to Azure File Shares and VMs, including Azure PostgreSQL databases.
To start off, you can learn m... |
Backup latest ubuntu server [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... |
To copy a full filesystem from a remote host, you can use the command:
ssh user@hostname 'sudo tar -cJf - --acls --selinux --one-file-system /' > full_dump.tar.xz
Then just unzip tar.xz into the current directory. To do this, use something like this:
tar xf linux_full_dump.tar.xz
|
AIP backup - using Docker |
I am using the cloned dspace 6-x branch and installed it via docker. Can someone help me with the backup of my local database (Communities, collections, items)to a remote database?
According to the documentation we need to use the command:
dspace packager -s -t AIP -e eperson -p parent-handle file-path
But it returns... |
0
Moving publications to a new repository will be a more substantial undertaking!
But your recent problem seems just that you are either not on the right container or in the right directory for executing the dspace command. Thus it is "not found". Make sure to execute dspac... |
mysql : Is it possible to ignore some tables in cold backup? |
We take every day the backup of a folder from production to uat with rsync.
That folder, among others, contains the physical files of a mysql database.
Is it possible to exclude some tables during the backup process?
Edit: If yes, which files should I exclude in the mysql directory?
Thank you!
|
0
use --exclude='pattern' where pattern can be file or directory eg '/dir/file*'
there is another option too, ie --exclude-from
Share
Follow
answered Dec 14, 2020 at 21:56
v-nodev-node
211... |
Reimport SQL Server backup from an .ipynb file |
At the recommendation of my boss (who doesn't remember saying it), I backed up data from several tables into an .ipynb file using the Tasks->Export Data... command in SSMS. I have finished the task that had me to set aside the data I was working with and I now need to return to my original task.
When I use Task->Impor... |
No answer, but everything was re-entered as inserts by parsing the file.
|
getting permission denied for relation in potgresql |
I connected to my db using this command
psql -U bm_clients -d Bayne_DB
and then I tried to run this command
Bayne_DB=> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA abcd TO bm_clients;
For which I received this error
ERROR: permission denied for relation provider_seq
How to resolve this?
|
0
Make sure that "Bayne_DB" owns all affected objects.
Share
Follow
answered Nov 17, 2020 at 11:26
Laurenz AlbeLaurenz Albe
225k1818 gold badges234234 silver badges303303 bronze badges
... |
Is there a way to use adb to get an android app's appstate.bin without rooting the phone? |
I want to inspect my opera browser's appstate.bin file. If I execute adb backup com.opera.browser the resulting backup.ab is empty after converting to tar format.
|
0
I believe that the backup file is empty because in the Opera AndroidManifest.xml file the flag allowBackup is set to false.
As a workaround you can do the following:
decompile the apk using apktool
change the AndroidManifest and set allowBackup=true
rebuild the Opera a... |
How do I call sh file daily? ora_backup |
My db version is oracle 12c. OS: oracle linux
I have working sh file
export ORACLE_SID=mydborcl
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG='AMERICAN_AMERICA.AL32UTF8'
expdp adminuser/Mypassword@mydborcl schemas=adminuser directory=my_db1 dumpfile=ad... |
0
you can setup cronjob for rman backup database daily or weekly.
if you want to keep backup for a day or a week, just set retain policy to a week or a day, depend on your need.
Share
Follow
answer... |
Android create local folder and backup database file there |
I want to achieve a simple thing - after pressing a button, I want to copy the application database file (from database folder) to a newly created folder BKP (create if not exists).
The problem is, I always get
java.io.FileNotFoundException: /data/data/my_package/bkp/mydb.db (No such file or directory)
I tried it lik... |
The problem was with the DIR path. As other paths have Environment.getDataDirectory() + their path, the directory path was without getDataDirectory, so it had only one data in path. Now with data/data it worked and the directory is created!
String dir = "/data/data/my_package/bkp/";
|
AWS snapshots created without policy |
in my AWS snapshots, I see, that there are snapshots created without policy, and I don't know, hot to disable them.
In my "Lifecycle Manager" I see only one policy, and it creates snapshot every day, and keep them for 2 weeks.
Those snapshots have description added "Created for policy: policy-0fd537dfc2b885c39 schedul... |
0
You can use AWS CloudTrail to look for the API events that created the Snapshots. A user identity (eg IAM Role or IAM User) will be associated with those events.
That should help you figure out how/what is creating those snapshots each night at 12:45am.
Share
... |
Trying to Extract Previous Day Azure VM Report but unable to Do via Powershell |
I am trying to generate backup report for previous day via Powershell but its not working .Can anyone help me on that .
Below is my Powershell Script
$ErrorActionPreference = "SilentlyContinue"
$report_object =$null
$report_object = @()
$vms = get-azvm | select Name
$acs = Get-AzRecoveryServicesVault
foreach ($ac in $... |
0
Your code is missing two curly braces (}}) at the end of the code. Is it just a typo? Or is that the reason for you to be unable to extract the report?
I have tried to reproduce the issue to see if I get any exceptions while execution but it all went well as shown in be... |
RMAN - Extra Item Created in Backup |
For development purposes, I have started to use RMAN to take backups of an XE database I have.
When I back the database up using RMAN, it is adding an additional item onto my backups. In the images attached, you can see that my intended backups are all tagged as XE but this additional backup item with a unique tag als... |
It's your "autobackup". Just look at your detail report. It tells you what is included in that backup piece. You'll see it is the control file and the spfile, which is what gets backed up by autobackup.
BTW, I see from that, that you have enabled the FRA. That being the case, why are you trying to direct your backup... |
Differential file saving algorithm or tool |
I'm looking for any information or algorithms that allows differential file saving and merging.
To be more clear, I would like when modifying the content of a file the original file should stay the same and every modification made must be saved in a separate file (same thing as differential backup but for files), in c... |
0
For calculating diffs you could use something like diff_match_patch.
You could store for each file version series of DeltaDiff.
DeltaDiff would be a tuple of one of 2 types: INSERT or DELETE.
Then you could store the series of DeltaDiff as follows:
Diff = [DeltaDiff_1, D... |
Restore backup table data to old one |
I made some changes in my tables and I need to make backup of tables which I use something like
CREATE TABLE supplier_invoice_rows_backup
AS
SELECT * FROM supplier_invoice_rows
I made changes and I need to return data from supplier_invoice_rows_backup to supplier_invoice_rows
Is there any way to do this ?
|
0
Yes there is! Try mysql code below.
RENAME TABLE supplier_invoice_rows_backup TO supplier_invoice_rows;
Or try oracle code.
RENAME supplier_invoice_rows_backup TO supplier_invoice_rows;
Share
Follow
... |
View and Reduce Storage for Azure Recovery Services |
I got a large bill recently from Azure and see that Backup GRS Storage was a large chunk of that bill at 1.7TB. I see that the full VM backup had the retention period set to 180 days! So I changed it to 14. It doesn't appear as though this had an impact as the Recovery Services Vault overview page still shows Backup S... |
0
I have answered your query at - learn.microsoft.com/en-us/answers/questions/98585/… Let me know if you have any other question in this regard
Share
Follow
answered Sep 25, 2020 at 18:04
S... |
Backup and restoration of Mautic |
I am a beginner in IT and Web Development.
I would like to create a backup of the Mautic installed on a hosting server “A” and restore it in another server “B”. How do I do that?
If it’s possible to automate the backup and the restoration, please tell me how to proceed.
|
Do the Following to Back up and Restore your Mautic.
Zip you Current Directory then Download
Export your Maultic Database
on Server B
Creat Db
Import your Current Db
Upload Mautic Files to the domain folder you wanna use.
change Db Connection in app/config/local.php
These should fix the ish.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.