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
BBACKUPCTL(8)							    Box Backup							     BBACKUPCTL(8)

NAME
bbackupctl - Control the Box Backup client daemon SYNOPSIS
bbackupctl [-q] [-c config-file] command DESCRIPTION
bbackupctl sends commands to a running bbackupd daemon on a client machine. It can be used to force an immediate backup, tell the daemon to reload its configuration files or stop the daemon. If bbackupd is configured in snapshot mode, it will not back up automatically, and the bbackupctl must be used to tell it when to start a backup. Communication with the bbackupd daemon takes place over a local socket (not over the network). Some platforms (notably Windows) can't determine if the user connecting on this socket has the correct credentials to execute the commands. On these platforms, ANY local user can interfere with bbackupd. To avoid this, remove the CommandSocket option from bbackupd.conf, which will also disable bbackupctl. See the Client Configuration page for more information. bbackupctl needs to read the bbackupd configuration file to find out the name of the CommandSocket. If you have to tell bbackupd where to find the configuration file, you will have to tell bbackupctl as well. The default on Unix systems is usually /etc/box/bbackupd.conf. On Windows systems, it is bbackupd.conf in the same directory where bbackupd.exe is located. If bbackupctl cannot find or read the configuration file, it will log an error message and exit. bbackupctl usually writes error messages to the console and the system logs. If it is not doing what you expect, please check these outputs first of all. -q Run in quiet mode. -c config-file Specify configuration file. Commands The following commands are available in bbackupctl: terminate This command cleanly shuts down bbackupd. This is better than killing or terminating it any other way. reload Causes the bbackupd daemon to re-read all its configuration files. Equivalent to kill -HUP. sync Initiates a backup. If no files need to be backed up, no connection will be made to the server. force-sync Initiates a backup, even if the SyncAllowScript says that no backup should run now. wait-for-sync Passively waits until the next backup starts of its own accord, and then terminates. wait-for-end Passively waits until the next backup starts of its own accord and finishes, and then terminates. sync-and-wait Initiates a backup, waits for it to finish, and then terminates. FILES
/etc/box/bbackupd.conf SEE ALSO
bbackupd.conf(5), bbackupd-config(8), bbackupctl(8) AUTHORS
Ben Summers Per Thomsen James O'Gorman Box Backup 0.11 10/28/2011 BBACKUPCTL(8)
All times are GMT -4. The time now is 06:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy