Hot answers tagged

5 votes

Restore tarsnap archive into specific folder

From the manpage: -C directory (c and x modes only) In c mode, this changes the directory before adding the following files. In x mode, change directories after opening the archive but ...
arvidj's user avatar
  • 203
5 votes

How can I restore an LVM snapshot of a larger volume on a smaller disk?

The data you are trying to restore has a size of 500 GB, and that will not fit on a logical volume of size 24 GB. You can be more selective about what you're transferring, or you can allocate more ...
Jason Owen's user avatar
4 votes

file copy using restore privilege

You have to use Robocopy with a /MIR switch as it will preserve all the NTFS permissions. https://blogs.technet.microsoft.com/filecab/2008/07/31/robocopy-mir-switch-mirroring-file-permissions/ ...
BaronSamedi1958's user avatar
3 votes

Network Administrator

I would definitely consider using a config management tool like ansible, salt, chef, or puppet (or others I can't think of just now). If you have network access, it not only allows you to template ...
iwaseatenbyagrue's user avatar
3 votes

How to recover from - can't read superblock error - after using lvreduce command (CENTOS7 XFS)

SmallLoanOF1M, thanks for the suggestion. Because in my case I didn't need to recover the data on the /home logical volume (I appreciate this is an exception for most), I followed the instructions ...
Steve Bushnell's user avatar
3 votes

How can I speed up a MySQL restore from a dump file?

This will do: mysql --init-command="SET SESSION FOREIGN_KEY_CHECKS=0;SET UNIQUE_CHECKS=0;" -u root -p < Backup_Database.mysql
Matiss's user avatar
  • 31
3 votes

Restore files from Bacula backup with missing server

You have multiple options to recover from this, but it should always be possible to rebuild the database of the backup content with the bscan program. Depending on how your system is configured and ...
Sven's user avatar
  • 99.3k
3 votes

Can a Hyper-V VM made from a Server 2012 R2 domain controller backup be used to replace the physical domain controller if it fails?

Absolutely not. A Domain Controller is not a stateless server; quite the opposite: it hosts the Active Directory database, where everything about the domain is stored, including authentication for ...
Massimo's user avatar
  • 71.1k
2 votes

Windows Server 2012 R2 Essentials Restore fails to Mount

Install patch KB3045682 https://support.microsoft.com/en-us/kb/3045682 .............................................................................
genestet's user avatar
2 votes
Accepted

In terms of stability, who beats whom? VPS or dedicated server?

The service provider will have more to do with uptime than the technology its running on. I'm gong to avoid recommending any one provider but generally speaking you get what you pay for. That $5 or $...
digitaladdictions's user avatar
2 votes
Accepted

Suse: Restore Packages List from /var/adm/backup/rpmdb/Packages-20160323 .gz

I found this solution: #!/bin/bash # get-package-list-from-backup.sh set -e set -x cd /var/adm/backup/rpmdb for gzipfile in *.gz; do ( base=${gzipfile/.gz/} dir=/var/tmp/rpmdb-restore-$base mkdir $...
guettli's user avatar
  • 3,763
2 votes
Accepted

Deleted the /etc/bind folder, any way to get the contents back?

sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install bind9
Anubioz's user avatar
  • 3,717
2 votes

Azure Site Recovery. How to Increase Backup/Restore Speed?

ASR has a few potential bottlenecks. Whether or not you can speed it up depends on where this is. If your on-prem process server is low on resources, that can cause slow replication. Identify what ...
MDMarra's user avatar
  • 101k
2 votes

Network Administrator

My question is what selinux things to I have to do to be able to restore an almost entire source template server onto a remote server from a tarfile? First of all you need to determine that SELinux ...
user9517's user avatar
  • 116k
2 votes

redis instance restore using dump.rdb is not working

found what the problem was . need to start the new server with a specific dump file as a parameter when starting the service though the "dir" parameter is set in the config file , it's written that ...
alonzo's user avatar
  • 31
2 votes

Puppet, server migration, restore existing persistent data

Using Configuration Management (CM) tooling such as Puppet, Ansible, Chef or Salt needs a fundamental change in the way you think about configuration. If you think about configuration as a one-time ...
Craig Watson's user avatar
  • 9,660
2 votes

Puppet, server migration, restore existing persistent data

If you do this for fully automatic disaster recovery purposes, it might be worthwhile, but otherwise you have to think about if you actually save anything by investing the significant amount of time ...
Sven's user avatar
  • 99.3k
2 votes

How can we restore deleted Organization Unit or OU in windows server 2012

If you enabled AD Recycle Bin before, you can restore the OU first, then all the objects. Here is a step by step tutorial. Basically, you need to restore the OU: Get-ADObject -filter 'msds-...
Swisstone's user avatar
  • 6,870
2 votes

How do I generate a regex to restore a specific folder for "btrfs restore"?

btrfs restore scans through the filesystem starting at the root and compares each entry to the regex. If the path matches the regex and it is a directory, it will scan that directory. If it's a file ...
Richard Pistole's user avatar
2 votes

Recover amanda backup without configuration files

(I realize this is a rather old question but there are other options.) To be pedantic, it is not necessary to have Amanda even installed to read backups off those tapes. Having Amanda just makes it ...
user207998's user avatar
2 votes
Accepted

AD Domain Controller Won't Boot

Do you have only one domain controller? If yes, you should not; and this is why. If your single DC doesn't work anymore, congratulations, you have just lost your Active Directory domain (unless you ...
Massimo's user avatar
  • 71.1k
2 votes

How can I restore an LVM snapshot of a larger volume on a smaller disk?

The only way that you could restore your data is to use a block device that is compressed (e.g VDO, loop-device over a compressed file system like btrfs and ZFS). However even if your data is only ...
Mircea Vutcovici's user avatar
2 votes
Accepted

CA Recovery in Active Directory

This is one of the reasons why it's highly recommended that you do not have a CA running on a domain controller. I have one on a DC in a legacy domain right now and it is a maintainability nightmare ...
LeeM's user avatar
  • 1,423
1 vote
Accepted

How to properly backup and restore mariadb master/slave

In case of a complete disaster (loss of both servers), you restore the backup to a new master and the new slave, and use CHANGE MASTER to get it replicating. If you only lose the master, you switch to ...
Gordan Bobić's user avatar
1 vote

Accidentally Uninstalled Mysql Database But I have Database Folders How do I restore the database

Uninstall MySQL on staging. Test the procedure there first. Take a backup of the data. I would be very surprised if a install script deleted existing databases. But make a copy anyway just in case. ...
John Mahowald's user avatar
1 vote

MS SQL 2008 R2 disaster restore

Consider NOT restoring the system databases. Just restore the data containing files, and hopefully someone was smart enough to make them contained (so they contain the users).
TomTom's user avatar
  • 51.9k
1 vote
Accepted

How to restore subdirectory of a duplicity backup?

duplicity backups are no file system, so you cannot navigate them this intuitively. from the duplicity man page --file-to-restore path This option may be given in restore mode, causing only ...
ede-duply.net's user avatar
1 vote
Accepted

Azure Database For MySql - How to see the successful backup and restore logs?

There are no backup logs. The backup of PaaS databases is handled as part of the platform and the logs for this are not accessible to the user. The assumption is that if you are going to use a PaaS ...
Sam Cogan's user avatar
  • 39k
1 vote
Accepted

Restoring a System State Backup

It's a domain controller. Do not restore a system state backup unless the system the backup was taken from is dead and offline and will not be recovered. THERE CAN BE ONLY ONE. Just install Windows ...
longneck's user avatar
  • 23.2k
1 vote

Azure RM: Restore a VM without deletion of the VM

Azure Backup doesn't replace the running VM but creates a new one. Unfortunately, post-restore you have to reconfigure network settings to make sure they match with the old one. You also need to add ...
Bruno Faria's user avatar
  • 3,824

Only top scored, non community-wiki answers of a minimum length are eligible