Prompt stringlengths 14 160 | Instruction stringlengths 18 2k | Response stringlengths 8 2k |
|---|---|---|
Solaris backup old |
I have some old Solaris backups (to tape), I think v4, that I want to restore. I'm not sure what the format is. The binary has 1024 blocks, each block starts with 00 00 00 01,02,03,04,05 or 06 and then a 4 byte epoch date. I've figured out the headers:
00 00 00 01 - Backup Header
00 00 00 02 - Regular file content
00 ... |
1
Most old tape backups are:
tar
cpio
dump/restore
If you have some of the data written on disk, you could determine the format using the file command.
$ file {data}
{data}: new-fs dump file (big endian), Previous dump Mon Oct 28 17:57:36 2019, This dump Wed Dec 31 16:00:00... |
How can I exclude folders in All-in-One WP Migration? |
I want to exclude the folder /wp-content/uploads/download-manager-files from backup because it contains files with several gigabytes of data.
For this I used the following hook in the functions.php of my theme:
add_filter('ai1wm_exclude_content_from_export', function($exclude_filters) {
$exclude_filters[] = 'uploads/... |
1
The filter name has changed in the latest versions of the plugin, the new filter is ai1wm_exclude_themes_from_export
Full code to try:
// EXCLUDE NODE MODULES
add_filter( 'ai1wm_exclude_themes_from_export',
function ( $exclude_filters ) {
$exclude_filters[] = 'theme-nam... |
Failed to authenticate on SMTP server with username "***" using 2 possible authenticators |
I am using google drive api with laravel for a continuous backup, so I am using following packages
"nao-pon/flysystem-google-drive": "~1.1", and
"spatie/laravel-backup": "^6.14"
I have set up google drive api v3 with refresh token and put it into .env
FILESYSTEM_CLOUD=google
GOOGLE_DRIVE_CLIENT_ID=****.apps.google... |
1
Oauth playground is only intended to be used for testing. Tokens created on the playground will only work for about two weeks.
You should implement your own authorization.
Share
Follow
answered... |
Uploading current day's backup instead of all files via Cron jobs |
I have a VPS running on Centos 7, and created a cron job to dump my database (Sql 8.0) and to create a tar to backup my entire site's files and this goes on everyday
I want to create another bash / cron job to connect to my backup server and upload those backup files stored on my VPS.
The problem is, I can't get it to... |
1
You can use find with -ctime to search for .tar.gz files changed in the last 7 days and then loop on the results, ftping each. Using this logic with your existing solution:
#!/bin/sh
USERNAME="ftp user"
PASSWORD="ftp password"
SERVER="IP or domain"
# local directory to p... |
Webmin Filesystem backup | Restoration complete without errors, but doesn't works |
I am using the "Filesystem Backup" from Webmin, but this recovering system doesn't works on my server.
Here my config :
Debian 10 (Buster)
Webmin version 1.970
And here, what i've done :
Backup creation
Manual modification of a file to create a difference between my backup version and the post-backup version.
Resto... |
1
Make sure "Only show files in backup" is set to "No"
Src
Share
Follow
answered Dec 10, 2021 at 10:54
Pedro LobitoPedro Lobito
96.3k3232 gold badges265265 silver badges274274 bronze badges
... |
Mongo DB Backup and Restore |
I'm new to using Mongo DB and was wondering if anyone could explain to me how to make reliable and accurate backups of my mongo data.
|
1
Option A ( Online ):
For databases with storage size < 500GB you can use mongodump/mongorestore or ops manager(if you have it).
For bigger database sizes more effective is to do storage or lv snapshots from the backend file system , you can lock some members and do the ... |
Backup git projects by keeping only a reference with the remote repository without saving the entire .git folder |
While running my scheduled backups I have to save many git projets (containing the .git folder) and I'm looking for a way to filter the backup operation in order to save only the reference of each project with the remote url of the repository without saving the entire .git folder which sometimes contains too many file... |
1
In general, Git requires all references in a repository to point to valid objects and, unless you are using a shallow or partial clone, every object reachable from a reference must be present. A repository that doesn't meet these criteria is corrupt.
Therefore, it's not ... |
How to prevent keychain data to be included in backup and restore process of the devices when using KeychainSwift? |
I use KeychainSwift to save my data on keychain, my problem is, when the I backup and restore my app, from Device A to Device B, those data from Keychain was included on the transfer.
The question is, how can I prevent it from happening and make my keychain stay only on Device A?
This is my code on Saving data into th... |
You have to use withAccess parameter for set method
Possible values you can look on officialKeychainSwift github here
https://github.com/evgenyneu/keychain-swift/blob/master/Sources/KeychainSwiftAccessOptions.swift
You need some access value with ThisDeviceOnly ending to it not be synced over devices.
|
Gitlab docker backup and restore |
I am using GitLab via docker on an intranet disconnected from the internet.
I run GitLab docker using docker-compose following yml file.
web:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'myowngit.com'
ports:
- 8880:80
- 8443:443
volumes:
- /srv/gitlab/config:/... |
1
It should work unless, as shown in docker-gitlab issue 562, to move was done with a different ownership
It should be okay to move the files from /data1/data to /data2/data, you should take a little care while copying the files to the new location. i.e. either of these sh... |
How to copy MarkLogic database between platforms |
I need to confirm the process to copy a database from a Linux ML 9.x server to a Windows ML 9.x server and wanted to make sure I understood properly.
Apparently I cant use a backup of a ML database taken on a Linux to restore onto a Windows server.
Here is what I think the high level process is and would welcome corre... |
To move data between platforms, use MLCP and ask it to make an archive. Please see the relevant docs at
https://docs.marklogic.com/guide/mlcp/export#id_93332
To move configuration, you can use Configuration Manager (https://docs.marklogic.com/guide/admin/config_manager) but it’s deprecated because the best practice th... |
How to output MySQL data tables in CSV format? |
I need to know how can I export 10 data tables from one database into a csv format with cron job daily?
I know this script:
SELECT *
FROM TABLE NAME
INTO OUTFILE '/var/lib/mysql-files/BACKUP.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';
But how can I in the same line add the another 9 tables... |
You should look into mysqldump with the --tab option. It runs those INTO OUTFILE statements for you, dumping each table into a separate file.
You don't want all the tables in one file, because it would make it very awkward to import later.
Always be thinking about how you will restore a backup. I tell people, "you don... |
Pushing issues and wiki to Github repo |
I want to move my GitHub repo from GitHub to GitLab. I want to move everything(issues, wiki and ...).
I use python-github-backup and backup everything but I do not know how to push issues and wiki.
I search and find out I can use git push URL/repo.wiki.git but it does not work in my scenario.
How can I push issues and... |
1
You must use git clone, not git push.
To edit Wikis locally, you must first clone the Wiki.
Say, the GitHub username is test, and the repository name is test-repo.
In order to do so, you must run the following command in Git bash:
git clone https://github.com/test/test-re... |
AWS RDS automated backup |
Can RDS automated backup be done in another region? I am seeing conflicting data from AWS:
https://aws.amazon.com/blogs/database/implementing-a-disaster-recovery-strategy-with-amazon-rds/ says that automated backups are limited to single region.
https://aws.amazon.com/about-aws/whats-new/2020/01/aws-backup-supports-cr... |
For the first link you shared it is about the RDS snapshots (automatic snapshots) that are taken by the RDS service. These snapshots are only accessible within the single AWS region in which the snapshot was taken, however you can copy an automatic snapshot which will then make it a manual snapshot. From here you woul... |
Backup npm packages registry |
We are becoming more and more dependent on public open-source repositories – And I was wondering if one of the packages or dependencies is down or no longer online – we'd be screwed if we do not have a plan B.
Is there any project that allows you to scan all you Github project "package.json/yarn.lock" – and backup in ... |
1
You could use a self-hosted caching NPM proxy like https://verdaccio.org/ .
Install from it (forcefully) to make it cache your requested packages.
npm install --force --registry https://your.npm.proxy
Restore is a simple unforced
npm install --registry https://your.npm.p... |
How to simulate Azure VM backup failure |
How can I simulate a backup failure on Azure VM?
The Backup job executes fine every day.
In order to test an alert execution I need to fail the VM backup.
I tried to kill the Volume Shadow Copy process on the VM during a manually triggered backup, but it didn't cause the back to fail.
Any ideas are greatly appreciated... |
1
Put a delete lock on the Resource Group containing the backups, the name of the group should be something like: AzureBackupRG_eastus2_1
Then run your backup a couple of times and the backup should eventually fail because it cant remove the oldest backup.
Another way to ... |
Azure Backup Failed "VM agent is unable to communicate with the Azure Backup Service" |
I am receiving a backup failed error since 6/20/2020 within my Azure backup policy.
I also noticed within the Properties section under Settings of the Virtual Machine instance the "Agent status" is in a "Not Ready" state.
When I click the Backup section under Operations the Backup Status shows 2 entries.
Backup Pre-Ch... |
1
You would need to re-install the Backup extension. Take a backup of whole registry then use following steps:
Login to the affected machine.
Open Registry Editor.
Remove VMSnapshot registry keys at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Azure\HandlerState
Remove ... |
backup distributed cache data to cloud storage |
I want to backup the REDIS data on google storage bucket as flat file, is there any existing utility to do that?
Although, I do not fully agree to idea of backing up of cache data on cloud. I was wondering if there is any existing utility rather than reinventing the wheel.
|
1
If you are using Cloud Memorystore for Redis you can simply refer to the following documentation. Notice that you can simply use the following gcloud command:
gcloud redis instances export gs://[BUCKET_NAME]/[FILE_NAME].rdb [INSTANCE_ID] --region=[REGION] --project=[PRO... |
rsync filter excluding everything but given (sub) directories |
I want to do a Linux system backup with rsync and my backup strategy exclude everything except what I explicitely want. I am not succeeding in finding the correct filter rules.
I have the file sync_filter:
+ /etc
+ /home
+ /opt
+ /root
+ /srv
+ /var/backup
+ /var/log
+ /var/mail
+ /var/www
- /*
I think, my intention ... |
I found a solution right afterwards. The filters have to be:
+ /etc
+ /home
+ /opt
+ /root
+ /srv
+ /var
+ /var/backup
+ /var/log
+ /var/mail
+ /var/www
- /var/*
- /*
|
Machine Learning Server (SQL): how to backup and restore Python and Packages |
After installation of numpy-1.18.1-cp35-cp35m-win_amd64.whl package in Python 3.5 ( SQL Server Machine Learning Services for windows x64, SQL Management Studio v17.9.1, MSSQL Server 2017) I recieved the error:
Unable to communicate with the runtime for 'Python' script. Please check the requirements of 'Python' runtime... |
1
Python backup/recovery steps on ML Sevrer:
Backup - copy somewhere the folder
C:\Program Files\Microsoft SQL
Server\MSSQL14.MSSQLSERVER\PYTHON_SERVICES\
with workable Python version
Recovery:
1) stop SQL server including Launchpad
2) drop\replace current Python folde... |
Backup DB from docker to real machine |
SOLVED !
Good morning :)
Did anyone make a db backup from docker to host machine? I have a MySQL database but I would like to clone it into my real machine because every time I run container it creates a new image, but I want to use this db every time (so I want db to persist in real machine).
Thanks a lot !
|
When you have a Docker container that is already configured to use a MySQL database inside the container, you can make a database backup with the mysqldump inside the container, like this:
mysqldump database > database.sql
(NOTE! You run this inside your container)
You can then use the docker container cp command to ... |
Improve PostgreSQL pg_restore Performance from 130 hours |
I am trying to improve the time taken to restore a PostgreSQL database backup using pg_restore. The 29 GB gzip-compressed backup file is created from a 380 GB PostgreSQL database using pg_dump -Z0 -Fc piped into pigz.
During pg_restore, the database size is increasing at a rate of 50 MB/minute estimated using the SELE... |
1
Your database system is I/O bound, as you can see from the %iowait value of 63.62.
Increasing maintenance_work_mem might improve the situation a little, but essentially you need faster storage.
Share
Follow
... |
shutil.copy fails after os.makedirs |
so as you can see im trying to create a small backup script for my self, to select needed files and back them up.
import shutil
import datetime
import os
import time
def backup():
# set the update interval
while True:
backup_interval = input("Please enter the backup interval in seconds: ") # 300
... |
1
I have modified your code as you need,
backup_file = input(r"Please enter the path for the file to backup: ") # D:\Python\BackupDB\test.db"
dest_dir = input(r"Please enter the destination path: ") # D:\Python\BackupDB\
folder_name = input(r"Please ... |
How to drop the oldest entries from a remote TimescaleDb, maintaining the full local backup of the database? |
I've got a remote ever growing TimescaleDb database. I would like to keep only the most recent entries in the that Db, backing up the rest of the data to local drive, to achieve constant Db size on the server.
I thought of making full pg_dump backups before retaining and rebuilding the base locally from these backups.... |
(TimescaleDB person here)
There are two main approaches here:
Use a backup system like WAL-E or pgBackRest to continuously replicate data to some other source (like S3).
Integrate your use of TimescaleDB's drop_chunks with your data extraction process.
The answer somewhat depends on how complex your data/database is... |
New-AzWebAppBackup: Operation returned an invalid status code 'Bad Request' |
When I'm trying to execute the Azure App Service Backup over Azure Powershell with New-AzWebAppBackup cmdlet as described here:
https://learn.microsoft.com/en-us/powershell/module/az.websites/New-AzWebAppBackup?view=azps-3.3.0
I'm getting the following error message:
PS Azure:\> New-AzWebAppBackup -ResourceGroupNam... |
Hello and welcome to Stack Overflow!
Hope your webapp satisfies the prerequisites to be able to take a backup. The Backup and Restore feature requires the App Service plan to be in the Standard tier or Premium tier. Refer to Requirements and restrictions for the complete details.
I got the same error initially when ex... |
RSYNC and folder hierachcy |
After making a full forensic copy of a harddrive using dd, I would like to keep up with changes between the original and backup harddisc, therefore I started using rsync.
Whenever, I run
sync -a -v -n --progress /media/drive1 /media/drive2
the command would start listing all files contained in drive1. However, onl... |
The way rsync treats its source and destination paths is easy to get wrong. When you use the command:
sync -a -v -n --progress /media/drive1 /media/drive2
...it tries to sync the drive1 folder into drive2; that is, it creates and populates /media/drive2/drive1. When you add "/folder" to the source path, it works as ... |
How to keep the last commit of every day |
I have written a simple script to git commit the changes every hour and push the changes But I want to keep only the last commit of each day and remove the previous ones due to the size of commits to save the space. In other words, I need to keep the last commit of 22nd December and remove the previous ones but keep t... |
1
If your process creates a commit every hour, you can reset the past 23 commits every day and create a single commit:
git reset --soft HEAD~23 && \
git commit -m "Squashed previous 23 commits into one" && \
git push origin
Share
Follow
... |
How to copy/recreate indexes, constraints, triggers etc in SQL server? |
Background:I needed to copy 2 tables from a backup to a production SQL Server database. Being new to SQL, I thought that I could just drop and insert into and it would work. So naive.
Is there any simple way to copy everything about the good tables (I restored them into a separate backup) into the tables I created in ... |
1
As far as I understood correctly, go to database and:
1. Script Table As -> Create to... Now you got your table with all indexes and other stuff which in the table.
2. Create these table in your new database
3. Copy your data from backup tables to the new.
You can do this... |
mysqldump: MySql backup user is not able to connect using password |
I have created a mysql user using following command:
CREATE USER 'backupuser'@'localhost' IDENTIFIED BY 'password';
I have given him permissions using following command:
GRANT EVENT, LOCK TABLES, SELECT, SHOW DATABASES, RELOAD, REPLICATION CLIENT ON *.* TO 'backupuser'@'localhost' IDENTIFIED BY 'password';
But when ... |
Does your password contain any characters that are special to the shell? Like ; & ! or space, quotes, etc.? You might have to quote the password.
But regardless, I recommend you do NOT put your passwords on the command-line. Anyone who can run ps on your server can therefore see your password in plain text.
Instead, p... |
Backup .sql from laravel |
I'm going to backup my database .sql file from laravel. when I use artisan command from cmd, the backup file will generated with no issue. but when i do that from controller I got this error.
How to fix this?
mysqldump: Got error: 2004: "Can't create TCP/IP socket (10106
"Unknown error")"
|
You can use db-dumper package to backup your database.
Installing:
composer require spatie/db-dumper
Usage:
Spatie\DbDumper\Databases\MySql::create()
->setDbName($databaseName)
->setUserName($userName)
->setPassword($password)
->dumpToFile('dump.sql');
|
What are the required permissions for the Azure Backup Service? |
I am met with the following error details when investigating why an Azure encrypted VM backup failed, but the link provided with the error (https://learn.microsoft.com/en-in/azure/backup/backup-azure-vms-encryption) doesn't resolve my question: exactly which permissions should I grant? All it says is that "The require... |
Here are the steps I took to correct this via http://portal.azure.com (I realize step 6 might be overkill as the Restore permission might be unnecessary here--but hey, this worked):
Search for "Key vaults".
Click on my key vault.
Click "Access policies".
Click "Backup Management Service".
Click on the Key permis... |
Restore SQL Server 2008 backup to SQL Server 2016 |
Can you restore SQL Server 2008 backup to SQL Server 2016 ?
Thank you
|
Yes. SQL Server is backward compatible with any version that was supported at the time the version was released.
For SQL Server 2016 that was SQL Server 2008-2014.
A full list of the compatibility modes available can be found on the documentation here.
Note that restoring a database on a newer version of SQL Server is... |
Terraform Azurerm Recovery Services Vault Backup Policy Format Error |
I am trying to create a weekly Azure VM protection policy in Terraform to run on Fridays at 6:30 pm with a retention of 1. TF throws format error related to 'schedule time, schedule days, retention time and retention days' error. I am not exactly sure which parameter has an incorrect value or format.
resource "azurerm... |
For your issue, maybe it's a little mistake that you did. You just need to make a change in the backup block of the policy like this:
backup {
frequency = "Weekly"
time = "18:30"
weekdays = ["Friday"]
}
Then it will work fine. The screenshot of the test on my side below:
|
Azure Backup Retention strategy |
I'm trying to wrap my head around Azure Backup retention points & want to know if the retention policy I'm choosing is optimal. With reference to the Azure pricing calculator, if I take 30 Daily RPs (Recovery Points) & 5 Yearly RPs, won't my VM data be adequately covered.
screenshot from Azure pricing calculator abou... |
1
If churn happens at a consistent rate daily, then having only daily is also fine
If you see some unexpected churn take an adhoc backup and then give higher retention for that, If you observe that churn is possible mostly during month ends (say for finance applications),... |
How to make sure I download all data on Heroku before closing the account? |
I do not understand the structure on Heroku (I'm not a programmer). How can I download apps, databases before closing the account?
|
For starters, you shouldn't need to download you apps from Heroku:
A Heroku app’s Git repository is intended for deployment purposes only. Cloning from this repository is not officially supported as a feature and should be attempted only as a last resort. Do not use this repository as your app’s canonical “origin” re... |
Notepad++ reloaded a file that wasn't saved on notepadd++ and was modified caused deleted info |
I had a file in Notepad++, I made changes in notepad++ and forgot to save there, no big deal since npp auto-saves it when you close it.
I accidentally changed the txt file via normal windows notepad and saved. (that caused the txt file to made changes on the original file before i made changes in npp). When I got back... |
1
If you use backup option in n++ preferences it will write to backup folder also not saved information.
Default backup folder in Windows system is:
C:\Users[user]\AppData\Roaming\Notepad++\backup
Share
Follow
... |
Firebird 3 backup by non SYSDBA and non DB owner? |
Is it possible to create a Firebird 3 user who may do backups of a given database but cannot connect as sysdba and use things like tracing or looking into the environment of all sessions?
|
In Firebird 2.5 and higher, you can grant a user the RDB$ADMIN role in a database. This will give that user owner or SYSDBA equivalent rights in that database.
GRANT [ROLE] RDB$ADMIN TO username
See also RDB$ADMIN Role in the Firebird 2.5 language reference.
A user with the RDB$ADMIN role can backup the database, pro... |
Azure storage account location with Recovery Services vault location |
I am setting up Azure Backup report, I have a Recovery Service Vault in Canada East, and a storage account located in Canada Central. when I try to pick up storage location for Backup report, there is none. It looks like you only can choose storage account at the same location with Recovery Service Vault.
Is this a... |
It is not a bug, it is by designed, see this link: Supported scenarios.
You can view reports across vaults and subscriptions, if the same storage account is configured for each of the vaults. The storage account selected must be in the same region as the Recovery Services vault.
|
How to backup mysql database using query |
BACKUP DATABASE dbwebsite TO DISK 'C:\Users\Paeng\Desktop\mydatabase.sql';
It always says error
Query : BACKUP DATABASE dbwebsite TO DISK 'C:\Users\Paeng\Desktop\mydatabase.sql'
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right sy... |
1
To the best of my knowledge there is no SQL Statement for MySQL database to backup anymore like the syntax you are using and which is possible for MS SQL Server via TSQL.
For MySQL you have the following options to backup your database:
Use mysqldump as a logical backu... |
Failed to connect to installer service |
i have a problem with veeam backup and replication 9.
the problem is when i try to restore one of my virtual machines in a new location that it is on my back up server i get an error that
[Backup Server Name] Failed to connect to installer service.
can some one please help me on this case
my windows server is 2012 and... |
1
The step i did to solve this problem is as below:
1. I go to services.msc and restarted Veeam Installer Service.
2. In Veeam software at section backup infrastructure i rescanned all servers and i also set my credentials again.
at last i restarted server and the problem w... |
How to backup sybase database with date/time stamp |
How to backup sybase database with date/time stamp using command line?
Saw somebody posted this method:
declare @pvm varchar(30), @dumptorun varchar(300), @dbname varchar(70)
select @pvm=(CONVERT(varchar(30), GETDATE(), 112))
select @dbname='master'
select @dumptorun = 'dump database '+@dbname+' to d:\temp\'+@dbname+... |
declare @pvm varchar(30), @dumptorun varchar(300), @dbname varchar(70)
select @pvm=(CONVERT(varchar(30), GETDATE(), 112))
select @dbname='master'
select @dumptorun = "dump database " + @dbname + " to '/backup/DB/"+ @dbname+"_"+ @pvm + ".dmp'"
select @dumptorun
EXEC ( @dumptorun )
This works on Unix - you would need t... |
Kubernetes manual backup |
I manually install a kubernetes cluster of 3 nodes (1 master, 2 slave). Now, I want to perform a upgrade of the k8s version (say, from 1.7 to 1.11). As the gap is long, the preferred method would be to forcefully reinstalled all the required packages. Is it a better way to do this? If yes, could you please tell me how... |
1
They do not recommend skipping minor releases. So you should upgrade to 1.8 then 1.9 and so on. They support deprecated apis for one release, so for example if you have any deployments they are on extensions beta API which will not be supported by 1.11 release where they ... |
is there any need to have azure backup plan? |
I want know is there any need to have backup plan? I am just curious about if azure have its policy that they can maintain backup of all application they have installed on there server so is there any need to take extra plan to have separate backup of our own code and database ? Please guide me ?
|
This purely depends upon the product which you are going to develop/host within Azure. There are several factors like SLA(Service Level Agreements), Compliances, Audit/Policies etc.,
Let say if your product related to healthcare/financial domain. In such a case, you need to follow certain policies, compliances.
Healt... |
Backup postgresql WAL logs |
I try to configure backuping database in postgresql with pg_basebackup and WAL logs.
For now I created full backup once a week and want to backup wal logs too. But, as I understand, posgresql writes them all the time. So, how can I copy them and be shure that they are not corrupted?
Thanks
|
1
You set archive_command to a shell command that copies the WAL file to a safe archive location, so that burden is mostly on you.
When PostgreSQL runs archive_command, it assumes that the WAL file is not corrupted. Only a PostgreSQL bug or a bug in the storage system could... |
How Does Permission get asked Again? |
I am seeking to copy my SQLite database to "external" storage as a means of backing up my database file. From there the user can grab the .db file and move to a place deemed safe.
In following the Android Developer documentation on getting permission to WRITE_EXTERNAL_STORAGE, I have entered the code shown in verbati... |
How does permission got asked again?
Short answer: is by asking it again.
Some explanation: You can provide an alert dialog or something to demonstrate why you need this permission, also it's not required to do that every time because the user can know which permission required depend on action, however, there is a me... |
Advice on gluster volume backups |
So, I have a three node gluster sharing a single volume. There are two clients connecting to that volume. I'm installing my backup agent on all the nodes and clients. I would like to try to reduce duplication of backups not only for space but for network overhead. This is not mission critical data. Would it be su... |
1
Backing up brick alone is not a good idea.
To keep it simple, you can run your rsync tool(or any backup tool) from client machine to wherever your destination is.
OR You can make use of gluster geo-replication to do the backup. Note here, the backup destination must be a... |
How to backup all data from specified bucket in couchbase (NOSQL)? |
How am i backup all data and index from one specified bucket in Couch-base (NoSQL)?
|
1
Use the cbbackupmgr command line tool. "It backs up and restores bucket data, views creation scripts, index creation scripts, bucket configurations, and so on"
You can find this utility in the bin folder. For example, here it is on Linux:
root@15ca2cdf844e:/opt/couchbase/... |
Backups marked incomplete, but seem to be full backups, while using vultr VPS with WHM Cpanel destination Amazon S3. How do I resolve this? |
I'm backing up 35 or so accounts to Amazon S3. The connection is good, all of the backup files are being written, but afterwards in the backup folder I have a tiny file named 'backup incomplete' and you open it, it shows the date. The WHM/Cpanel side obviously is marking this incomplete, but I'm not sure why as the fi... |
1
OK! So I found my issue. Exporting of a mySQL database was failing during the backup. I found this by reviewing the cpanel log files found in /usr/local/cpanel/logs/cpbackup
For more information about cpanel logs visit:
https://documentation.cpanel.net/display/CKB/The+... |
Schedule Oracle backup [duplicate] |
This question already has an answer here:
How do I manage automatic backups with oracle?
(1 answer)
Closed 6 years ago.
What is the correct and best approach for backing up oracle ... |
1
Oracle Enterprise Manager has a wizard that helps setting up recommended backup strategy. See the following white paper (Oracle RMAN Backups: Pushing the "Easy" Button) for details..
Share
Follow
... |
Is there a way to programmatically backup and restore Azure database with a bacpac or similar? |
So I am migrating a database from a local SQL Server 2014 to an Azure database. I migrated successfully using a bacpac and the connections are working fine. However I still want to perform backups and of course the old school file backup does not work. So I hunted around and saw that Microsoft recommends backing up... |
1
If you are talking about Azure SQL it offers built-in backups up up 90 (not sure, 35 for sure) days without you having to do anything. Take a look here.
Share
Follow
answered Nov 8, 2017 at 14:... |
WBADMIN is not creating the etl file in C:\Windows\Logs\WindowsServerBackup |
We have a system backup process which will create the backup process of all drives. The command is
WBADMIN START BACKUP -backupTarget:\\%servername%\sysBackup -include:C:,D:,E:,F: -systemState -quiet -vssFULL
In Windows 2008 Server this command is working fine and it is creating the Wbadmin*.etl files in C:\Windows\... |
We got the solution from the Microsoft Support. In Windows 2012 and 2016, the WBAdmin.etl has been replaced by WBEngine.etl. Modified the code accordingly and the process is working fine now.
|
gerrit - understanding replication or create a backup |
we've a running gerrit 2.14.2 with mysql backend.
Now we wan't to mirror/backup it.
I don't understand the replication feature. Is it necessary to setup a full gerrit/git in the same config as the source instance?
The other mentioned way would a DB dump an replay to the other machine and a rsync from the git repositor... |
1
To use the replication feature you need to install/config the replication plugin. it's part of the core plugins so it is packaged within the Gerrit war file and can be installed running a Gerrit initialization (java -jar gerrit.war init). The plugin will mirror all change... |
How to take entirely android os as a image file? |
1-I have rooted my tablet(android 5.1.1).
2-I have installed some apps as System app...
3-I need to take a backup of my entire android os, including data_user and system apps, all together.
is it possible to take an image of android os including every things?
|
1
At first, use mount or cat /proc/mtd command to identify your block devices. And then copy all image to file:
cat /dev/mtd/mtd16ro > /sdcard/my_system_image.bin
/dev/mtd/mtd16ro - system partition at my tablet (your may be different)
/sdcard/my_system_image.bin - your i... |
How to mirror WordPress development environment and live site? |
What's the best way to mirror, when you have a development environment and a live environment with WordPress (including two different URL's).
Is it simply by making a backup of one environment (FTP->Data, SQL->Database) and setting it up on the other environment?
|
The easiest way to make a copy of a Wordpress site is to use a plugin like Duplicator. It handles everything from copying the files to updating the WP database with the new domain etc.
Install the plugin on the website you want to copy (i.e. your
development environment)
Build the package - this creates a single arch... |
How do I exclude a sub folder/directory from the Azure Backup for an App Service? |
How do I exclude a sub folder/directory from the Azure Backup for an App Service?
Our backup system seems to fail because this folder makes the site exceed the backup limit. So I'd like to exclude only that folder.
The website + database size exceeds the 10 GB limit for backups. Your
content size is 10 GB.
|
1
@AjayKumar-MSFT's link to Partial Backups works, but here's the details:
create a file called _backup.filter
list one directory or file per line
Upload _backup.filter file to the D:\home\site\wwwroot\ directory of your site
Example:
\site\wwwroot\Images\brand.png
... |
Simple backup script |
I used to maintain an in house cmd line tool for support techs. As such I wanted to make sure that I kept a archive of previous versions of the file in case something went sideways.
I wanted to create a simple batch file that I could run as a scheduled task every X days to make a copy of the development folder on a ne... |
1
Here is what I came up with. Not the most elegant, but it got the job done. I've gone through an anonymized the script but it wouldn't be hard to replace the directory paths to what suits your needs.
@echo off
rem Copies the targeted directory to a folder in my documents ... |
Backing up Jenkins home directory with a Jenkins job |
I have taken a look at several approaches for backing up Jenkins home directory. One of the more intriguing (and seemingly complete), methods for doing so is configuring a Jenkins job which backs up Jenkins home directory to source control.
I am trying to get clear on exactly what will need to be performed (via an 'e... |
1
On your job you can add BitBucket credentials. But what I did for mine was making the jobs folder a .git repo and I manually commit to it every so often.
You can also make a job to do this for you running a bash script I found online: Bash Script
#!/bin/bash
# Setup
#
... |
Duplicity/Duply Backup to S3 without API Keys? |
Goal: Automated full and incremental backups of an AWS EFS filesystem to an S3 bucket.
I have been looking at Duplicity/Duply to accomplish this, and it looks like it could work.I do have one concern, you would have to store API keys in the clear on an AMI for this to work. Is there any way to accomplish this using a... |
I do backups exactly as you want to and it can be done since duplicity has support for instance profile. Make sure to give appropriate access to your role and attach it to your instance.
|
the approach to restore a pre-configured docker image |
I am completely new to docker. I have a quick question about docker images.
Assume that I have setup a local docker image with certain software / server installed. So now I would need to set a checkpoint / snapshot here, then all the work done after this checkpoint is temporary; which means at a certain time, I would ... |
1
It makes sense even though you could consider managing data in container or volume (or host folder mounted in the container).
That way the data remains persistent even when you stop and restart the container.
what is the approach in doing that checkpoint
If your contai... |
PostgreSQL DB dump location |
I want to download dumped PostgreSQL databases from an Ubuntu 16.04 server.
sudo su - postgres
pg_dump my_db > backup_db
Search for the path yields the following:
ps auxw | grep postgres | grep -- -D
postgres 7311 0.0 0.0 293332 3384 ? S Mai04 0:39 /usr/lib/postgresql/9.5/bin/postgres -D /var/lib/pos... |
$HOME of user postgres
pg_dump just echoes to stdout, unless you specify -f
-f file --file=file
Send output to the specified file. This parameter can be omitted for
file based output formats, in which case the standard output is used.
It must be given for the directory output format however, where it
specifies ... |
Jenkins service won't start after backup |
My organization needs to make backups of our heavily customized Jenkins instance. After doing some research on different methods for backing up Jenkins, we decided to go the route of copying the whole Jenkins directory using xcopy and then moving the backup to a new instance on a different machine. (The reason for usi... |
1
The one folder you need to backup is the one referenced by the environment variable JENKINS_HOME
It is best to keep that folder separate from the installation folder like C:\Program Files (x86)\jenkins.
Then I prefer using a tomcat instance, and copy the jenkins.war in ... |
How can I compare the file sizes match between duplicate directories? |
I need to compare two directories to validate a backup.
Say my directory looks like the following:
Filename Filesize Filename Filesize
user@main_server:~/mydir/ user@backup_server:~/mydir/
file1000.txt 4182410737 file1000.txt 4182410737
file1001.txt 8241410737 - ... |
By default, rsync uses the quick check method which only transfers files that differ in size or last-modified time. As you report that the sizes are unchanged, that would seem to indicate that the timestamps differ. Two options to handlel this are:
Use -p to preserve timestamps when transferring files.
Use --size-on... |
Userprofile Robocopy Backup |
Hi I need to backup the userprofile of multiple PCs, can I use some global commands like %Userprofile% for my Code to backup the logged in User. Also why isn't my script properly backing up the folders which I've told him. The output is currently not accesable it just says you need more rights to open these folders.
... |
The equivalent of %Userprofile% in PowerShell is $Env:UserProfile.
robocopy "$env:UserProfile\desktop" $Destination\$Folder *.* /mir /sec
robocopy "$env:UserProfile\pictures" $Destination\$Folder *.* /mir /sec
robocopy "$env:UserProfile\documents" $Destination\$Folder *.* /mir /sec
If your script is complaining about... |
How do I recover from a botched histedit in mercurial? |
I botched a histedit, and I'd like my original changesets back:
$ hg histedit
3 files updated, 0 files merged, 1 files removed, 0 files unresolved
saved backup bundle to /home/jla/solar_capture/.hg/strip-backup/ca681926dad2-a0fffac7-backup.hg
There appears to be a backup bundle, how do I make it as if I'd done
$ hg h... |
1
hg unbundle /home/jla/solar_capture/.hg/strip-backup/ca681926dad2-a0fffac7-backup.hg
Share
Follow
answered May 2, 2017 at 19:33
John Lawrence AspdenJohn Lawrence Aspden
17.3k1212 gold bad... |
bash script multiple rsync after previous has finished |
hi i want to create a backup rsync script, and i want to create a additional copy of the sate of one folder at the beginning of the month and compare the changes to the end of the month my questing:
ho can i run a rsync job after the previous has finished, so i don't delete the backup dir bevor i compared the changes ... |
1
Delimine both rsync commands with && operator.
This operator ensures, that the second command executes only if the fist one is finished succesfully (returns exit code 0).
So, your code will be
if [ $MONTH -eq 1] && [ $DAY -eq 1]; then
rsync -a --forece --ignore-errors -... |
Redis : How to back up redis data from remote to local? |
I have local redis in my ubuntu and remote redis that I am using with aws.
I wonder is there any way I can save up data from remote connection in my local ubuntu.
|
run SLAVEOF host port at your local redis
run BGSAVE to dump to disk
|
Downloading Azure portal OS .vhd as a backup |
I am new to Azure and cloud computing in general. I am about to resize my Linux VM OS disk using:
Update-AzureDisk –DiskName "" -Label "ResiZedOS" -ResizedSizeInGB
But before that, I want to make sure that I don't lose my data for whatever reason. Therefore, I need a backup of my current OS Disk that I am about to e... |
According to your scenario, you could use Azcopy to copy the VHD to another storage account. The data transfer between Azure data center, it cost you only a few minutes. You could use the backup VHD to recreate a new VM.
You could use the following commands.
AzCopy /Source:https://myaccount.blob.core.windows.net/mycon... |
Inno Setup - backup directory tree if exists & restore by uninstall |
How can I backup easily all files (in all subdirectories unlimited depth) which already exists in destination directory for installation, and how can I restore all backuped files by uninstallation?
Thanks in advance.
[Files]
Source: "setupData\*"; DestDir: "{app}"
|
Backup: In yours [Files] section entry, use the external, recursesubdirs, skipifsourcedoesntexist and uninsneveruninstall flags. See Backup files and restore them on uninstall with InnoSetup?
Restore: See also the Backup files and restore them on uninstall with InnoSetup? To restore a directory tree, you will need Dir... |
compacting revisions in an SVN Dump file |
I have taken a dump of my SVN repository, to migrate to another server, and have noticed that one sub-folder in particular which has 15 revisions changing its content is being pulled across as the full number of revisions for the repository.
Is there a way to compact the number of revisions in the dump file?
The fold... |
1
The easiest way (if you know the revisions with "real changes") is:
dump everything from 0:509
dump the 18 revisions with --incremental switch
dumo everything from 603 to HEAD with --incremental switch
transfer everything to new server and load them in same order into n... |
MongoDB monodump succeeded but can't open the archive |
I have a script to backup my MongoDB. However the script was working fine until now. Every time I run the script, it'll say "done dumping...(x documents)". But when I try to access it from FileZilla, it says
/home/ubuntu/temp/bcd.gz: open for read: no such file or directory
/usr/bin/mongodump -h $HOST -d $DBNAME -u $... |
Apparently there was an extra character at the end of my command in the script that windows doesn't show it. I just opened up the script on Mac and saw the extra character and removed it. Boom, got it working!
|
Java simple backup and restore Class |
I'm working on a school project with a simple backup and restore class in Java. It has two methods, one for backup, and one for restore, that break the file down into sized chunks determined by the program, and using the restore rebuilds the file from those chunks.
Specifically, I am stuck on the backup part:
I wa... |
Your code doesn't reset the b value when your if run.
You create a new file, but the b variable continues to increase, so your if will execute only once.
try add a line inside your if that set b value to 0.
if (b == splitFileSize) {
output.close();
i++;
numberOfPieces--;
output = ne... |
How to deal with Gitlab Backup Files |
I have a lot of different files in my backup directory for Gitlab.
Some of them are 26MB which seems like a whole backup.
Others are 10KB. Which one should I keep and why is there two different kind of files ?
ls -al backups/
total 34880
drwxr-xr-x 3 uhal uhal 4096 Mar 2 02:00 .
drwxr-xr-x 10 uhal uhal 409... |
1
Lightweight tar are null backup. They contain only a .yml backup report saying there was nothing new to be done.
Heavy tar are full backup. They are generated only when something has changed.
A change within Gitlab can happen because of an automatic process. This is wh... |
Pushing file to git that is not directly in repo with some sort of link |
I am not entirely sure what this feature is called, so I am just going to describe it, and perhaps someone can tell me how to do this.
I have a git repo called mySettings where I store my settings for various editors like Sublime.
Currently I am manually copying files between my local system and that repo, and then pu... |
One of the best way is to use the symlinks. But currently git doesn't support using symlink files as a normal file, see: How does git handle symbolic links?.
So the best way to do this is using the git hooks. just create a hook to execute the commands to copy the contents of the required files to the repository folder... |
titanium backup - Stuck on seaching application data [closed] |
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
... |
I managed to fix it by reinstalling the ROM from scratch.
After a full wipe, and a complete fresh re-install, it started to work perfectly (still on android 7.1.1)
|
Does IBM Compose provide a REST API to trigger a backup? |
I want to programmatically trigger a backup in an IBM Compose database.
Is there a REST API available for that?
|
From within Bluemix, no - there is no API available. Compose is looking to make the traditional Compose UI available from within Bluemix over the course of the next few months, at which time it will be. The documentation for the API can be found here: https://apidocs.compose.com/ (linked from https://help.compose.io)
|
Backup android sqlite database to google drive [closed] |
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
... |
1
Documentation of Auto-Backup feature
https://developer.android.com/guide/topics/data/autobackup.html#EnablingAutoBackup
Share
Follow
answered Jan 10, 2017 at 17:34
arjunarjun
3,55444 gol... |
exclude table with autopostgresqlbackup |
Is there a way to exclude a table from autopostgresqlbackup backups ?
I see the --exclude-table flag in pg_dump, but is there a clean way to use it in autopostgresqlbackup ?
|
1
OK, so apparently, there is no clean way.
You can hack your way to it by editing /usr/sbin/autopostgresqlbackup :
OPT=""
to
OPT="--exclude-table=my_table"
but that might get overwritten when the package is updated.
Unfortunately, this variable is not exposed in the c... |
Finding a File and taking backup in the same directory |
Lets say i have a folder /tmp and you have some files abc.sh, kbc.sh, cdg.sh, nope.py, kim.r, uio.csv. Now if you are copying new versions of abc.sh, kbc.sh from a different server like your prod but you want to take your existing file backups in the same folder like abc.sh-12-08-2016, abc.sh0, abc.sh1, how can you do... |
1
find * -type f -exec cp {} {}_date + "%m-%d-%Y" \;
Above command will take back up of all files in that folder.
If you want to only take back up of .sh files
find * -type f -name "*.sh" -exec cp {} {}_date + "%m-%d-%Y" \;
Share
Follow... |
Delete file in target directory only if not present in source directory |
I am trying to make a program to backup my files. I have the copy portion working already but I would like to delete any directory or file not present in the source directory from the destination directory.
I am thinking something along the lines of:
// Get existing files in destination
string[] existingTargetFiles = ... |
I have made a few changes to get relative file path then combine it with source dir, using file class for file deletion etc..
I have changed the order to file deletion first ,otherwise it will cause consistency issue of file not found because folder was deleted before that in some scenario (as you are getting files li... |
Handle different restore scenarios with Cassandra 2.2 |
I have a Cassandra 3-node cluster and a keyspace created with a replication_factor of 3.
I make my backups for this keyspace with nodetool snapshot. As recommended by Cassandra documentation, to make a global backup I start it with a cron job on each node (3 nodes are NTP synchronized). I'm not using incremental snaps... |
1
I've troubles to understand when I should use refresh and/or repair commands in those scenarios
According to documentation you should perform refresh when you restore data from a snapshot, the 2nd and the 3rd scenarios.
I suppose repair is not required step for all thre... |
What is the best way to back up an Xcode project |
How is it recommended I back up my Xcode projects? Is there a way to backup the whole thing to the web to be pulled from in case the files are somehow deleted from my computer?
|
Not sure which is the "best", it must surely depend on your budget, development environment, resources, time, etc etc. Here some ideas, I list them in the order of preference, starting with the FREE.
"Git" in effect creates a backup, even if strictly speaking its version control tool.
You can create and save it on y... |
Disaster Recovery - Restoring SQL Server database without MDF |
Given the following (hypothetical) scenario, how would one best backup/restore the database.
Daily doing full backups @ 12 am.
Hourly doing differentials 1 am, 2am etc
Transaction log backups on the half hours, 130am, 230am etc
I am also storing the active .ldf file on drive X and the .mdf on drive Y.
Also ... |
You are asking,how to take TailLog Backup when you don't have access to MDF files..
This works only if your database is not in BulkLoggedRecovery model or your log doesn't have Bulk logged transactions..This has been covered in depth here: Disaster recovery 101: backing up the tail of the log
Here are the steps in ord... |
public_html folder replaced with public_ftp in cPanel |
I created an ftp account for a user to access the public_html folder and used filezilla to login in and double check to make sure it took me to the right directory which it did not. I went back to double check the path and found that the public_html folder is gone and is replaced with public_ftp. Obviously there is no... |
When you delete an FTP account you can choose to delete it's home folder. If you delete an FTP account that has public_html as its home folder that would mean you deleted the whole site. This may not be exactly what happened in your case but if not that, something similar.
public_ftp is typically used for anonymous u... |
How-to restore duplicity/duply backup from unknown archive |
I've multiple virtual machines and every machine is backuping to the same backup storage (GlusterFS; it's mounted using fuse), but into different backup directories. /var/www/ for example will be backuped to this directory:
/mnt/backup/server001/duply/www/
/mnt/backup/server002/duply/www/
/mnt/backup/serve... |
1
yes,
if you have local or otherwise access to this GlusterFS storage and eg. assuming it would be mounted under /mnt/backup/ you can list and restore from it using the file target.
i'd suggest listing/grepping first and when you found the backup repo containing your folde... |
Use child-item result object in array |
I encountered a problem in PowerShell in listing its child items.
$file = Get-ChildItem \\compname\c$\folder\ -Recurse -Filter *filename.txt* |
Select-Object -Property DirectoryName, FullName
When I try this to get its objects it was empty:
$file.FullName
or
$file.DirectoryName
If there is a many files in ... |
1
You're still using PowerShell v2 or earlier. These early versions don't support member enumeration on arrays, which would allow you to access properties of array elements via the array object itself. Instead you get an empty result, because the array object does not have ... |
File History first backup never succeeds. Nothing happens |
I have an Windows box, which originally had Windows 7 installed and was later on upgraded to Windows 10.
On Windows 10 I added a 3TB hard disk for backups. I set up the new hard disc as backup target and started the first backup. This now is some days ago, but whenever I check the status I get following message: File ... |
1
Finally found the solution. Keep in mind, I use a german version of windows. Hence, the menu point names may not be accurately translated.
In the control center > system and security > file history > extended settings
There is a link to the event viewer related to backup ... |
Backup postgresql database from 4D |
I am using 4D for front-end and postgresql for back-end. So i have the requirement to take database backups from front-end.
Here what i have done so far for taking backups in 4D.
C_LONGINT(i_pg_connection)
i_pg_connection:=PgSQL Connect ("localhost";"admin";"admin";"test_db")
LAUNCH EXTERNAL PROCESS("C:\\Program Files... |
Unneeded commands in your code
If you are using LAUNCH EXTERNAL PROCESS to do the backup then you do not need the PgSQL CONNECT and PgSQL CLOSE.
These plug-in commands do not execute in the same context as LAUNCH EXTERNAL PROCESS so they are unneeded in this situation.
Make sure you have write access
If the 4D Databas... |
SQL Server 2014: Restore old backup |
I'm trying to restore an old database backup in SQL Server 2014, and I'm getting the error below:
How can I go through this?
I'm importing the backup in the follow way:
Tasks -> Restore -> Database
Select device option -> Pick up the .bak file
At the options select Overwrite
ok
Thanks in advance.
|
1
You are trying to restore a SQL Server 2000 database on SQL Server 2014. This is not supported.
You will need to restore your database on an instance of SQL Server 2005, 2008 or 2008 R2 first, then back it up from there, then restore the new backup on SQL Server 2014. Mi... |
How can I get backup of my 1 year old site? |
I had a good active site about an two year ago, I was running that site actively, I wrote more than 300 articles on that site and was getting 1k+ traffic daily. Last year, I was too busy with study and other stuff, I totally forgot about site and even didn't renewed the domain and hosting. My hosting account got locke... |
I would assume your only hope is to try and find your site on the Wayback Machine. The Wayback Machine is an amazing resource that has been archiving the broader internet since the late 90's. Its not a perfect copy but for static sites like blogs with enough traffic to have been noticed by the web spider that archives... |
restoring a repository from a .git folder [duplicate] |
This question already has answers here:
How to restore the project if I have only .git folder?
(2 answers)
Closed 6 years ago.
Due to how a (now deceased) server was organized, we ... | ERROR: type should be string, got "\nhttps://git-scm.com/book/en/v2/Git-on-the-Server-Setting-Up-the-Server\nIn the side of the server:\ngit init --bare\n\nMeaning:\n\nYou create the repository\n\nIn the side of the client:\ngit remote add name_url\ngit push origin master\n\nMeaning:\n\nYou include the remote server\nYou push your local content to the server\n\nAlternative you can copy the project that you have in your client (including the .git) into the server. This is not a very good idea if the version of git is not the same in the server and the client.\n" |
Get the database backup using PHP |
following is the code I found over the internet to get the database backup using php. code works fine in the local host. but when it is in the online server, it does not works properly. it creates a database .sql file but the file is empty. what is the problem?? I think it is a server permission problem. how can I mak... |
Why are you trying to reinvent the wheel ?
$folder = __DIR__ . DIRECTORY_SEPARATOR . 'Backup_Files/';
if (!is_dir($folder)){
mkdir($folder, 0777, true);
$date = date('m-d-Y');
exec("mysqldump --user=... --password=... --host=... DB_NAME > {$folder}db_backup_{$date}.sql");
}
|
Is there a way to turn on automatic backups in Wakanda 11? |
Or is it neccessary to do it by code, ie. using a worker to do a backup with "ds.backup();" every 24 hours?
Edit: It seems like activating the the database journal also does a backup.
But is there a setting for backup interval, etc.?
|
1
In the current release you need to code it yourself but the next Enterprise release of Wakanda ( 1.1.0 ) will contain a new administration console that you can use to run jobs periodically. It should be released in a couple of weeks.
Note: subscribe to the newsletter and ... |
No resource identifier found for attribute 'fullBackupContent' in package 'android |
Why am I getting this error?
No resource identifier found for attribute 'fullBackupContent' in
package 'android
Here's a snippet of my manifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ...
<application
android:allowBackup="true"
android:icon="@drawable/time_machine_launc... |
Installing Android SDK 23 fixed my issue.
|
mysqldump (Errcode: 2) trying do backup from java in linux (server) with wildfly |
I'm working in a linux-server with wilfly.
when java is train to execute the command:
String command = "mysqldump -h "+ hostDB +" -u "+ dbUsername +" "+ dbPassword +" "+ nameDB +" -r \""+ path + backUpFile+"\"";
Process process = Runtime.getRuntime().exec(command);
it's returning mysqldump: Can't create/writ... |
I found the solution:
in linux server works different that windows,
we need use
//for linux server
String[] cmdarray = {"/bin/sh","-c",command};
process = Runtime.getRuntime().exec(cmdarray);
|
Backup using the Script Tool of h2 via shellscript in Git bash |
I try to save my h2-db-tables into a zip-file by using the command:
java -cp C:/User/Adrian/.m2/repository/com/h2database/h2/1.4.189/h2-1.4.189.jar
org.h2.tools.Script -url jdbc:h2:~/test -user sa -script test.zip -options compression zip
but i always get the error : java : cammand not found.
I'm working with git bas... |
Open a regular CMD windows, and type java -version.
If this work, then from that same CMD window, cd to where git is installed, and type git-bash: that will open a bash session that should inherit the PATH from the CMD window. Confirm by typing java -version.
Finally, cd to where your project is, and type your java co... |
Shell script to backup using input list |
I am building a script to back-up files and directories in my linux.
These backups are stored in the map Archive.
Now i use in my source a specific directory but i have e.g.
input.txt with these directories:
/Downloads
/etc/var
or also with specific files
/etc/log/test.txt
Using /Downloads or /etc/var it must also b... |
1
Using tar for creating an archive -T option can be used to take files from an input file.
input.txt:
/Downloads
/etc/var
/etc/log/test.txt
script:
#!/bin/sh
archive="example.tgz"
dest="Archive"
path="input.txt"
tar czf $dest/$archiv... |
use svnsync for backup |
I want use svnsync for create a back-up copy of my svn repository.
The svnsync command replicates all versioned files, and their
attendant svn properties. It does not copy hooks or conf
directories from the source repository, so I will need to do those
manually.
I have wrote this batch script for create the backup rep... |
There are several options that are better than using svnsync:
When you need to have a live backup or DR server for your Subversion repositories, consider deploying a replica (slave server) using the Multisite Repository Replication (VDFS) feature. For the more detailed getting started guidance please consider the KB1... |
Linux: Finding Newly Added Files |
I am trying to obtain a backup of 'newly' added files to a Fedora system. Files can be copied through a Windows Samba share and appear to retain the original created timestamp. However, because it retains this timestamp I am having issues identifying which files were newly added to the system.
Currently, the only way ... |
Try using find. Something like this:
find . -ctime -10
That will give you a list of files and directories, starting from within your current directory, that has had its state changed within the last 10 days.
Example:
My Downloads directory looks like this:
kobus@akira:~/Downloads$ ll
total 2025284
drwxr-xr-x 4 kobus... |
Python - Using Fabric with Sudo |
I'm pretty new to python and fabric and I am trying to do a simple code where I can get the output on two hosts that uses sudo, although I keep getting an error.... Can anyone help me out with what I might be missing ?
My code:
from fabric.api import *
from getpass import getpass
from fabric.decorators import runs_onc... |
It looks like your sudoers file is preventing you from running that command as sudo. Check your /etc/sudoers file and read the sudo documentation.
Also "-l" isn't a valid command. sudo takes -l as an optional flag (which lists commands allowed by the user). But Fabric's sudo appears to be taking unknown strings and ro... |
RethinkDB backup data |
I read article about backing up data, but some issues is not clear for me:
What happens with data, that will be changed after backup process
was started?
Does backup operation work only on current machine? Or will it collect
data from all shards in cluster? If only on current, should I start
backup process on all ser... |
If a row changes while the backup is going on, the new value may or may not be in the backup. This is generally OK because RethinkDB only offers single-row atomicity anyway, but if you have a workload where that isn't OK then your other options are to use a filesystem that lets you snapshot the data on disk, or to a... |
What is the relation of backup image size and actual database size in Netezza |
May I know what would be roughly ideal ratio between full backup image size and actual database size in netezza.
Few things I know is,
it depends on actual data in the tables, internal compression, number of tables in the db etc.
|
1
Data stored "at rest" in Netezza are compressed, as they are also in backups. However, the compression algorithms & methods employed are different. That being said, one can typically expect that the size and compression ratio of the two to be roughly the same.
S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.