General :: Full System Clone Snapshot Using Rsync?

Dec 11, 2010

I have automated backups running on my ubuntu box using rsnapshot (rsync) basically following this tutorial. My concern is how to restore if everything is lost. Since it does not seem that I can backup the entire drive and that I have to choose individual folders and some like proc/ cause problems.

Currently in my rsnapshot.conf I have (see below). Is there a way to just clone the entire drive? Or should I not do this? Questions:

1, Can I backup in a way such that it is a clone of the drive so that it can be swapped with the current drive?

2, If not yes to clone, If I had a total drive failure would I install a basic ubuntu and then replace all the files with the backups?

3, Anything I might not know about that I should.

[Code]...

View 1 Replies


ADVERTISEMENT

Server :: Rsync Execution - With Crontab - Have Given Full Path To Rsync Too

Apr 12, 2011

I have a tiny shell script to rsync files between two servers and remove the source files.

This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.

But the same script doesn't work, when I try to automate it through crontab.

I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.

As I mentioned earlier, manual execution works like charm!

When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.

View 6 Replies View Related

General :: Clone A Running System?

Jan 8, 2011

I'm thinking about cloning a system without having physical access to its HDD. Is it possible to simply copy the contents of the filesystem (using ssh/scp) to a freshly formatted HDD (maintaining the source fs-type and -geometry)?

View 14 Replies View Related

General :: Clone Or Copy Entire System To External Bootable HD?

Sep 5, 2010

I have a 16GB Ubuntu Webserver running on a Transcend SMART CF chip (Yes I know all the reasons not to). I want to move that entire system (OS, Files and structure) to an external bootable HD that will probably be closer to 100GB. What's the easiest way to do this and have it be plug and play. By which I mean I can then plug the drive into a new system and boot it up just as it was running on the old system.

View 1 Replies View Related

General :: Rsync Incremental Backups Rather Than Full Backups?

Nov 12, 2009

How do you get Rsync to do incremental backups rather than full backups? At the moment I have a script that will create a backup folder (if it doesnt already exist) then copy the source files into the backup directory with the command

rsync $VERBOSE --exclude=$TARGET/ $EXCLUDE --exclude '/Ls-wtgl1c8/**' -rt --delete $source/ $TARGET/$source/ >> $LOG_FILE

Target is where the files will be backed up to Sources is the dir(s) to be backed up Exclude files is the list of files not to backup
log file is where the output will be saved to. At the moment it only does full backups, but I would only like to do incremental, how would this be achieved? Am I missing out an option in the Rsync that is required.

View 9 Replies View Related

Ubuntu :: Rsync And Full-disk Backups - Failure Takes Too Long

Mar 20, 2010

I've been using dump/restore for backups, for quite some time. It's worked fine, but the process of recovering from a HD failure takes too long. What with eSATA and external drive docks, what I'd really like is to use rsync to maintain a current clone of my entire system drive. That is, start with a full disk clone, and then use rsync to keep it current.

I've seen plenty of instructions on how to do this with a directory tree, but I've seen none for doing it with a copy of the entire disk. If, for example, I copy /etc/fdisk, then the copied disk would have entries with the same UUIDs as the original disk. Which would mean that if the clone disk were to be bootable, its partitions would need the same UUIDs as the original disk. Which they would be, if the cloned disk started as a full-disk clone, I think. Am I wrong? But that means that when the clone disk was active, I'd have partitions with duplicated UUIDs. Is this going to cause problems? When I boot, will I get the correct partitions loaded?

View 4 Replies View Related

General :: Rsync Error - Read-only File System - 30

Jan 4, 2011

I regularly rsync directories to an external usb drive. Recently I've started getting errors which look:
blah blah:Read-only file system (30)

The external usb drive has two partitions (ext3 and fat32) and I rsync to the ext3 one. The rsync command is
rsync -ahi --delete /home/mike/some_dir /media/usb_drive

People have reported this error with faulty usb cables but everything was working fine until recently so it seem unlikely a usb cable would suddenly wear off.

View 6 Replies View Related

Fedora :: Clone Drive - Tools Do Full Drive Copy?

Mar 22, 2010

I have a 120 gig drive that I'd like to clone before it fails completely. I was thinking I'd pull the drive from the server and build a separate machine that has it's own os installed and the source and destination drive. Does anyone know of any linux tools will will do a full drive copy? Additionally, If possible, I'd like to move to a larger drive. how I'd migrate the 120 drive to a 400 or so? 1 idea I have is to install os on 2 new drives to where it they will boot, Then boot with one and copy source to the newly created destination drive.

View 6 Replies View Related

General :: How To Take Snapshot In RHEL5

Mar 22, 2010

I want to make a snapshot of RHEL5 about my current situation ,how will I do that ?

View 3 Replies View Related

General :: .snapshot Filling The Nfs Disk?

Jul 19, 2010

I have a lot of data on a nfs store external to an Ubuntu machine. I've had problems with the storage becoming full and have spent a very long time deleting files to get absolutely nowhere! Over 25GB of deletions on the 80GB disk has only cleared 1.5GB of space...

You can see below the hidden .snapshot directory, the disk usage for the nfs-store is coming out at 97GB when the disk is only 80GB in size, and the two directories I want on the disk are about 22GB in size.The .snapshot directory appears to have been made on Friday, I'd like to know if I can:

1) find out what command ran to create/update it

2) re-run the command to update the directory or remove the directory

Code:

ideasadmin@ideasadmin-desktop:/nfs-store$ ls -la
total 20
drwxr-xr-x 5 500 500 4096 2010-07-16 17:35 .

[code]......

View 3 Replies View Related

Fedora :: Any Full Form Of System For General Knowledge?

Mar 14, 2009

Is there any Full form of LINUX ?

View 4 Replies View Related

General :: Full System Backup From Ext To NTFS Disk

Oct 11, 2010

I wonder if I can backup files from an ext partition to a ntfs partition and keeping all kind of metadata and file infos?!

With other words:

Can I backup a full linux system from a ext file system to a external ntfs partitioned disk using rsync -a (keeping all file permissions)?

Is something getting lost of a file (like permissions or anything... flags...) when copied / rsynced from ext to ntfs?

The thing is, that when I restore the stuff back from ntfs to ext, can I still use my system properly?

And can I backup files like photos from ext to ntfs without loosing any meta data?

Or asked more in general: What is the difference of a file on a ext partition compared to the same file on a ntfs partition?

View 3 Replies View Related

Debian :: Clone A System That Uses Spanned HDs Via LVM?

Oct 1, 2010

i recently installed Debian Lenny on my dad's EEE 900A. I initally tried Ubuntu's 10.04 version but it gave me problems with the WiFi function keys. Debian took me a while to configure based on the excellent Debian EEE wiki, and everything's so much saner now.

I installed Debian Lenny using LVM2, spanning the files over the built-in 4 GB SSD and a plugged-in 8 GB SDHC card. I followed the instructions in this wiki to set it up. I was wondering if there's a way to easily clone this system so that if my dad accidently screws it up the in the future, he would be able to restore it back easily. Obviously, he would have to make backups of his documents, etc. on a separate drive so he can restore them back after the cloned image with the basic drivers, partitions, apps, etc. is restored.

Here's the system's info. There are three partitions on /dev/sda (the SSD) and one partition of /dev/sdb (the SDHC card). /dev/sda3 and /dev/sdb1 have been combined to create a Volume Group, called 'vol-1'. 'vol-1' has two Logical Volumes - 'root' and 'home'. The file system on all partitions is reiserfs.

[Code]...

View 3 Replies View Related

General :: Copy - Take A Snapshot Of A Directory As It Was At A Particular Point In Time?

Mar 4, 2011

I have a directory containing a lot of result log files (directory size ~ 4GB), and a set of processes running that keep on writing to these files. To be able to correctly analyze the results at a later time, I want to copy the whole directory to an archive destination, and I cannot stop the processes.

I want a copy of the directory as it was at a particular point of time. As the size directory is huge (which means it takes about 40 seconds to copy) and some of the files are being written to, a normal cp -r does NOT give me a snapshot at a particular point in time, rather a snapshot of files spread over some 40 seconds. This is not good enough.

Is there a way to get an exclusive lock on the directory and all its components while copying?

