Creating a backup of UNIX--Need help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Creating a backup of UNIX--Need help
# 1  
Old 02-25-2013
Creating a backup of UNIX--Need help

My company has a client that has mostly windows machines but has 1 Unix machine(still trying to find out what version..Solaris, AIX, etc) and they want me to do a full backup of this Unix machine and store it on one of their windows servers.

Is there a not too difficult way of doing this?

They only use this Unix machine occasionally for file access but don't want to lose the info stored on the machine.

I appreciate any help provided and if more info is needed(I'm sure there is lol) let me know what info I need to properly diagnose and I can try to obtain it from my client.

Thanks!!
# 2  
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.).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question