03-29-2011
I only want to backup files that I would need to restore the system if it went down. The system that would be used is Zorin os4. I am not sure how to break that down further, I know it has something to do with Ubuntu (as you can tell, I am brand new to Linux and don't know very much). In doing my research I learned the TAR commmand will backup only important system files, below is the command; is there anything I would need to change?
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
Last edited by kjmpa26; 03-29-2011 at 07:20 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm having an issue with a problem
A problem with this backup script is that if you backup the same file twice, you may get a warning message because you're overwriting an existing file. You could suppress the warning message, but a better solution is to save a series of backups distinguished by... (1 Reply)
Discussion started by: Dingosatemypant
1 Replies
2. Shell Programming and Scripting
am writing my very first shell script and need some assistance. What I need help on is three things in particular.
1) Do I need to use the sleep function after the tar command or does the script know to wait until tar finishes to move on to the next line?
2) Did I populate the variable DATE... (4 Replies)
Discussion started by: rhm54
4 Replies
3. Shell Programming and Scripting
Hello all,
I am trying to backup my system database and root filesystem on remote server that is mounted on my system using tar command.
For the database, i use (cd /database; tar cvf file.tar .)
for the Root filesystem, i use (cd /; tar uEvf file.tar .)
both are to be backup on the same... (1 Reply)
Discussion started by: Omoniyi
1 Replies
4. Shell Programming and Scripting
Hello,
Need help with a script to backup a configuration file
BSD
Save the file / Firewall / ConfigFiles to a remote ftp server
here is the script
# / bin / sh
Date = $ (date +% d-% Y-% m-H-M)
tar-cvf ConfigFiles.tar / Firewall / ConfigFiles
ConfigFiles.tar mv / Firewall-$... (11 Replies)
Discussion started by: telouet
11 Replies
5. Shell Programming and Scripting
Q: script to daily backup all databases in the server, retain only last 4 backps
please anyone give me a reply (3 Replies)
Discussion started by: pssooraj72
3 Replies
6. Shell Programming and Scripting
HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here
Im explaining the requirement of script.
AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies
7. Shell Programming and Scripting
i need to print the first date of the previous month in 20130101 format.
i use the below script
month_year=$(date +'%m%Y' | awk '!--$1{$1=12;$2--}')
m=${month_year% *}
y=$month_year##* }
d=$(cal $m $y | paste -s - | awk '{print $NF}')
firstdate=${printf '02d01%s' $y $m)
echo $firstdate
... (1 Reply)
Discussion started by: vino1989
1 Replies
8. Shell Programming and Scripting
Hello guys.
I am a Brazilian, I use a linux machine, to access it using the program Putty.
I own a GTA Multiplayer, I have a folder on my server named accounts, there is the account of all players.
Each player has their own file, the files are saved as follows:
PlayerName.ini
I would... (4 Replies)
Discussion started by: JimCarrey
4 Replies
9. Shell Programming and Scripting
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
Discussion started by: sasikanthdba
4 Replies
10. Shell Programming and Scripting
Dear friends, I need your help.
I need to create a bash script which can loop through $source_dir once a month, and find the backup of the last day of a given month for each of the 2 file types, as can be seen below.
Assume that source_dir="/backup/daily"
Assume that... (1 Reply)
Discussion started by: joemb
1 Replies
LEARN ABOUT DEBIAN
atfsit
atfsit(1) ShapeTools atfsit(1)
NAME
atfsit - A program to prepare files for version control
SYNOPSIS
atfsit [ -cFhfsmM ] [ -qad ] [ -Iflags ] [ -Rflags ] [ -tdirectory ] file1 ...
DESCRIPTION
Atfsit is a semi-intelligent program to prepare files for ShapeTools version control. This involves putting the correct type of headings
at the top of the file so that retrv will update a header and log changes in the file.
By default, atfsit will use default headers ``hard-wired'' into itself for each different file type that it ``knows'' about. (See below
for list of known file types).
If the -tdirectory option is specified, then atfsit will use ``.template.suffix'' files (where ``suffix'' is a suffix that atfsit ``knows''
about) found in directory. If a directory name is not specified on the command line, then the environment variable TEMPLATES is used. If
$TEMPLATES is not set, then the environment variable, HOME is tried.
The following template files are recognized:
Template NameFile Type
---------------------------------------
.template.c Standard C
.template.h C Include
.template.f Fortran
.template.shShell Script
.template.makeMakefile
.template.manManual
Atfsit is ``semi-intelligent'' in that it can guess the type of headers to put in the file by the type of file (C program, C include, make-
file, shell script, or manual). It determines the file type by looking at the name of the file. If the name of the file is ``Makefile''
or ``makefile'', then the file type is taken to be for make(1). The suffix after the last ``.'' in the file name is then used. The fol-
lowing table shows the suffixes that atfsit knows about:
Suffix File Type
---------------------------------------------
c C Program
F C Program (with compile flags)
h C Include
f Fortran
mk Make(1) file
sh Shell Script
csh Shell Script
[1-9] Manual (digits 1 - 9)
If the environment variable ``ATFSDIR'' is present, then atfsit will attempt to make a link from it to ``AtFS'' in the current directory if
the -I option is used and there is no directory called ``AtFS'' already, in the current directory. If the -I option is used and ``ATFS-
DIR'' is not specified in the environment, then a normal directory called ``AtFS'' will be created. This feature can be overrided with the
-d option.
OPTIONS
c Force file type to be ``Standard C''.
F Force file type to be ``Standard C''. Add a special header-line for recording of compile-time options in addition to the default
header. The inserted line has the form static char *ConfFlg = CFFLGS. CFFLGS must be a string value. As it is very inconve-
nient, to define the proper value of CFFLGS from the command-line, this feature is more intended to be used from within Make-
files.
h Force file type to be ``C Include''.
f Force file type to be ``Fortran''.
M Force file type to be ``Manual''. Note: If you also specify the ``Iflags'' option, atfsit will run vadm(1) to tell ShapeTools
what kind of comment string to use for the manual file.
s Force file type to be ``Shell Script''.
m Force file type to be ``Makefile''. Note that this does the same thing as the -s option does. It just prints a different mes-
sage.
t Do not use any Template files for the headers.
q Be quiet. Don't print out what is going on. Only error messages are printed.
d Do not attempt to make the directory ``AtFS''. See above for more info.
a Turn off auto guessing of file type.
Iflags Check In file. Run save(1) on the file with ``flags'' being passed onto save(1) as the command line arguments.
Rflags Run vadm(1) with ``flags'' as the command line arguments.
FILES
/tmp/atfsit* - temporary buffer
~/.template.* - template files to use as the header.
AUTHOR
Michael Cooper (mcooper@usc-oberon.ARPA)
Modified for use with ShapeTools by Axel.Mahler@cs.tu-berlin.de
SEE ALSO
save(1), vadm(1), retrv(1).
DIAGNOSTICS
Complains about the usual stuff. (i.e. - the specified file doesn't exist, or it can't read it...just things like that.)
atfsit-1.15 Tue Jun 29 16:29:16 1993 atfsit(1)