View 5 Replies View Related

General :: Compare The Files Differences Between 2 Virtualbox Snapshot?

May 20, 2011

How to compare the files differences between 2 virtualbox snapshots?

View 1 Replies View Related

Fedora Installation :: Clone System To SSD LVM To Ext4?

Feb 9, 2011

I am currently running x86_64 F14. I am replacing the HDD(s) with one SSD and one HDD. What I want to do is a fresh install but pull all of the packages over from current install. I am planning on backing up /home and all of that so I can just rsync it. One of the issues though is that I currently use LVM. LVM does not support TRIM yet for the SSD. So I was just going to use ext4 and an extended partition for all of my filesystems. Can I just make a kickstart file that will have all of my current installed packages in it and pass that to the install? Seems like I remember that from my RHCE class. Sadly I don't use kickstart enough to remember.

View 1 Replies View Related

Ubuntu :: Backup Or Clone The System Daily Using Ssh?

Feb 13, 2010

I have ubuntu 8.4 can i backup or clone the system daily using ssh ??

View 3 Replies View Related

Ubuntu Servers :: How To Clone System On Different Hardware

Feb 19, 2010

I am getting a new server and would like to avoid the typicall install process of OS and applications.How can I clone my actual server on a new one that has different hardware?

View 9 Replies View Related

Ubuntu :: Best Choice To Clone Or Backup System?

Mar 2, 2010

I am new Ubuntu. I have a new Dell Mini10 running that I have configured and running. I want to clone or backup the system at it's current state. I have been looking at the options and Clonezilla seems to be recommended often. Are there other choices that are easer or better? My real goal is to make a bootable DVD that will restore my system back to the point it was cloned.

View 2 Replies View Related

OpenSUSE Install :: Mirroring Repositories With Rsync: Module Opensuse-full Is Broken?

Dec 1, 2010

The rsync module "opensuse-full" which worked well so far seems currently broken. It tries to mirror a huge number of additional stuff (factory?) but fails with "permission denied". Any place where I could report this?Command:

Code:
rsync -rlpt -hi -stats rsync.opensuse.org::opensuse-full /drive/repo
Errors:

[code]....

View 5 Replies View Related

OpenSUSE Install :: Tool For Making Clone Of System?

Jun 3, 2010

I have a computer, that has the bad luck to be equipped with buggy hard-drives. Actually, they need a firmware update. This firmware update will probably destroy the data on them. I also want to add one or two other hard-drives to the RAID. What I am looking for, is a tool, that makes a clone of the system as it is now. And then, when I will have upgraded the disk firmware and added the other hard-drives, I just clone the system back from the clone.

View 9 Replies View Related

Debian Installation :: Clone Root System And Make It Bootable?

Aug 10, 2010

Running Squeeze here. I added a new SSD to my system. Root is /dev/sda3 and I want to clone that system to the new SSD on /dev/sdb1 and make it bootable. I tried:

mount /dev/sdb1 /mnt/ssd_root
cp -dpRx / /mnt/ssd_root

then

update-grub

or

grub-install --recheck --root-directory=/mnt/ssd_root /dev/sdb

but to no avail. I cannot get the new system to be bootable and available through Grub. Part of the problem is that I do not know my way around Grub v2 so well, I could probably manage quite well with legacy grub. So, whats the easiest way to clone a system and make it bootable on another partition? Should I be using debootstrap, and importing/exporting the package list to install the same packages on the new system as the old? or is using cp -dpRx to copy the old ok? How do I make the new system boot?

View 9 Replies View Related

Ubuntu :: Possible To Copy / Paste An Exact Clone Of A System Already Installed?

Dec 30, 2010

Id like to know if its possible to somehow copy an EXACT copy of my linux from one computer to "paste" on another!

And how would I be able to do this?

View 3 Replies View Related

Software :: CentOS 5 - Mirroring System Using Rsync

Mar 30, 2011

