General :: Backup /etc And /boot Before Making Changes?
Mar 6, 2011
/etc is where your gnu/linux stores it's configuration. Its function is similar to the Windoze registry. As you install, uninstall, and work with various programs, /etc changes. Sometimes, things change that make your system act unexpectedly.
1) open a console
2) su enter root password
3) # mkdir /var/backup
4) # vim /usr/sbin/prep4change replace "vim" with text editor of your choice
5) cut and paste the following short script
[code]....
Next time you are about to install, remove, or change something, just issue prep4change as root. If the unthinkable ( but expected ) should happen, and things stop working correctly, you have your /etc and /boot already backed up. Your backup will be located in /var/backup You can also $ tail /var/backup/notes to see why you made what backup Again, this isn't the most elegant, but it's simple, and it works!
View 3 Replies
ADVERTISEMENT
Jan 29, 2011
Is it possible to make an ISO of the distribution already installed? Well actually, I have made various changes according to my choice and don't want to do them again if I have to reinstall.
View 14 Replies
View Related
May 27, 2011
I have s script that standard users use to back up usb drives to lto4 tapes.it asks for a JobNumber and sends an email upon success.I recently expanded it to use Multiple tapes.my specific Q is if the system reaches the end of the tape it happily mentions in the terminal that one needs to put in a second tape.what i would like to do is send an email that --It needs a second tape.( it presently sends an email upon successful compleation - so you see the only way a person knows that they need a second tape is if they
1-- know that the drive they are backing up is < 800GB (lto4)
2-- they do not get a completion emails and the think to walk to the basement and see the request for a second tape.
I wish for an email that would tap them on the shoulder that : " you need to put in a second tape "so -- if i know the exact syntax that shows in the terminal - which is:Prepare volume #2 for `/dev/st0' and hit return:then can i test for that somehow?
View 10 Replies
View Related
Aug 24, 2009
I'm syncing a server over the internet with rsync, but it only works for a few hours before the backup fails with a "No route to host". I can restart the job and it'll will pick up where it left off, but is there an automated way to do this, or protect against a connection failure? I have about 170GB to copy over initially, but I can only get through about 4-5GB before the connection drops--manually restarting the sync everytime it drops will make the initial backup take days...
View 2 Replies
View Related
Oct 25, 2010
I am making a backup of ubuntu repos using debmirror. but i excluded lucid-security lucid-updates and lucid-backports. i selected dist=lucid and downloaded main,multiverse,universe and restricted. if i dont download updates, secuirty and backports am missing anything important. i am into development
View 2 Replies
View Related
Mar 13, 2011
Mintppc has a nice little backup tool for making a backup record of all the packages you have added since the initial linux install. Does Ubuntu or anyone else have such a backup utility? It would be nice to have it all the packages documented somewhere in case I ever have to reinstall and figure out what packages I installed.
View 3 Replies
View Related
Jul 20, 2009
What exactly allows me to create a custom tailored *.img file to backup the contents of a partition?
This is my problem: My wife wants me to backup some Windows NTFS partitions on her working computer so she can use them on a different computer.
This is my solution attempt:Boot the Gentoo based System Rescue CD. dd the contents of the data partitions into *.img files on an external usb drive. dd the contents of the *.img files onto the new computer.
So far that worked, but there's one annoying problem: one partition on the work computer is 50GB big, but contains only 8GB of data. It would be really nice if I could just dd out those 8GB of "real data" instead of having a 50GB *.img file that is mostly empty. Likewise, it would be cool if there's an easy way to match the contents of the *.img file to the size of the new partition. The new data partition is 100GB big so it would be cool if my backup were automatically scaled to that size so I don't have an 8GB partition and an additional 92GB partition.
View 7 Replies
View Related
Apr 15, 2011
I have purchased a 500Gb seagate external hard disk.I partitioned it using the xp disk manager. I have now 320gb primary NTFS partition for accessing & storing data through XP & kept 144Gb of unallocated space for installation of Redhat Enterprise Linux 6.0. I have the dvd of RHEL 6.0, now please guide me through the process. I know I have to boot from my dvd drive. But i don't know how to manually allocate & partition the swap, and how much to mount under '/' & under'/boot'.. And also how to set it up for the dual boot.
View 5 Replies
View Related
Dec 22, 2010
im doing a school assignement and i cant find any info about this anywhere. How do i make sure that a module is loaded into the kernel upon boot?
View 2 Replies
View Related
Apr 8, 2011
I have a Western Digital 1Tb WD10EAVS Caviar Gp Hard Drive. It does not have an operating system installed but it have alot of my important files. The hard drive began making a clicking sound and when I boot up my computer I see my other drives and the sata slot for that drive remains blank. Can any one help me recover or fix my hard drive
View 1 Replies
View Related
Aug 29, 2010
I dual boot windows and ubuntu on a particular machine and I'm looking for a comprehensive backup solution. Basically I'm after a single tool to clone the entire drive and do incremental backups with little to no concern for the underlying os.
My first instinct is to set up rsync to do the back up from ubuntu and just mount the windows partition when it does its thing so it backs that up too. Does that sound reasonable or am I missing something? At face value this seems like a reasonable answer, but I can't help but feel like something is "off" with that approach.
View 3 Replies
View Related
Feb 19, 2010
what is the best working software which could backup dual system.Host system is XP pro...and Backtrack on the second one.Is Acronis(xp based) will works?
View 4 Replies
View Related
Sep 15, 2009
I am trying to create a backup script that will back up a single folder for a class i am in. I was wandering if I could get some help. If possible I would also like to know how to write a script that can encrypt that same file . I will be putting the back up in my /home/usr/Backup directory. I am not trying to back up my whole system just a single folder. I am using Fedora 11
View 2 Replies
View Related
May 21, 2011
I'm just setting up a partition on a seperate HDD in my system. I plan to use the partition to backup the important files on my main HDD (to guard against HD crash).
The question I have is about where would be the typical location to auto mount this partition? Which would it be normal to go for:
1. /backup/
2. /media/backup/
3. /mnt/backup/
4. /home/chris/backup/
View 7 Replies
View Related
Sep 13, 2010
Can some one give me a sample of a crontab for backing a directory please, System is Ubuntu 9.04Quote:
#!/bin/bash
# this file is an automated backup script, backup.sh.
# this backs up my domain site.
[code]....
View 7 Replies
View Related
Feb 14, 2010
i recently installed crunchbang to try it out, but it made it the default os on boot. how do i make ubuntu the default again?
View 9 Replies
View Related
Jan 7, 2010
I have my pc setup with 2 hard disks, my main HD is running Win XP and the second HD is loaded with 9.1, the disk I loaded 9.1 on is a 40 gig HD, I wanted to try out 9.1 as a clean install before mucking around with dual boot. I really like 9.1 and now I want to change the way I am setup so I can run a dual boot. Right now the way it is I go through GRUB to choose either linux or win, it defaults to Linux, I removed the disk the 40 gig drive the other day and when I do I can't boot up, I get an error message telling me something like Grub not found (Duh right I took the HD out) I want to reset my comp so the 40 gig drive is visible to win and do the dual boot with 9.1 inside of windows.
My questions are this.
1. How would change the current boot config. so that windows loads and I don't have to use GRUB to choose my O/S.
2. How would I go about removing 9.1 from the 40 gig drive and leaving it blank so I can utilize it for windows.
my main concern here is getting the pc set back up so I can boot into windows without using the GRUB menu, I'm on my work pc and getting some greif from my boss on this. I'm worried that if I just remove 9.1 from the 40 gig drive that I won't be able to load windows, like when I physically removed the HD from the pc.
View 8 Replies
View Related
Apr 30, 2010
i am trying to make a windows XP boot flash drive for one of my copmputers. i delete all the partitions on my flash drive and run "dd if=/dev/cdrom of=/dev/sdb" and ubuntu can read it and its got all the contents of the CD but windows machines say i need to format it and no computer can boot off of it. did i do something wrong?
View 5 Replies
View Related
Jun 16, 2010
I am already using ubuntu 9.10 for over six months but now i want make my system dual boot with windows as well. How do i do it. there are no partitions on my HDD all current space is dedicated to ubuntu only.
View 5 Replies
View Related
Jan 10, 2011
I cannot, for the life of me, get nmbd to run at boot on Ubuntu Server 10.10. On all other variations I've run, it's just automatically running. How does one go about this?
View 2 Replies
View Related
Feb 3, 2011
I have 10.10 64-bit on a Fujitsu T900. the hard drive has windows seven as well (64-bit). The win7 is the orginal from the manufacture. the boot log originally had (in this order): Win7, Windows Vista (about 100 MB not sure why but can't remove), recovery partition. I put ubuntu on after those three. Some times when the computer goes into suspend mode from ubuntu it will not wake up after wards. the only option it to power i down manually. when it comes back up there is now a second reference to ubuntu in the boot log. this has happened several times. there are now four valid references to ubuntu in the boot loader. I need to remove three of them, but i'm concerned that removing them will compromise ubuntu. Also I'm not sure where the boo log in windows seven is.
View 1 Replies
View Related
Sep 22, 2010
Basically, I just installed Ubuntu 10 on a laptop into a dm-crypt'ed logical volume. That seemed easy enough. Is there a good method for making a dual-boot installation with both Linux and Windows on fully-encrypted partitions/volumes?
View 2 Replies
View Related
May 19, 2011
i used sle11 before.my brother makes it's bootscreen diffrent like walking penguins on the screen.can i make the same thing on opensuse 11.4?
View 9 Replies
View Related
Feb 27, 2010
Ubuntu 9.10 64bit I can't find netinstall image but find minimal CD. Please advise how can I copy it to USB stick to make it boot?
View 3 Replies
View Related
Mar 28, 2010
I am dual booting windows and ubuntu. I bought a external hard drive to use as a backup solution. I like the idea of my external HD being an exact copy of my internal one so that if my internal one completely fails I can just plug my external one in and carry on (it's an internal drive in an enclosure).
I notice a lot of people use rsync to backup their home directory. Can I use rsync (or something else) to back up the whole drive including the Windows partition.
View 5 Replies
View Related
Nov 12, 2010
I installed Xubuntu 10.10 on a 16 GB pendrive with full disk encryption using the alternate installer. The installation process was quite time consuming so I made a backup booting from the standard live CD with something along these lines
dd if=/dev/sdb conv=noerror,sync | pv | gzip -c -9 > foobar.img.gz
The pendrive booted fine for a couple of days and BTW it was quite good performance-wise, but I decided to scrape it off and start from the backup, so I run
gunzip -c foobar.img.gz | pv | dd of=/dev/sdb conv=sync,noerror
Now upon boot I am getting error: hd0,msdos1 write error. After a while the login screen appears: Unlocking the disk /dev/disk/by-uuid/58a8... (sdb5_crypt) Enter passphrase: So I enter it, get the OK message cryptsetup: sdb5_crypt set up successfully only to get the following prompt No init found. Try passing init= bootarg. BusyBox v1.15.3 (Ubuntu 1:1.15.3-1ubuntu5) built-in shell (ash) Enter 'help' for a list of buil-in commands. (initramfs) How to fix it? Is it possible to do backups of encrypted systems this way or do I have to use different tools for backup operating on the filesystem level for example?
View 2 Replies
View Related
Jun 14, 2010
best/simplest way to back up my triple-boot machine, which has Karmic 32-bit, Karmic 64-bit and Windows 7 (64-bit) installed on 3 equal slices of the internal 1TB disk. There are a total of 6 partitions (1 primary+1 logical partition each for the two Karmic, and 2 primary partitions for Win7), and I would like to back it up on an external disk such that the whole system can be restored as-is by writing over the disk. I guess this means correctly backing up data+partition table+MBR, and I would also prefer backing up only the used portion of the disk (rather than creating a 1TB mostly empty image file).
To my knowledge the only way to reliably do this is with "dd" command, but I have never used it ("fsarchiver" seems to be the next best option, but it cannot back up MBR yet; and "partimage" does not have ext4 support). As described here and here, I should run the following commands from a live boot:
1) To back up entire data in compressed format (using 1MB read block to speed up the process):
dd if=/dev/sda bs=1MB | gzip > /backup/image.gz
2) To back up MBR+partition table (stored within the first 512 bytes of the disk):
dd if=/dev/sda bs=512 count=1 of=/backup/image.mbr
3) To restore data:
gzip -dc /backup/image.gz | dd of=/dev/sda
4) To restore MBR+partition table:
dd if=/backup/image.mbr of=/dev/sda
View 8 Replies
View Related
Oct 1, 2010
I have decided to remove Windows from my disk, but I want to keep my current install of Ubuntu.
One possibility that sprang to mind was to make an image out of my Ubuntu install.
Since I dual boot, the disk is numbered "SDA2" (extended) "SDA5" (root) and then there is Swap. (Windows is the first part of the disk)
One question sprang to mind:
If I make an image out of it, what happens to the numbers? Will there be any conflicts? Not to mention the question of which program would be best (and easiest to use, preferably with a GUI, since I want to save time, not learn code).
And if I would go for a binary dump to an external disk (to put it back when the destination disk is empty), would the same problems arise? Or would that bring even more problems, like the issue of the swap partition, which I would have to receate, since it wouldn't fit on the "dump disk"?
This is all because the whole thing sounds very similar to placing the ubuntu partition to the front of the disk, which, as I have been told, is not a good idea.
View 9 Replies
View Related
May 15, 2010
I wanted to know if there is variant of RollbackRX (www.rollbackrx.com.au) freeware or payable. RollbackRX used to Backup/Restore whole system changes in less than 1 minute before OS boot. And it does not consume a lot of free space.
View 9 Replies
View Related
Apr 22, 2010
I am researching how to make an effective backup on Ubuntu Server. This server will have Vsftp, VPN, Samba stuff , many other added packages +many printers, many users + data. I know I can use tar for the data /u no problem. 1. I was testing tar on the /home directory on a few user directories. I then created a new directory and did a restore of the users directories on it. I noticed the /home/user owner and group were root. The files in each directory remained the same. This gave me concern. If I had a crash and had to restore these to a new HD. I would have to change these, what else would I need to change? 2. Since I have many config files, how do I back up them? I know I can do a dump, but then users shouldn't be on the system. The system files will change as they add users, printers, etc, and asking users to not work, is not really an option while dump is running. I thought I could do a tar on whole system. (cron late at night .. not as many users) Then in event of crash of HD.
1. Boot from live cd
2. format the new drive
3. tar back in the whole system
Will this work right? Is there something I am missing?
View 3 Replies
View Related