Backing up is the process of making copies (a backup) of data which may be used to restore the original after a data loss event.

learn more… | top users | synonyms (1)

0
votes
2answers
1k views

Check integrity of a dd backup

I just made a backup of an entire hard drive (50GB) over ssh via: dd if=/dev/hda | buffer -s 64k -S 10m | ssh myuser@myhost "cat > ~/image.img" What's now the best way to check the integrity of ...
4
votes
4answers
1k views

Best way to make encrypted backups while preserving permissions to a windows file system

For my home network I wanted to buy a NAS which supports disk encryption and NFS since it is important for me that the backup is encrypted but also that it preserves owner, groups and permissions ...
4
votes
3answers
9k views

How to copy between two remote hosts using tar piped into scp from remote server when behind a firewall?

I'd like to transfer a directory between two servers, but compress the directory on the remote host before transfer, and then uncompress to another host. I'm sure it's possible to pipe everything all ...
2
votes
3answers
675 views

Copy/backup all dirs containing files matching a regexp

I would like to do a backup where I recursively go through a dir structure and only get directories with files whose names matching a particular regexp. I would like to keep the directory structure, ...
1
vote
1answer
1k views

Clear unused space with zeros (btrfs)

How to clear unused space with zeros ? (I am asking for tool for btrfs filesystem) I'm looking for something smarter than cat /dev/zero > /mnt/X/big_zero ; sync; rm /mnt/X/big_zero Like ...
1
vote
3answers
1k views

dd command for windows filesystem

dd is a handy tool for backing up a whole drive or filesystem in some situations. Now I am thinking about what if I use the tool for backing up Windows file-systems / drives (Windows 2003/2008) which ...
3
votes
3answers
2k views

How to clone/copy all file/directory attributes onto different file/directory?

I want to copy the attributes (ownership, group, ACL, extended attributes, etc.) of one directory to another but not the directory contents itself. This does not work: cp -v --attributes-only A B ...
14
votes
4answers
7k views

Clear unused space with zeros (ext3,ext4)

How to clear unused space with zeros ? (ext3,ext4) I'm looking for something smarter than cat /dev/zero > /mnt/X/big_zero ; sync; rm /mnt/X/big_zero Like FSArchiver is looking for "used space" ...
5
votes
3answers
1k views

Resume interrupted copying process

How to resume securely and reliably process of copying file $A into backup location $B done with pv "$A" > "$B" or cat "$A" > "$B" ? (let's assume file $A is very big, e.g. LVM2 snapshot file) ...
4
votes
2answers
283 views

How to backup entire xen dom0 (on debian)

How do you go about creating a bootable backup ISO of my computer (dom0)? I have tried remastersys and this backs up everything but Xen does not work properly. LiveCDs also do not work. Does ...
5
votes
3answers
2k views

Migrating a Virtualbox virtual machine into a physical dual-boot system

I'm running a Linux Mint 12 virtual machine in Virtualbox. I would like to move it into a dual-boot setup with my Windows 7 installation. I have lot of settings in there, and apps installed, and my ...
3
votes
5answers
7k views

System image of running Debian system?

Is it possible to backup a running Debian system to some kind of image file that could simply be written back to another hard disk using dd in case of failures of the original (backed up) debian ...
2
votes
1answer
161 views

Overwrite file and apply file system rights of overwritten files?

I backed up some linux configuration files to a windows machine, so the file system rights were lost. Now I would like to restore my backed up configuration by overwriting the configuration currently ...
3
votes
3answers
128 views

Taking complete backup of System and then restoring?

I am using kubuntu 10.04 and now I want to install Mac on my PC. I have my data scattered in over 200 Gb and I want take a backup such that with one command all my data is saved into a single file. ...
3
votes
2answers
730 views

On Mac OS X, how to encrypt a small folder and copy that to Google Drive or DropBox?

On Mac OS X, right now I use the following to back up a small project folder to a USB Flash drive: alias a='alias' a dateseq='date "+%Y-%m-%d %H:%M:%S"' a backup_proj='cp -a ~/code/MyProj ...
3
votes
3answers
1k views

Temporary restore LVM snapshot of root

I have a snapshot of the root filesystem that I want to boot with - bring the machine into a state it was a few days ago, run some tests and then go back to where I am right now. I tried editing ...
0
votes
3answers
3k views

Where, in automysqlbackup, do I add mysqldump parameters?

How to stop automysqlbackup's cron.daily script -- as installed and configured from apt-get install automysqlbackup -- throwing the following error: mysqldump: Got error: 1142: SELECT,LOCK TABL ...
6
votes
2answers
282 views

Back up mysql server

I want to backup all databases, users and etc on our mysql sever. I have come across the command mysqldump and believe I can use it like this? (Trying to backup a REMOTE server to our LOCAL machine) ...
7
votes
3answers
4k views

Give user permissions to all files and folders

I want to have a user who has access to all the files and folders on the system. This is for the purpose of using RSYNC on a local machine to backup a remote machine. At the moment we are using the ...
1
vote
3answers
487 views

is it safe to backup ext4 partition with partimage , which is detected as a ext3 partition

I use partimage to backup my ext4 partition, but during backup, the partition was detected as an ext3 partition. So I'm wondering if this can cause something bad.
1
vote
1answer
326 views

Backup from remote server

I'm a novice so go easy. :) If it makes a difference I'm using Ubuntu/Debian machines. I want to back up our dedicated web server to a local location in-house. This is for many reasons - I know that ...
5
votes
2answers
996 views

How to create a snapshot of a physical disk?

I have Windows 7 installed on one of my disks. I want to boot this Windows system in my Xen HVM, but I do not want the changes to be permanent. So I want to create a snapshot of my Windows 7 ...
3
votes
1answer
443 views

HP-UX 9: Backup filesystem using tar

So I've got an HP-UX 9 box that I'm trying to backup, first to a tape with fbackup, to no avail, and now to a folder shared over NFS. I'm using the command "tar -cvf /nfs/Results/backup.tar /" where ...
3
votes
4answers
4k views

Backup of LVM2 logical volume

I'd like to make backup on external drive of LVM2 logical volume in dd manner. Approach I consider is to make lv on extranl drive with identical size copy with dd (Please let me know if you see ...
2
votes
2answers
163 views

What should I teach in my Linux class? [closed]

I'm teaching a basic Unix class using Ubuntu. We've already covered basic Unix stuff such as: bash shell scripting file and directory permissions filesystem hierarchy common commands I would like ...
3
votes
2answers
4k views

How to copy qemu raw images?

I want to backup kvm virtual machines and copy machine's images another path or usb disk? How to copy " qemu raw images"?
3
votes
2answers
3k views

Why can't I copy my DVD with dd?

I tried dd, dd_rescue and ddrescue, all failed. I thought these tools bypass the filesystem and make a bitwise copy. dd is fooled, it finishes but just produces a small file and states it's finished. ...
1
vote
1answer
281 views

Can I get the backup option of cp and mv to work with directories?

--backup[=CONTROL] make a backup of each existing destination file The man page does say that it works on file. It doesn't seem to have any effect on directories. Is there anyway to make this ...
0
votes
0answers
48 views

Backing up to DVD [duplicate]

Possible Duplicate: Splitting large directory tree into specified-size chunks? I have a partition that is about 14G and I need to back it up to DVD in such a way that I can use each disc to ...
4
votes
1answer
602 views

Can an eCryptfs Home Directory Be Backed Up Remotely

The main idea I want to have is a backup script run rsync to copy my /home/.Private/user directory off to another server. This would allow the backup script to have no knowledge of the data, but mean ...
12
votes
3answers
11k views

Is it possible to mount a gzip compressed dd image on the fly?

I like create an image backup for the first time I'm backing up a system. After this first time I use rsync to do incremental backups. My usual image backup is as follows: Mount and zero out the ...
1
vote
1answer
241 views

Backing up chroots for host reinstall

I've had my workstation for a couple of years now and its slowly become a complex beast, taking on many roles for my dev and test work. I have done some research and was thinking of setting up some ...
3
votes
1answer
444 views

Where can I look for backup script?

I want find out where the backup script of a Fedora 8 server is. I haven't found it so far ( my Linux knowledge is very spare). I looked with crontab -l and I only can find a tempdelete.pl. Than I ...
3
votes
0answers
448 views

How to improve this backup script? [closed]

I wrote this backup script. I run rsync, tar and a dump of mysql. I'd like to add some features like email alert or some kind of statistic. Here is the script: #!/bin/sh DATE=`date +%D-%T` ...
4
votes
4answers
550 views

How can I move the entire OS to a different server?

I want to install RhodeCode on a test server at work. However, the internet access is restricted for that server, and RhodeCode has a lot of dependencies (I don't even have Python on that server). So ...
1
vote
1answer
81 views

Back up particular package and its dependencies

It may sound like a silly question, but I'm new to Linux and eager to know if there is any way to do this. Okay, my question is: can we take a backup of a particular package and its dependencies? For ...
3
votes
1answer
3k views

bash force copy over same file

Our sysadmin has created a backup system that creates snapshots of the hard drive. When I try to restore an older version from the snapshot: cp /path/to/snapshots/foo.bar /path/to/folder/foo.bar ...
2
votes
1answer
366 views

Input a list of files & directories to be copied with ditto

I have a short list of files and directories of which I would like to make a flat copy of using ditto in a bash shell. There are approximately 8-10 files and/or directories that need to be copied. I ...
7
votes
5answers
1k views

force copying a corrupted home directory

I have a home directory in a disk that has a lot of corrupted files. I am trying to save most files as possible. I am trying to create a backup of my home directory on an external drive using tar ...
3
votes
1answer
330 views

Faking rsnapshot initial backup

I'm currently using plain and flat rsync to backup my files, meaning I have no incremental backups. A few days ago I became aware of the existence of rsnapshot and after looking at the man page I ...
21
votes
9answers
2k views

How to keep track of changes in /etc/

I would like to keep track of changes in /etc/ Basically I'd like to know if a file was changed, by yum update or by a user and roll it back if I don't like the chage. I thought of using a VCS like ...
5
votes
1answer
2k views

Creating A Bootable Backup Copy Of System Drive

I'm in charge of a Linux fileserver at my workplace, and since this fileserver holds the company's accounting data, I've got to make sure that there are backups. Right now, my main solution is based ...
5
votes
3answers
5k views

Howto read SMS stored on a SIM card?

I have an old phone with a telephone card (SIM card) inside. The telephone has an infrared interface on the side. I want to read out my contacts and stored SMS messages from the phone, either via ...
3
votes
2answers
205 views

Backup selinux system running strict

I have a cron job that is backing up a SELinux system running in strict mode. The problem is that SELinux wants to deny access to to the backup script since it wants access to every single file on the ...
1
vote
1answer
101 views

Backup, without having to reinstall 3rd party programs?

Say I back up the / partition with cpio and the disk fails. Would I have to reinstall all third party programs if I used cpio to restore the / on a new disk? Or is backing / up enough to keep them ...
2
votes
2answers
179 views

What don't I need to backup?

I'm trying to do a simple system backup (with cpio or tar), and I was looking for what I need to back up and found this question. The answer was basically, "it depends on what you're running on your ...
3
votes
3answers
326 views

Some basic questions about dd

I'm working on a system of how to back up partitions using dd and have been reading a lot about it. I have a few questions and assumptions that I would like to ask. These may seem a little noob-ish, ...
3
votes
1answer
3k views

How to take and restore backup with an LTO tape drive in RedHat?

I can take a backup with an IBM LTO tape drive in RedHat 5 using mt and tar, but I can't restore it. I can't see previous backup content. Whenever I try to take a backup, I think that the new backup ...
3
votes
1answer
319 views

Is there a backup tool that recognized renamed/moved files/directories? [duplicate]

Possible Duplicate: Any way to sync directory structure when the files are already on both sides? I'm looking for a backup utility that recognizes files or folders in the source that have ...
5
votes
3answers
2k views

How store in a variable a file list that includes the backslash when needed?

Main question: I am writing a script to perform a backup. I make a list of files in the following way: LISTOFFILES=$(find ~ \( -name '*.[pP][dD][fF]' -o -name '*.[oO][dD][tT]' \)) The variable ...