I believe it was rsync was the tool. I have a box running CentOS 5. It has a 250GB HD in it. I have another drive with the exact model. Currently it has a as a said a 250GB IDE drive. I want to shutdown the machine, install this other hard drive and set up a cron job that will backup my main drive at times that I set. This way if the main drive fails, I do not loose all the data and have to rebuild the server from scratch as I have been custom configuring it for years. I can't remember if there was an issue with the main drive being mounted to back it up or not. I have looked at some of the how's on rsync but they seem to only talk about using another server for this. If I shit down the box, install the new drive, and the box boots back up, is it going to ask about that drive or what do I need to do to get rsync going and does it partition the drive as such? And can I do it this way. This way if the main drive fails, I can just swap the drive and be on my marry way.

View 2 Replies View Related

General :: VMware Snapshot With VMware Tools Loses Network On Restart - Host XP - Guest Fedora

Oct 3, 2010

I have been using VMware Player for some time to host Fedora VMware images on Windows XP. I have been using Fedora 11 and 12 (both 32 and 64 bit) and recently started to use Fedora 13.

I use as a base the images provided by thoughtpolice. http://www.thoughtpolice.co.uk/

I usually install VMware tools and also keep the images updated (yum update) which sometimes changes the kernel.

I have recently had problems with the snapshots not having a network when I restore them. So far I don't have the problem with Fedora 11 and do have it with Fedora 12 (but used not to). I do have it with Fedora 13.

In each case the problem goes away when I uninstall the VMware tools and comes back when I install them again.

One of the symptoms is that SElinux complains about not being able to do something with /var/run/vmware-active-nics.

It looks to me that something is incorrect in the actions being taken when the snapshot is being restored. It does not happen every time and sometimes the network restores itself.

The network can be restored by rebooting the image.

View 12 Replies View Related

Ubuntu :: Copy Over Network (rsync,scp) Slows Down System

May 27, 2010

I have a newly installed Dell Optiplex 755 with Ubuntu 10.04 (64-bit) and I am having serious issues with network copying. Whenever I start rsync och scp with larger amounts of data my system becomes practically unresponsive (all types of apps grey out) until those processes are completed. Cpu stays at below 10% and I have lots of free memory and such .

View 3 Replies View Related

Fedora :: File Transfers (cp, Mv And Rsync) Slow System Tremendously

Aug 24, 2011

When ever I transfer large files using cp, mv, rsync or dolphin the system will slow down to the point that it's unusable. It will sometime hang completely and not accept any input until the file is transferred. I have no clue what could be causing this problem but I know it shouldn't be happening.I am using Fedora 15 (2.6.40.3-0.fc15.x86_64) with KDE 4.6. have a Phenom II 955 processor, 6 GB of system ram and the OS and swap file is on an 80 GB SSD. Copying files in the SSD doesn't cause any problem, but moving files between my other two large HDDs causes the extreme slow down. Using htop I can see that my system load jumps to between 3 and 4, but my RAM and CPU usage stays low during the transfer. Here are two commands that take about 10 mins to run and make the system unusable while it's running. It usually transferring around 2-20GB worth of data during the transfers:

cp -a /media/data.1.5/backup/Minecraft/backups/* /media/data.0.5/backup/Minecraft/backups/
rsync -a /media/data.1.5/backup/ /media/data.0.5/backup/
/media/data.1.5/ is the mount point for a 1.5 TB internal SATA drive, and /media/data.0.5/ is the mount point for a 500 GB internal SATA drive.

View 6 Replies View Related

Ubuntu Servers :: Advanced Rsync - Make The Rsync Set Or Keep The User And Group Affiliations?

Nov 17, 2010

Thought I'd post it here because it's more server related than desktop... I have a script that does:

[Code]....

This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?

View 6 Replies View Related

Ubuntu :: Can't Rsync Gmail / Run Rsync --recursive --times --perms --links --delete?

Jan 7, 2011

When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/

where Documents/exclude.txt is

- /Downloads/
- /Desktop/books/

the files in those directories are still copied onto my USB.

And...

I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.

View 9 Replies View Related

Ubuntu :: Start Rsync In Daemon Mode Every Time System Turns On?

May 6, 2010

I have a Linux box, running rsync, only problem is, I have to turn it off at night. What I want to do is turn it on and when it turns on, rsync will already be running in daemon mode rather then having to run rsync daemon. Does anyone know the solution? I'm sure its simple, I just cannot figure it out

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved