Ubuntu Servers :: Backing Up A Server To An External Drive?
Jul 17, 2010
I have an Ubuntu server running Lucid. I'd like to be able to back up the hard drive in the server to an external hard drive. I try to plug in a drive via a USB port and it doesn't appear to mount automatically, as it does on the desktop version. Questions: 1) What/where should I be looking for to see if the drive is mounted? (I've looked in /dev and /media; no dice.) 2) What's the mount command I should use to manually mount the external hard drive? 3) What backup commands or programs, other than rsync, are recommended? (Nothing against rsync.)
View 5 Replies
ADVERTISEMENT
Feb 6, 2010
What is the recommended way to backup all files to an external hard drive? Should it be done through CLI or should a third party program be used?
View 2 Replies
View Related
Apr 6, 2010
I've been thinking about it and I have a few ideas how I could do this...
I could always just image the drive...
Code:
dd if=/dev/sda of=/media/EXHD/bakup_$(date +%F).iso
Also; I could use rsync...
Code:
rsync -auv --delete / /media/EXHD/bakup_$(date +%F)/
[Code]....
I've been doing mostly "dd" images...but was wondering if I'm just wasting time backing up a mostly empty HD (256GB and only 5% is used...so dd-ing seems like kinda of a waste).
View 2 Replies
View Related
Feb 27, 2010
I've been running my little server at home for a few months now, and I've noticed that Webmin has detected that I'm in need of over 100 updates. I'm a bit scared to run the updates because everything is working just fine right now, but a part of me still wants to run some of the updates.Now I know backing up the server would be a good idea to do before this happens. This server is a media server with videos, music and pictures taking up the majority of the hard drive space on the server. I just have one partition on the server, outside of the swap partition. I would like to back up everything on the server except the videos, music, and pictures, because if even an update messes with the server, I could always retrieve those, and the external hard drive I'm going to back up to wont be big enough to hold everything anyways.
if I were to backup up everything except for those directories that hold my videos, music, and pictures, and something were to go wrong, if I were to restore all of those, would I then be back to the state my system was at when I backed up? I've never done a back up and restore in a linux environment before. I just want to make sure that just doing that will be enough, because the last thing I want to do is hose my server after taking several weeks to get it to the working state that its at.
View 9 Replies
View Related
May 18, 2010
have had a server running for a very long time using Ubuntu Server 7.10, and I think it's passed time that I upgraded.I'll be installing fresh, and I've already backed up /var/www (as well as a home directory with a few files)I've only used this as a Web / SFTP / file server. Might there be any other directories that would be good to backup? I set it up so long ago and have made a few changes along the way.
View 1 Replies
View Related
Feb 3, 2010
I'm looking to setup a home server for the purpose of backing up and storing the files on our multiple (Windows) computers. What kind of server should I set up? Samba? Lamp?
View 5 Replies
View Related
Apr 21, 2010
I am attempting to be careful in case my system crashes, and although highly unlikely my first question is if there is a way to first compress my Linux Partitions. After running the diskutil command in OSX's Terminal, I basically end up with this poartition scheme:
Quote:
Macintosh HD = 130GB
disk0s3 = 1MB
disk0s4 = 30GB
Linux Swap = 1.3 GB
I am sure there is a way in the Terminal to first compress disk0s3, disk0s4, and Linux Swap, and then output the compressed partitions into my external Harddrive. I have already read some of the suggestions that only /HOME, /etc/fstab/, list of installed packages, /opt, and /var/cache/apt/archives/-where all installed packages are stored, is what I should backup. But, please correct me if I'm wrong. Wouldn't it take quite a while to install all those packages again in case of a system failure. Or would it just be easier to untar all of them in their directories once Linux has been reinstalled. The closest command I have found so far in being able to achieve this is:
Quote:
sudo tar cvf - files | (cd target_directory ; tar xpf -) The above code is very suitable for what I am looking for because it enables you to copy files into another location by using the tar command where you would create In my case the new location would be my external harddrive. My external harddrive already has its own Linux partition which I am able to mount in Linux and that Linux sees as free space.
View 7 Replies
View Related
Mar 7, 2010
Output of blkid:
Code:
/dev/mapper/Tsunami_LVG1-LV_home: LABEL="home" UUID="cad22752-aca8-49c7-94b1-f08423819705" TYPE="xfs"
/dev/mapper/Tsunami_LVG1-LV_swap: TYPE="swap" UUID="5e1918d5-3a07-4dc5-8216-c4c0f4d1e341"
/dev/mapper/Tsunami_LVG1-LV_root: LABEL="root" UUID="cb276fc0-ced3-4926-81b8-757e5b68c4e5" TYPE="ext3"
/dev/sda1: LABEL="boot" UUID="d00cac4f-6873-4188-b6e2-902740454ba1" TYPE="ext2"
/dev/sda5: UUID="T2wwpd-lG9L-IrHz-BfAx-pVse-3C9a-rBjT1R" TYPE="lvm2pv"
/dev/sdc1: UUID="504A0C654A0C4A64" LABEL="SEAGATE300" TYPE="ntfs"
/dev/sdd1: UUID="F8C85616C855D38A" LABEL="Expansion Drive" TYPE="ntfs"
/etc/fstab contents: .....
Code:
fuse: failed to access mountpoint /media/tb1: Input/output error
View 2 Replies
View Related
Jul 16, 2011
I have a home server running from a Kubuntu install. I am using a partitioned external hard drive to store media. I have been suffering from power outages and I have discovered my external drive will not automount. How do I get my drive to mount at boot?
View 3 Replies
View Related
Mar 25, 2011
I have been trying to use fstab, writing a script in /etc/init.d to mount my external ntfs usb drive. I have had absolutely no luck and I have tried just about every solution I could find on the web except for writing a udev rule which I have never done so I am not exactly sure how.
My solution for the interim is to put the mount command in the rc.local file. That works, but I don't understand why I can use fstab to mount it. Putting it in the fstab gives me errors like "unknown file system" or just "An error occurred during mounting of drive" and then the booting stops. I tried using both ntfs and ntfs-3g.
View 5 Replies
View Related
Jun 19, 2011
I have attached a 1.5 TB external hard drive to my new Ubuntu server. I mount it in /media/external. I used sudo mount /dev/sdx# /media/external but sdx# keeps changing. I added a line to fstab to mount it permanently but after couple of our it unmounts itself and /media/external is empty. It is in vfat format but webmin shows it as ntfs.
Quote:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
[Code]...
View 9 Replies
View Related
May 29, 2009
I have a server which currently has a samba share for a printer and my home directory. Both have been working fine for a while now. I have a drobo (which is like a little USB RAID machine) connect via USB to the linux box. While trying to share it via samba I get weird messages from my windows machine (see screenshot). I have tried to share multiple folders on this drobo and no luck, all the same result.
I also tried a symbolic link, no good.
Here is a screen shot
http://aivila.com/temp/screen.jpg
Here is my smb.conf file:
Code:
[home]
path = /home/savona
read only = no
[Code]...
View 12 Replies
View Related
Apr 28, 2010
I am trying to use my external hard drive to store webpages and on the webpages it is uploaded to the folder. When i navigate to the address it says it is forbidden. I also noticed that it would not let me upload files to the folder it says i do not have permission. Can someone help me get passed the barriers. The hard drive is ntfs.
View 7 Replies
View Related
Aug 22, 2010
i have set up my Apache2 server and i have this question. Because my netbook (eeePC 701 4g surf) has a very small SSD Drive (4GB) is it possible to set the default directory of apache to be an external USB Drive? And if it is, how?
View 2 Replies
View Related
Feb 9, 2010
How would one go about backing up a hard drive? I want my Windows hard drive to be backed up, so that I can restore it onto the hard drive if the hard drive was blanked.
If this hard drive is formatted and linux is installed on it, I want to be able to restore my current Windows partitions (Win 7 and Win XP) and probably the boot loader. I am sure this is possible, but what would be the best way to go about it?
View 5 Replies
View Related
Jul 28, 2011
So, I recently acquired a second hard drive (1.5 TB) and I wish to partition Ubuntu 11.04 with Windows 7. I've set everything up properly and using the Disk Utility in my System Settings I've created a 1 TB partition which I want to use for Linux. I think it has the proper partition type but how do I exactly go about transferring all my files from the hard drive I'm using now to the partition I would like to have?
View 2 Replies
View Related
May 24, 2010
In a few hours I'll have a new 500GB Sony laptop, filled with the usual Sony rubbish which I'll promptly be replacing with Ubuntu or Crunchbang or something. However, first I want to make a full clone of the drive (including recovery partitions), should I wish to return it to Sony or sell it on in its factory state.
The problem is that the only backup drives I have are less than 500GB - the biggest I have is 250GB or so! So I need to backup and compress on-the-fly.
What's the best way to do this? Presumably dd piped into gzip would do the trick, or does anyone have any other suggestions to accomplish this?
View 3 Replies
View Related
Dec 16, 2010
I want to securely backup my 80G HD, but doing a complete backup takesforever and slows down my machine, so I want to backup just 1G per day. Details: % First hurdle: on the first day, I want to backup the "first" 1G of the hard drive. Of course, there really is no "first" 1G on a hard drive.% After 80 days, I'll have my whole HD backed up... assuming none of my files ever change, which of course they do. So the backup plan/program must also catch file creation/changes as they come along. % The backups must be consistent, in that I can restore my system restoring the backups sequentially. In other words, "dd if=/harddrive" probably won't work.
% The backups should encrypt file contents AND names, but I don't see this as a major hurdle. % Once the backup has backed up everything (even changed files), it can re-backup the first 1G on my hard drive. Even though this backup is redundant, that's OK, because I always want to be backing up something (eg, if I'm backing up to optical media, the older media might start going corrupt). Is there a magic backup plan/program that does thisIn reality, I want to do this for multiple machines drives each, but think that solving the above will solve the general
View 4 Replies
View Related
Jan 26, 2010
I am having on trying to backup my crashed laptop with ubuntu 9.10 when i double click on my hard drive, it says "unable to mount location" and it says "unable to mount location" a job is pending on /dev/sda2 when i right click on my hard drive and select mount.
View 2 Replies
View Related
Nov 17, 2009
I would like to set up a system for backing up files and even possibly using it to keep music on and listen to it over the network. I am wondering which would be better to use a separate FTP server or buy one of the NAS enclosures and a couple of hard drives to put in it. I am assuming that the NAS would be accessed via NFS. I have never run an FTP server and I have never had used NAS.I am just looking for pros and cons to each one. I would just like opinions as to which service (FTP/NFS) would be better for this task.
View 4 Replies
View Related
Jul 22, 2011
I just started playing with iscsi and have some issues.
This below works great (I can connect to this new device from my clients):
Code:
tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2011-07.home.joma:jomamgmt01.data
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/sdb
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
[Code].....
The backing-store does not get added.
View 3 Replies
View Related
Jan 14, 2009
I have 2 ubuntu's: 1 on my ineternal hard drive, 1 on my external
When I startup without my ext drive =>GRUB error 21.
And when I plug it in I can choose: the standard ubuntu kernel is the one on my external, and the original one is listed under other...
I'd like to be able to startup without external hard drive and make the ubuntu on my internal drve the standard.
View 14 Replies
View Related
Jan 13, 2010
I am looking for a solution to mirror a directory on my companys computer that runs in windows to an external ubuntu server on the internet.
View 7 Replies
View Related
Dec 8, 2010
A week ago I purchased an VPS. The first few days I was having trouble to set up an outgoing connection on the VPS. Eventually it turned out to be some misconfiguration of the server where the VPS is hosted on.Since then I have installed the apache server, but I'm still not able to access the apache server from an external computer. I already have contacted the provider, but they haven't replied yet. To speed things up I was hoping someone could check my configuration to be sure nothing is wrong with it.To be sure I posted all configuration and information that I think would be important. Please contact me if you need more information.
View 2 Replies
View Related
Jan 8, 2010
I need to get a backup copy of a huge directory on one of our RHEL servers. Rather than hook the external USB drive up to my PC and manually copy it all across the network, can I just plug it in to one of my USB ports on the server and rsync it?I know how to do the rsync, I just don't know how to get the USB drive to show up when I do a df -h and how to properly remove it before unplugging it from the server. this is a live server, so I can't go playing around and possibly mess something up.
View 14 Replies
View Related
Feb 1, 2010
share an external USB NTFS drive on my home network. The drive is attached to my desktop box running Debian Lenny. It's accessible on the desktop. I have a directory on the drive that I would like to make accessible to a Windows XP laptop. Read-only would be fine. The laptop has wireless access to the network.
View 8 Replies
View Related
Jun 22, 2011
I have a web server configured on FC13 (will be upgrading to 14 soon. 15 doesn't support my video card, so that will have to wait).I have it configured with a "name" via dyndns.org, and I can get to it with this name if I am on my home network (192.168.x.x), however if I try to get to the same site from any other location (such as my iphone when not on wifi), it just times out.'ve checked the iptables, and everything seems OK. I know it's not an issue with httpd since the service starts and runs with no problems.Firewall is configured to allow port 80, and my hardware firewall will forward port 80 to my FC server.
View 4 Replies
View Related
Jul 14, 2011
The problem is this: My movie collection is growing that large that it no longer fits on the 3TB storage I have available for it in my server.therefore want to start using external disks, but as I don't want to waste electricty I want to switch this drive on only when I want to watch a movie which is on this drive. This drive will be connected to my server running Fedora 15 x64. The movies will (most likely) be played by a machine running XBMC on an Ubuntu minimal install (10.04). Currently I use NFS to create a mount on this machine to my media folder.The question: How can I best setup this external drive and shares etc so to have these movies available from my XBMC machine when I switch on the drive, but nothing crashing when the drive is off (while the XBMC machine stays on)?
View 8 Replies
View Related
May 2, 2010
OpenSUSE 11.2 server, Gigabyte GA-MA790X-UD4P sda for system, 3 ext4 partitions, working fine.sdb promise RAID1 for data, 1 ext4 partition, working fine.sdc is an eSATA docking station for data backup, 1 encrypted ext4 partition -- here lies the problem.
This configuration has been functional for months until I decided to add two more external drives (sdc) to rotate through backups. I had difficulty with encyption on the first new drive and eventually decided to start over. Using the gui Yast Expert Partitioner, I deleted the single partition. That began a real nightmare...
Since deleting the partition, the system detects drives inserted in the docking station, but does not report them (including a different fully functional drive and a brand new unused drive). I have tested all drives on other computers and they function perfectly. I have rebooted the system several times while troubleshooting this issue.
Could not recreate the partition on server (since it does not recognize the drive), so I used Gparted on another computer - it all went without a hitch, formatted ext4. But when I placed the drive in the dock, the drive still was detected but not recognized.
Details:
BIOS lists the eSATA drive
Entering Yast Expert Partitioner, error message follows:
The partitioning on disk /dev/sdc is not readable by the partitioning tool parted, which is used to change the partition table.
You can use the partitions on disk /dev/sdc as they are. You can format them and assign mount points to them, but you cannot add, edit, resize, or remove partitions from that disk with this tool.
Yast partitioner shows drives: sda, sda1, sda2, sda3, sdb, sdb1 sbc is not listed.
# fdisk sdc results in: Unable to open sdc
# dmesg | grep tail reports:
[48442.370779] sd 0:0:0:0: [sdc] Unhandled error code
[48442.370793] sd 0:0:0:0: [sdc] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
code....
So how did partition deletion cause this issue, and how do I correct the problem? It is possible that my difficulties encrypting the first new drive are related (it's not my first time doing it successfully). It seems the problem is in the Kernel or configuration. I have invested many hours in forums and on google - tried dozens of possible fixes. I'm beginning to suspect system corruption or a bug, however all other system functions are working perfectly.
View 5 Replies
View Related
May 16, 2010
how would I backup a specific package. Really all I want is the configuration files.
the package I'm talking about is mumble-server, could I say rsync all the files that were installed, then if I wanted to drop it in just copy those back over?
If I had to wipe the installation and reinstall, could I install that package again then drop my backup copy back over it?
Dpkg tells me these are the files it installed.
Code:
dpkg-query -L mumble-server
/.
/var
/var/log
[Code].....
View 1 Replies
View Related