Can anyone direct me to a resource that explains scripting in simple terms?
I have visited many sites and browsed this forum and have yet to find simple explanations. (8 Replies)
Hi all! Im wondering if its possible to create a GUI for a shell script I just got done writing as the people that will be using it dont like the command line all to well. Just something simple with radio buttons to select options, maybe a text field to enter a location to save the file generated... (1 Reply)
Hi
I want to write a small script that will create folders named from `AAAA' all the way to `ZZZZ'.
That is:
`AAAA'
`AAAB'
`AAAC'
...
`AABA'
`AABB'
`AABC'
...
`ABAA'
`ABAB'
`ABAC'
...
`ABBA'
...
`ZZZZ' (4 Replies)
I have a local account for a unix server. The idle timeout for the account is around 10 mins. I have to login to the server multiple times during the day. Is there a way to increase the idle timeout or may be a script that I can run on background so it is not idle. Something like echo date every 9... (3 Replies)
Hello - I am in process of deleting many files which are older than 4 weeks.
For example I am inside:
/subsystem/prod/
Files are with various extentions, but anything older than 4 weeks should be deleted.
What would be the most simplest script to acheive this? (4 Replies)
Hi all, I am brand new to these forums and I am a brand new UNIX Administartor. Don't know any scripting yet :wall:, and would like to learn as my boss is slowly letting me understand everything about being a Sys/*Nix Admin. He created this script which I am trying to replicate because I lost it... (54 Replies)
Dear all,
I have a directory named A and some subdirectories named B, C, D with .xml files. I want to use the following command to strip the file.
sed -re ':start s/<*>//g; /</ {N; b start}' file.xml > file.xml
At the same time, I want to remove the blank lines using
sed '/^$/d'
How can... (6 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Hello ,
I am new in this forum and need your help as I am totally confused :confused:
I read a lot of threads and tried to search a lot but did not get the exact answer to my question.
I just want a simple (content wise may be long) shell script to create oracle database.
In detail:... (5 Replies)
This is the problem: Write a script that will make a backup of a file giving it a ‘.bak’ extension & verify that it works. I have tried a number of different scripts that haven't worked and I haven't seen anything really concise and to the point via google. For brevity's sake this is one of the... (4 Replies)
Discussion started by: demet8
4 Replies
LEARN ABOUT DEBIAN
amserverconfig
AMSERVERCONFIG(8) System Administration Commands AMSERVERCONFIG(8)NAME
amserverconfig - program to setup initial Amanda configuration
SYNOPSIS
amserverconfig config [--template template] [--no-vtape] [--tapetype tapetype] [--tpchanger tpchanger] [--tapedev tapedev]
[--changerfile changerfile] [--changerdev changerdev] [--labelstr labelstr] [--mailto mailto] [--dumpcycle dumpcycle]
[--runspercycle runspercycle] [--runtapes runtapes] [--tapecycle tapecycle] [--help]
DESCRIPTION
After Amanda rpms are successfully installed, amserverconfig will setup initial Amanda configuration files. It will create
/var/lib/amanda/guntar-lists directory if one does not exist. amserverconfig does not change existing Amanda configurations.
amserverconfig must be run by user amandabackup.
OPTIONS
Options may be abbreviated, as long as the abbreviation is not ambiguous. Option argument can either separated by '=' or a space. Example:
--templ=harddisk --tapedev /dev/nst0
amserverconfig builds a new "config" Amanda configuration. Customize the configuration with the options below.
--template template
build Amanda configuration with pre-configured template files. Currently, harddisk, single-tape, tape-changer and S3 are the valid
inputs for this option. Pre-configured template files can be found in /var/lib/amanda/template.d. This option may be combined with
other options.
If tape-changer is chosen for this option, program mtx is required. amserverconfig will search for mtx in the following directory:
"/usr/sbin", "/usr/local/sbin", "/usr/local/bin", "/usr/bin", "/bin" and amandabackup's PATH.
If harddisk is chosen and --no-vtape is not specified, amserverconfig will create and label virtual tape
file://var/lib/amanda/vtapes/$config.
--no-vtape
Do not create virtual tapes in the harddisk template case.
--tapedev tapedev
The path name of non-rewinding tape device. default [file://var/lib/amanda/vtapes/$config]
--tpchanger tpchanger
The name of the tape changer. default [chg-disk]
--changerdev changerdev
A tape changer configuration parameter. default [/dev/null]
--changerfile changerfile
A tape changer configuration parameter. default [/etc/amanda/$config/changer.conf]
--labelstr labelstr
The tape label constraint regular expression. default [^$config-[0-9][0-9]*$]
If this option is used with --template=harddisk, only alphanumeric string is supported.
--tapetype tapetype
The type of tape drive associated with tapedev or tpchanger. default [HARDDISK]
--mailto mailto
A space separated list of recipients for mail reports. default [amandabackup]
--dumpcycle dumpcycle
The number of days in the backup cycle. default [1week]
--runspercycle runspercycle
The number of days in the backup cycle. default [5]
--runtapes runtapes
The maximum number of tapes used in a single run. default [1]
--tapecycle tapecycle
The size of tape rotation. default [25]
--help
Display usage.
FILES
/var/lib/amanda/template.d
Amanda configuration template files install location
/var/lib/amanda
amandabackup home directory
/var/lib/amanda/gnutar-lists
A directory which contains backup timestamp and list of files backed up.
/etc/amanda/$config
Amanda configuration files location for $config(e.g: DailySet1).
/etc/amanda/template.d
A directory contains dumptypes and tapetypes files used by all Amanda configurations.
/etc/amandates
Amanda file on the client. It keeps track of structures of previous dumps.
/tmp/amanda
directory contains Amanda debug log files.
RETURN VALUE
On success, zero is returned. On error, 1 is returned.
SEE ALSO amanda(8), amanda.conf(5), amaddclient(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Kevin Till <kevin.till@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.1 02/21/2012 AMSERVERCONFIG(8)