Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Creating a backup of UNIX--Need help Post 302772609 by MadeInGermany on Tuesday 26th of February 2013 07:37:18 AM
Old 02-26-2013
The OS version is displayed with command
Code:
uname

Try a compressed tar archive:
Code:
tar cf - / | gzip -c > backup.tar.gz

This you can copy to Windows.
Windows Winzip can read the contents.
For restore on Unix, first list the contents with
Code:
gunzip -c backup.tar.gz | tar tf -

then do a partial restore of a certain directory or file listed by the previous command:
Code:
gunzip -c backup.tar.gz | tar xf - <directory_or_file_shown_by_tar_tf>

A restore of a directory is always recursive, including sub-directories.
Be careful: omitting the <directory_or_file_shown_by_tar_tf> will restore everything!
Also be warned: this method helps after an accidental file deletion, but is not a disaster recovery (damaged disk etc.).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with UNIX Backup/Archiving

I am doing a report for my data communications class on Mac OS X Server/UNIX and I need to know about Archiving/Backup. Is it easy? How do you do it? etc. Thanks (5 Replies)
Discussion started by: itsme
5 Replies

2. Solaris

creating log files for a backup script on solaris

I have a simple backup script that I am running to back up drives across the network. However I need to have detailed log files for this script such as time backup started, what was backed up, if there were any errors and the time that the backup was complete. I would also like the script to... (3 Replies)
Discussion started by: valicon
3 Replies

3. UNIX for Dummies Questions & Answers

Unix 10.2 Backup Problem

We have an older HP Unix 10.20 system that we rarely ever use anymore. Most of our jobs on it are from 1994 to 2002. Anything after that is on Windows XP. The Unix system was backed up religiously every day. Because of space constraints some of the jobs were removed from the system after a... (3 Replies)
Discussion started by: fozzybear
3 Replies

4. UNIX for Advanced & Expert Users

Creating backup of files being deleted

Hi All , We usually tend to use rm -f or rm -rf commands to delete files and directories in UNIX based Systems. But despite of utter care while deletion, there is high possibility that some of important files get deleted by mistake (as in the case of rm -f *). So , one way to avoid this... (5 Replies)
Discussion started by: swapnil.nawale
5 Replies

5. UNIX for Dummies Questions & Answers

Unix 2.1.3 Backup

Hi... I am Using Unix 2.1.3 Os on server My application Is also on this server. other client have Windows Xp system they can access application usnig puttey. I want to take backup on of this severer on any of the client. Can anyone help me on this Thanks ! (1 Reply)
Discussion started by: Swapz123
1 Replies

6. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

7. Shell Programming and Scripting

Need help in creating file restoration script from a backup script.

Hi all i am struggling in creating a restore of env files while doing applications clone. the first file i created for copying the important configurations file which is running perfect now for reverting the changes i mean when i am restoring these files to its original places i have to do... (7 Replies)
Discussion started by: javeedkaleem
7 Replies

8. UNIX for Dummies Questions & Answers

BackUp Home/Creating User from File

Hi! I want to test something to learn Shell scripting better. 1) How can I make a BackUp from all users and groups homedirectory? I want to save that backup in an archiv. Can I choose how to name the backUp archiv? 2) Ok I want to make a file like csv, in this file are listed Users.... (3 Replies)
Discussion started by: CommanderLinux
3 Replies

9. Solaris

Need help in creating script for disk mirror and backup

Hi, I am very new to scripting. I need to create a script which does following. Scenario: First get the format command output echo | format Insert the new disk to Solaris Server Get Zpool status format the new disk ( Here I need to select the new disk which have been inserted, I do... (1 Reply)
Discussion started by: praveensharma21
1 Replies

10. Shell Programming and Scripting

Help Needed for creating the folder by checking today's date and, take backup using rsync command

How to create a shell script to create a folder by using the today's date to take backup using rsync command on every evening around 7 pm. Kindly help. Thanks. To be more precise, I want to create a script which matches the today's date with server's date format, if matches then creates the... (2 Replies)
Discussion started by: bakula10
2 Replies
BACKUP_DELHOST(8)					       AFS Command Reference						 BACKUP_DELHOST(8)

NAME
       backup_delhost - Deletes a Tape Coordinator entry from the Backup Database

SYNOPSIS
       backup delhost -tapehost <tape machine name>
	   [-portoffset <TC port offset>] [-localauth]
	   [-cell <cell name>] [-help]

       backup delh -t <tape machine name>
	   [-p <TC port offset>]
	   [-l] [-c <cell name>] [-h]

DESCRIPTION
       The backup delhost command deletes the indicated Tape Coordinator entry from the Backup Database. It is then impossible to submit backup
       operations to that Tape Coordinator, even if it is still running. To keep configuration information consistent, also remove the
       corresponding entry from the /var/lib/openafs/backup/tapeconfig file on the Tape Coordinator machine.

       To list the Tape Coordinator machines and port offsets defined in the Backup Database, issue the backup listhosts command.

OPTIONS
       -tapehost <tape machine name>
	   Specifies the hostname of the machine housing the Tape Coordinator to delete.

       -portoffset <TC port offset>
	   Specifies the port offset number of the Tape Coordinator to delete.	If omitted, it defaults to 0. If provided, it is an integer
	   between 0 (zero) and 58510, and must match the port offset number assigned to the same combination of Tape Coordinator and tape device
	   or file in the /var/lib/openafs/backup/tapeconfig file on the Tape Coordinator machine indicated by the -tapehost argument.

       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
	   the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
	   details, see backup(8).

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

EXAMPLES
       The following command deletes the Backup Database entry for the Tape Coordinator with port offset 2 on the Tape Coordinator machine
       "backup3.abc.com":

	  % backup delhost -tapehost backup3.abc.com -portoffset 2

PRIVILEGE REQUIRED
       The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged
       onto a server machine as the local superuser "root" if the -localauth flag is included.

SEE ALSO
       backup(8), backup_addhost(8), backup_listhosts(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							 BACKUP_DELHOST(8)
All times are GMT -4. The time now is 11:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy