Linux Backup Archives

Question by shahil: when really should i use tar and cpio for backup in linux or solaris?

Best answer:

Answer by dubhlasz
With tar backups, when you want to restore, you will need to untar the whole .tar file then recover the files in inquiries.

You cant recover a single file from the .tar archive.

With cpio you can recover individual files in the archive.

You might also want to check our DAR archives or even RSYNC as alternatives.

Very good Luck

Add your very own answer in the comments!

Question by kris_rock!: How to backup data to a CD/DVD in Linux?
What are the choices to backup information to CD/DVD from command line interface. Don’t want to use K3B and Nero Linux. Want to backup using “tar” like utility. Please recommend good articles or options. Thanks for assisting me! Please post the command if possible.

Very best answer:

Answer by jerry t
Try this tutorial.
The other hyperlinks have much more information on how to use tar.
Good luck

Know far better? Leave your personal answer in the comments!

Question by Brent: Would it be practical to use the Linux command “dd” to backup a windows parition in situation of an OS crash?
I am contemplating using the linux command dd to copy my windows partition of my harddrive to an external harddrive. I would re-back up the partition weekly. In the situation of a crash, I would just reload the partition once more by means of linux making use of dd, I would just copy the partition back to the harddrive and every little thing would be back to standard.

I know that it is achievable, my question is, is it practical? Are there substitute techniques of performing the exact same thing with out the high threat of messing up a linux command?

Very best answer:

Answer by Neebler
You can use dd if you do not want to buy commercial hard disk tools. If you can, preserve the Windows partition tiny simply because it will take a couple of hours to copy a 2TB disk. Write some scripts to do the actual dd command for saving and restoring the partition. That way you won’t mess up the command. Make the restore script a tiny harder to get to so you don’t accidentally run restore when you meant save.

You can also install Windows into a virtual machine, although you won’t be running it natively and you may well will need that.

Add your personal answer in the comments!

Question by mateuszkamil: Is there a way to backup blue-ray movies to ps3 hd without having making use of linux?
I had my ps3 for a while now and looked on-line for how to backup blue-ray films, and all they speak about is performing it by means of linux, so is there an additional way to do it??
I would really value it.
thanks!

Very best answer:

Answer by bigdad84
Nicely i dont assume you can i wouldnt even want to do it simply because Bluray mmoveis are like 25GB and can take up alot of memory simply

Give your answer to this question below!


Info Level: Intermediate Presenter: Eli the Laptop or computer Guy Date Created: September 21, 2010 Length of Class: 35 Minutes Tracks Linux Prerequisites Introduction to Linux Installing Linux Fundamental Linux Tasks VIM for File Editing Navigation in Linux Users, Groups and Permissions in Linux Purpose of Class This class teaches students how to backup directories utilizing TAR, and demonstrates how to schedule tasks utilizing Cron Jobs. Topics Covered Backing Up Directories with TAR Recovering Directories with TAR Setting Up Cron Jobs for Scheduled Tasks Class Notes Backup Employing TAR Backup = sudo tar –cvpzf backup.taz.gz –exclude/=directory (recursive) PATH –c = create new file (overwrites old file) –v = verbose –p = preserve permissions –z = compress –f = filename (very essential) –exclude=DIRCECTORY is Recursive Naming Files with time = filename-$ (date +%F-%T) Recover Files from a TAR File Recover = sudo tar –xvpzf FILE –C /DIRECTORY Capital -C = change to directory -x = extract Cron Jobs To Edit the Crontab File = sudo cron –e (first time it will ask you your default editor) Format = minute (-59), hour (-23, = midnight), day (1-31), month (1-12), weekday (-6, = Sunday), command * Wildcard for Every Minute/Day/Hour/Month?Day of Week Instance to Backup Whole Server for 1am Every single Morning = 1 * * * sudo tar -cvpzf /backup.tar.gz –exclude=/mnt /
Video Rating: / five

Question by Ric: Can you break this Linux backup script down?
Line by line without altering any issue.

#! /bin/bash
echo Backup Started out `date` >> ~/backuplog
mkdir /mnt/usbdrive/backups/`date +%Y%m%d`
tar -czf /mnt/usbdrive/backups/`date +%Y%m%d`/data.tar.gz /data
echo Backup Completed `date` >> ~/backuplog
Feel free to proper a person if they’re off.

Finest answer:

Answer by samantha
! /bin/bash

that’s a common starting for any shell script in linux and points to the shell environment the script was written beneath

echo Backup Began `date` >> ~/backuplog

this merely writes a statement to the backuplog file (in the users house directory) that says the backup was started and includes the output of the command ‘date’ in the line. Note that the ~ symbol used in ~/backuplog references the home directory of the user executing the shell script. also note that the single quotation marks around the ‘date’ command mean that the script will take the output of the command date and use it as part of the command. and lastly at the finish of this command you have the ‘>>” symbols that implies to take the resulting output of the command and append it to the output device that follows. Typically the echo command would print the “Backup Started out..” message to the terminal screen however the >> “/~backuplog” will result in the normal output to be redirected (and appended) to the finish of the ~/backuplog file.

mkdir /mnt/usbdrive/backups/`date +%Y%m%d`

this creates a directory in the path /mnt/usbdrive/backups with todays date making use of a formatted date string with year followed by month followed by day… so todays outcome would be a directory named
/mnt/usbdrive/backups/2010-03-17

note the date command output is formatted with parameters for %Y (year) %m (Month in numeric format) and %d (date of month). It is in this order so that when you run ls it will be in the chronological order

tar -czf /mnt/usbdrive/backups/`date +%Y%m%d`/data.tar.gz /information

this creates compressed backup of the /data directory -c (develop) -z (zip) and -f specifies the filename to be designed which is the tarball situated in /mnt/usbdrive/backups/2010/03/17

echo Backup Completed `date` >> ~/backuplog

and this writes a line to the backuplog indicating that the backup completed and provides the date

Add your own answer in the comments!

Question by LinuxNoob: What is the best way to backup/image a dual-boot Windows/Linux Drive?
Can anyone recommend a equivalent product in Linux for the free Windows item DriveImageXML? Essentially I am hunting for a totally free way to image an whole Windows/Linux dual-boot partitioned drive, but also to have access the person files if needed. Target would be an external USB drive. Thanks in advance!

Best answer:

Answer by Ryan B
you may well consider just functioning only on the house partition. Given that that is where all of your irreplaceable data tends to be.

Give your answer to this question beneath!

 Page 34 of 34  « First  ... « 30  31  32  33  34